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
electromagnetic
TestEm1
src
PhysListEmStandard.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
//
26
// $Id$
27
//
28
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
29
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
30
31
#include "PhysListEmStandard.hh"
32
#include "
G4ParticleDefinition.hh
"
33
#include "
G4ProcessManager.hh
"
34
#include "
G4PhysicsListHelper.hh
"
35
36
#include "
G4ComptonScattering.hh
"
37
#include "
G4GammaConversion.hh
"
38
#include "
G4PhotoElectricEffect.hh
"
39
#include "
G4RayleighScattering.hh
"
40
#include "
G4KleinNishinaModel.hh
"
41
42
#include "
G4eMultipleScattering.hh
"
43
#include "
G4UrbanMscModel96.hh
"
44
#include "
G4eIonisation.hh
"
45
#include "
G4eBremsstrahlung.hh
"
46
#include "
G4eplusAnnihilation.hh
"
47
48
#include "
G4MuMultipleScattering.hh
"
49
#include "
G4MuIonisation.hh
"
50
#include "
G4MuBremsstrahlung.hh
"
51
#include "
G4MuPairProduction.hh
"
52
53
#include "
G4hMultipleScattering.hh
"
54
#include "
G4hIonisation.hh
"
55
#include "
G4hBremsstrahlung.hh
"
56
#include "
G4hPairProduction.hh
"
57
58
#include "
G4ionIonisation.hh
"
59
#include "
G4IonParametrisedLossModel.hh
"
60
#include "
G4NuclearStopping.hh
"
61
62
#include "
G4EmProcessOptions.hh
"
63
#include "
G4MscStepLimitType.hh
"
64
65
#include "
G4LossTableManager.hh
"
66
#include "
G4UAtomicDeexcitation.hh
"
67
68
#include "
G4SystemOfUnits.hh
"
69
70
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
71
72
PhysListEmStandard::PhysListEmStandard
(
const
G4String
&
name
)
73
:
G4VPhysicsConstructor
(name)
74
{}
75
76
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
77
78
PhysListEmStandard::~PhysListEmStandard
()
79
{}
80
81
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
82
83
void
PhysListEmStandard::ConstructProcess
()
84
{
85
G4PhysicsListHelper
* ph =
G4PhysicsListHelper::GetPhysicsListHelper
();
86
87
// Add standard EM Processes
88
//
89
theParticleIterator
->
reset
();
90
while
( (*
theParticleIterator
)() ){
91
G4ParticleDefinition
* particle =
theParticleIterator
->
value
();
92
G4String
particleName = particle->
GetParticleName
();
93
94
if
(particleName ==
"gamma"
) {
95
97
ph->
RegisterProcess
(
new
G4PhotoElectricEffect
, particle);
98
G4ComptonScattering
* cs =
new
G4ComptonScattering
;
99
cs->
SetModel
(
new
G4KleinNishinaModel
());
100
ph->
RegisterProcess
(cs, particle);
101
ph->
RegisterProcess
(
new
G4GammaConversion
, particle);
102
103
}
else
if
(particleName ==
"e-"
) {
104
105
G4eMultipleScattering
* msc =
new
G4eMultipleScattering
();
106
msc -> AddEmModel(0,
new
G4UrbanMscModel96
());
107
ph->
RegisterProcess
(msc, particle);
108
//
109
G4eIonisation
* eIoni =
new
G4eIonisation
();
110
eIoni->
SetStepFunction
(0.1, 100*um);
111
ph->
RegisterProcess
(eIoni, particle);
112
//
113
ph->
RegisterProcess
(
new
G4eBremsstrahlung
(), particle);
114
115
}
else
if
(particleName ==
"e+"
) {
116
117
G4eMultipleScattering
* msc =
new
G4eMultipleScattering
();
118
msc -> AddEmModel(0,
new
G4UrbanMscModel96
());
119
ph->
RegisterProcess
(msc, particle);
120
//
121
G4eIonisation
* eIoni =
new
G4eIonisation
();
122
eIoni->
SetStepFunction
(0.1, 100*um);
123
ph->
RegisterProcess
(eIoni, particle);
124
//
125
ph->
RegisterProcess
(
new
G4eBremsstrahlung
(), particle);
126
//
127
ph->
RegisterProcess
(
new
G4eplusAnnihilation
(), particle);
128
129
}
else
if
(particleName ==
"mu+"
||
130
particleName ==
"mu-"
) {
131
132
ph->
RegisterProcess
(
new
G4MuMultipleScattering
(), particle);
133
G4MuIonisation
* muIoni =
new
G4MuIonisation
();
134
muIoni->
SetStepFunction
(0.1, 50*um);
135
ph->
RegisterProcess
(muIoni, particle);
136
ph->
RegisterProcess
(
new
G4MuBremsstrahlung
(), particle);
137
ph->
RegisterProcess
(
new
G4MuPairProduction
(), particle);
138
139
}
else
if
( particleName ==
"proton"
||
140
particleName ==
"pi-"
||
141
particleName ==
"pi+"
) {
142
143
ph->
RegisterProcess
(
new
G4hMultipleScattering
(), particle);
144
G4hIonisation
* hIoni =
new
G4hIonisation
();
145
hIoni->
SetStepFunction
(0.1, 20*um);
146
ph->
RegisterProcess
(hIoni, particle);
147
ph->
RegisterProcess
(
new
G4hBremsstrahlung
(), particle);
148
ph->
RegisterProcess
(
new
G4hPairProduction
(), particle);
149
150
}
else
if
( particleName ==
"alpha"
||
151
particleName ==
"He3"
) {
152
153
ph->
RegisterProcess
(
new
G4hMultipleScattering
(), particle);
154
G4ionIonisation
* ionIoni =
new
G4ionIonisation
();
155
ionIoni->
SetStepFunction
(0.1, 1*um);
156
ph->
RegisterProcess
(ionIoni, particle);
157
ph->
RegisterProcess
(
new
G4NuclearStopping
(), particle);
158
159
}
else
if
( particleName ==
"GenericIon"
) {
160
161
ph->
RegisterProcess
(
new
G4hMultipleScattering
(), particle);
162
G4ionIonisation
* ionIoni =
new
G4ionIonisation
();
163
ionIoni->
SetEmModel
(
new
G4IonParametrisedLossModel
());
164
ionIoni->
SetStepFunction
(0.1, 1*um);
165
ph->
RegisterProcess
(ionIoni, particle);
166
ph->
RegisterProcess
(
new
G4NuclearStopping
(), particle);
167
168
}
else
if
((!particle->
IsShortLived
()) &&
169
(particle->
GetPDGCharge
() != 0.0) &&
170
(particle->
GetParticleName
() !=
"chargedgeantino"
)) {
171
172
//all others charged particles except geantino
173
ph->
RegisterProcess
(
new
G4hMultipleScattering
(), particle);
174
ph->
RegisterProcess
(
new
G4hIonisation
(), particle);
175
}
176
}
177
178
// Em options
179
//
180
// Main options and setting parameters are shown here.
181
// Several of them have default values.
182
//
183
G4EmProcessOptions
emOptions;
184
185
//physics tables
186
//
187
emOptions.
SetMinEnergy
(10*
eV
);
//default 100 eV
188
emOptions.
SetMaxEnergy
(10*
TeV
);
//default 100 TeV
189
emOptions.
SetDEDXBinning
(12*10);
//default=12*7
190
emOptions.
SetLambdaBinning
(12*10);
//default=12*7
191
192
//multiple coulomb scattering
193
//
194
emOptions.
SetMscStepLimitation
(
fUseDistanceToBoundary
);
//default=fUseSafety
195
196
// Deexcitation
197
//
198
G4VAtomDeexcitation
* de =
new
G4UAtomicDeexcitation
();
199
de->
SetFluo
(
true
);
200
de->
SetAuger
(
false
);
201
de->
SetPIXE
(
false
);
202
G4LossTableManager::Instance
()->
SetAtomDeexcitation
(de);
203
}
204
205
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
206
Generated on Sat May 25 2013 14:31:58 for Geant4 by
1.8.4