Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
examples
extended
analysis
A01
src
A01MuonPhysics.cc
Go to the documentation of this file.
1
//
2
// ********************************************************************
3
// * License and Disclaimer *
4
// * *
5
// * The Geant4 software is copyright of the Copyright Holders of *
6
// * the Geant4 Collaboration. It is provided under the terms and *
7
// * conditions of the Geant4 Software License, included in the file *
8
// * LICENSE and available at http://cern.ch/geant4/license . These *
9
// * include a list of copyright holders. *
10
// * *
11
// * Neither the authors of this software system, nor their employing *
12
// * institutes,nor the agencies providing financial support for this *
13
// * work make any representation or warranty, express or implied, *
14
// * regarding this software system or assume any liability for its *
15
// * use. Please see the license in the file LICENSE and URL above *
16
// * for the full disclaimer and the limitation of liability. *
17
// * *
18
// * This code implementation is the result of the scientific and *
19
// * technical work of the GEANT4 collaboration. *
20
// * By using, copying, modifying or distributing the software (or *
21
// * any work based on the software) you agree to acknowledge its *
22
// * use in resulting scientific publications, and indicate your *
23
// * acceptance of all terms of the Geant4 Software license. *
24
// ********************************************************************
25
//
28
//
29
// $Id$
30
// --------------------------------------------------------------
31
//
32
// 09-Oct-2003 mu+- tau+- processes are changed by T. Koi
33
// 05-Jan-2004 Add Brem. and PairProd. of AlongStepDoit for mu+- by T. Koi
34
35
#include "
A01MuonPhysics.hh
"
36
37
#include "
globals.hh
"
38
#include "
G4ios.hh
"
39
#include <iomanip>
40
41
42
A01MuonPhysics::A01MuonPhysics
(
const
G4String
&
name
)
43
:
G4VPhysicsConstructor
(name)
44
{
45
}
46
47
A01MuonPhysics::~A01MuonPhysics
()
48
{
49
}
50
51
#include "
G4ParticleDefinition.hh
"
52
#include "
G4ParticleTable.hh
"
53
54
#include "
G4MuonPlus.hh
"
55
#include "
G4MuonMinus.hh
"
56
#include "
G4TauMinus.hh
"
57
#include "
G4TauPlus.hh
"
58
59
#include "
G4ProcessManager.hh
"
60
61
void
A01MuonPhysics::ConstructProcess
()
62
{
63
G4ProcessManager
* pManager = 0;
64
65
//Muon+
66
pManager =
G4MuonPlus::MuonPlus
()->
GetProcessManager
();
67
G4VProcess
* thempMultipleScattering =
new
G4MuMultipleScattering
();
68
G4VProcess
* thempBremsstrahlung =
new
G4MuBremsstrahlung
();
69
G4VProcess
* thempPairProduction =
new
G4MuPairProduction
();
70
G4VProcess
* thempIonisation =
new
G4MuIonisation
();
71
//
72
// add processes
73
pManager->
AddProcess
(thempIonisation);
74
pManager->
AddProcess
(thempMultipleScattering);
75
pManager->
AddProcess
(thempBremsstrahlung);
76
pManager->
AddProcess
(thempPairProduction);
77
//
78
// set ordering for AlongStepDoIt
79
pManager->
SetProcessOrdering
(thempMultipleScattering,
idxAlongStep
,1);
80
pManager->
SetProcessOrdering
(thempIonisation,
idxAlongStep
,2);
81
pManager->
SetProcessOrdering
(thempBremsstrahlung,
idxAlongStep
,3);
82
pManager->
SetProcessOrdering
(thempPairProduction,
idxAlongStep
,4);
83
84
// set ordering for PostStepDoIt
85
pManager->
SetProcessOrdering
(thempMultipleScattering,
idxPostStep
,1);
86
pManager->
SetProcessOrdering
(thempIonisation,
idxPostStep
,2);
87
pManager->
SetProcessOrdering
(thempBremsstrahlung,
idxPostStep
,3);
88
pManager->
SetProcessOrdering
(thempPairProduction,
idxPostStep
,4);
89
90
//Muon-
91
pManager =
G4MuonMinus::MuonMinus
()->
GetProcessManager
();
92
G4VProcess
* themmMultipleScattering =
new
G4MuMultipleScattering
();
93
G4VProcess
* themmBremsstrahlung =
new
G4MuBremsstrahlung
();
94
G4VProcess
* themmPairProduction =
new
G4MuPairProduction
();
95
G4VProcess
* themmIonisation =
new
G4MuIonisation
();
96
//
97
// add processes
98
pManager->
AddProcess
(themmIonisation);
99
pManager->
AddProcess
(themmMultipleScattering);
100
pManager->
AddProcess
(themmBremsstrahlung);
101
pManager->
AddProcess
(themmPairProduction);
102
//
103
// set ordering for AlongStepDoIt
104
pManager->
SetProcessOrdering
(themmMultipleScattering,
idxAlongStep
,1);
105
pManager->
SetProcessOrdering
(themmIonisation,
idxAlongStep
,2);
106
pManager->
SetProcessOrdering
(themmBremsstrahlung,
idxAlongStep
,3);
107
pManager->
SetProcessOrdering
(themmPairProduction,
idxAlongStep
,4);
108
// set ordering for PostStepDoIt
109
pManager->
SetProcessOrdering
(themmMultipleScattering,
idxPostStep
,1);
110
pManager->
SetProcessOrdering
(themmIonisation,
idxPostStep
,2);
111
pManager->
SetProcessOrdering
(themmBremsstrahlung,
idxPostStep
,3);
112
pManager->
SetProcessOrdering
(themmPairProduction,
idxPostStep
,4);
113
114
// Tau+ Physics
115
pManager =
G4TauPlus::TauPlus
()->
GetProcessManager
();
116
G4VProcess
* thetpMultipleScattering =
new
G4MuMultipleScattering
();
117
G4VProcess
* thetpIonisation =
new
G4hIonisation
();
118
//
119
// add processes
120
pManager->
AddProcess
(thetpIonisation);
121
pManager->
AddProcess
(thetpMultipleScattering);
122
//
123
// set ordering for AlongStepDoIt
124
pManager->
SetProcessOrdering
(thetpMultipleScattering,
idxAlongStep
,1);
125
pManager->
SetProcessOrdering
(thetpIonisation,
idxAlongStep
,2);
126
//
127
// set ordering for PostStepDoIt
128
pManager->
SetProcessOrdering
(thetpMultipleScattering,
idxPostStep
,1);
129
pManager->
SetProcessOrdering
(thetpIonisation,
idxPostStep
,2);
130
131
// Tau- Physics
132
pManager =
G4TauMinus::TauMinus
()->
GetProcessManager
();
133
G4VProcess
* thetmMultipleScattering =
new
G4MuMultipleScattering
();
134
G4VProcess
* thetmIonisation =
new
G4hIonisation
();
135
//
136
// add processes
137
pManager->
AddProcess
(thetmIonisation);
138
pManager->
AddProcess
(thetmMultipleScattering);
139
//
140
// set ordering for AlongStepDoIt
141
pManager->
SetProcessOrdering
(thetmMultipleScattering,
idxAlongStep
,1);
142
pManager->
SetProcessOrdering
(thetmIonisation,
idxAlongStep
,2);
143
//
144
// set ordering for PostStepDoIt
145
pManager->
SetProcessOrdering
(thetmMultipleScattering,
idxPostStep
,1);
146
pManager->
SetProcessOrdering
(thetmIonisation,
idxPostStep
,2);
147
148
}
Generated on Sat May 25 2013 14:32:17 for Geant4 by
1.8.4