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
source
physics_lists
builders
src
G4EmStandardPhysics.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
//---------------------------------------------------------------------------
29
//
30
// ClassName: G4EmStandardPhysics
31
//
32
// Author: V.Ivanchenko 09.11.2005
33
//
34
// Modified:
35
// 05.12.2005 V.Ivanchenko add controlled verbosity
36
// 13.11.2006 V.Ivanchenko use G4hMultipleScattering
37
// 23.11.2006 V.Ivanchenko remove mscStepLimit option and improve cout
38
// 13.02.2007 V.Ivanchenko use G4hMultipleScattering for muons
39
// 13.02.2007 V.Ivanchenko set skin=0.0
40
// 21.04.2008 V.Ivanchenko add long-lived D and B mesons
41
//
42
//----------------------------------------------------------------------------
43
//
44
45
#include "
G4EmStandardPhysics.hh
"
46
#include "
G4SystemOfUnits.hh
"
47
#include "
G4ParticleDefinition.hh
"
48
#include "
G4LossTableManager.hh
"
49
#include "
G4EmProcessOptions.hh
"
50
51
#include "
G4ComptonScattering.hh
"
52
#include "
G4GammaConversion.hh
"
53
#include "
G4PhotoElectricEffect.hh
"
54
55
#include "
G4eMultipleScattering.hh
"
56
#include "
G4MuMultipleScattering.hh
"
57
#include "
G4hMultipleScattering.hh
"
58
#include "
G4CoulombScattering.hh
"
59
#include "
G4eCoulombScatteringModel.hh
"
60
#include "
G4WentzelVIModel.hh
"
61
#include "
G4UrbanMscModel95.hh
"
62
63
#include "
G4MuBremsstrahlungModel.hh
"
64
#include "
G4MuPairProductionModel.hh
"
65
#include "
G4hBremsstrahlungModel.hh
"
66
#include "
G4hPairProductionModel.hh
"
67
68
#include "
G4eIonisation.hh
"
69
#include "
G4eBremsstrahlung.hh
"
70
#include "
G4eplusAnnihilation.hh
"
71
#include "
G4UAtomicDeexcitation.hh
"
72
73
#include "
G4MuIonisation.hh
"
74
#include "
G4MuBremsstrahlung.hh
"
75
#include "
G4MuPairProduction.hh
"
76
#include "
G4hBremsstrahlung.hh
"
77
#include "
G4hPairProduction.hh
"
78
79
#include "
G4hIonisation.hh
"
80
#include "
G4ionIonisation.hh
"
81
#include "
G4alphaIonisation.hh
"
82
83
#include "
G4Gamma.hh
"
84
#include "
G4Electron.hh
"
85
#include "
G4Positron.hh
"
86
#include "
G4MuonPlus.hh
"
87
#include "
G4MuonMinus.hh
"
88
#include "
G4PionPlus.hh
"
89
#include "
G4PionMinus.hh
"
90
#include "
G4KaonPlus.hh
"
91
#include "
G4KaonMinus.hh
"
92
#include "
G4Proton.hh
"
93
#include "
G4AntiProton.hh
"
94
#include "
G4Deuteron.hh
"
95
#include "
G4Triton.hh
"
96
#include "
G4He3.hh
"
97
#include "
G4Alpha.hh
"
98
#include "
G4GenericIon.hh
"
99
100
#include "
G4PhysicsListHelper.hh
"
101
#include "
G4BuilderType.hh
"
102
103
// factory
104
#include "
G4PhysicsConstructorFactory.hh
"
105
//
106
G4_DECLARE_PHYSCONSTR_FACTORY
(
G4EmStandardPhysics
);
107
108
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
109
110
G4EmStandardPhysics::G4EmStandardPhysics
(
G4int
ver)
111
:
G4VPhysicsConstructor
(
"G4EmStandard"
), verbose(ver)
112
{
113
G4LossTableManager::Instance
();
114
SetPhysicsType
(
bElectromagnetic
);
115
}
116
117
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
118
119
G4EmStandardPhysics::G4EmStandardPhysics
(
G4int
ver,
const
G4String
&)
120
:
G4VPhysicsConstructor
(
"G4EmStandard"
), verbose(ver)
121
{
122
G4LossTableManager::Instance
();
123
SetPhysicsType
(
bElectromagnetic
);
124
}
125
126
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
127
128
G4EmStandardPhysics::~G4EmStandardPhysics
()
129
{}
130
131
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
132
133
void
G4EmStandardPhysics::ConstructParticle
()
134
{
135
// gamma
136
G4Gamma::Gamma
();
137
138
// leptons
139
G4Electron::Electron
();
140
G4Positron::Positron
();
141
G4MuonPlus::MuonPlus
();
142
G4MuonMinus::MuonMinus
();
143
144
// mesons
145
G4PionPlus::PionPlusDefinition
();
146
G4PionMinus::PionMinusDefinition
();
147
G4KaonPlus::KaonPlusDefinition
();
148
G4KaonMinus::KaonMinusDefinition
();
149
150
// barions
151
G4Proton::Proton
();
152
G4AntiProton::AntiProton
();
153
154
// ions
155
G4Deuteron::Deuteron
();
156
G4Triton::Triton
();
157
G4He3::He3
();
158
G4Alpha::Alpha
();
159
G4GenericIon::GenericIonDefinition
();
160
}
161
162
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
163
164
void
G4EmStandardPhysics::ConstructProcess
()
165
{
166
G4PhysicsListHelper
* ph =
G4PhysicsListHelper::GetPhysicsListHelper
();
167
168
// muon & hadron bremsstrahlung and pair production
169
G4MuBremsstrahlung
* mub =
new
G4MuBremsstrahlung
();
170
G4MuPairProduction
* mup =
new
G4MuPairProduction
();
171
G4hBremsstrahlung
* pib =
new
G4hBremsstrahlung
();
172
G4hPairProduction
*
pip
=
new
G4hPairProduction
();
173
G4hBremsstrahlung
* kb =
new
G4hBremsstrahlung
();
174
G4hPairProduction
* kp =
new
G4hPairProduction
();
175
G4hBremsstrahlung
* pb =
new
G4hBremsstrahlung
();
176
G4hPairProduction
*
pp
=
new
G4hPairProduction
();
177
178
// muon & hadron multiple scattering
179
G4MuMultipleScattering
* mumsc =
new
G4MuMultipleScattering
();
180
mumsc->
AddEmModel
(0,
new
G4WentzelVIModel
());
181
G4MuMultipleScattering
* pimsc =
new
G4MuMultipleScattering
();
182
pimsc->
AddEmModel
(0,
new
G4WentzelVIModel
());
183
G4MuMultipleScattering
* kmsc =
new
G4MuMultipleScattering
();
184
kmsc->
AddEmModel
(0,
new
G4WentzelVIModel
());
185
G4MuMultipleScattering
* pmsc =
new
G4MuMultipleScattering
();
186
pmsc->
AddEmModel
(0,
new
G4WentzelVIModel
());
187
G4hMultipleScattering
* hmsc =
new
G4hMultipleScattering
(
"ionmsc"
);
188
189
// high energy limit for e+- scattering models
190
G4double
highEnergyLimit = 100*
MeV
;
191
192
// Add standard EM Processes
193
theParticleIterator
->
reset
();
194
while
( (*
theParticleIterator
)() ){
195
G4ParticleDefinition
* particle =
theParticleIterator
->
value
();
196
G4String
particleName = particle->
GetParticleName
();
197
if
(verbose > 1)
198
G4cout
<<
"### "
<<
GetPhysicsName
() <<
" instantiates for "
199
<< particleName <<
G4endl
;
200
201
if
(particleName ==
"gamma"
) {
202
203
ph->
RegisterProcess
(
new
G4PhotoElectricEffect
(), particle);
204
ph->
RegisterProcess
(
new
G4ComptonScattering
(), particle);
205
ph->
RegisterProcess
(
new
G4GammaConversion
(), particle);
206
207
}
else
if
(particleName ==
"e-"
) {
208
209
G4eMultipleScattering
* msc =
new
G4eMultipleScattering
;
210
G4UrbanMscModel95
* msc1 =
new
G4UrbanMscModel95
();
211
G4WentzelVIModel
* msc2 =
new
G4WentzelVIModel
();
212
msc1->
SetHighEnergyLimit
(highEnergyLimit);
213
msc2->
SetLowEnergyLimit
(highEnergyLimit);
214
msc->
AddEmModel
(0, msc1);
215
msc->
AddEmModel
(0, msc2);
216
217
G4eCoulombScatteringModel
* ssm =
new
G4eCoulombScatteringModel
();
218
G4CoulombScattering
* ss =
new
G4CoulombScattering
();
219
ss->
SetEmModel
(ssm, 1);
220
ss->
SetMinKinEnergy
(highEnergyLimit);
221
ssm->
SetLowEnergyLimit
(highEnergyLimit);
222
ssm->
SetActivationLowEnergyLimit
(highEnergyLimit);
223
224
ph->
RegisterProcess
(msc, particle);
225
ph->
RegisterProcess
(
new
G4eIonisation
(), particle);
226
ph->
RegisterProcess
(
new
G4eBremsstrahlung
(), particle);
227
ph->
RegisterProcess
(ss, particle);
228
229
}
else
if
(particleName ==
"e+"
) {
230
231
G4eMultipleScattering
* msc =
new
G4eMultipleScattering
;
232
G4UrbanMscModel95
* msc1 =
new
G4UrbanMscModel95
();
233
G4WentzelVIModel
* msc2 =
new
G4WentzelVIModel
();
234
msc1->
SetHighEnergyLimit
(highEnergyLimit);
235
msc2->
SetLowEnergyLimit
(highEnergyLimit);
236
msc->
AddEmModel
(0, msc1);
237
msc->
AddEmModel
(0, msc2);
238
239
G4eCoulombScatteringModel
* ssm =
new
G4eCoulombScatteringModel
();
240
G4CoulombScattering
* ss =
new
G4CoulombScattering
();
241
ss->
SetEmModel
(ssm, 1);
242
ss->
SetMinKinEnergy
(highEnergyLimit);
243
ssm->
SetLowEnergyLimit
(highEnergyLimit);
244
ssm->
SetActivationLowEnergyLimit
(highEnergyLimit);
245
246
ph->
RegisterProcess
(msc, particle);
247
ph->
RegisterProcess
(
new
G4eIonisation
(), particle);
248
ph->
RegisterProcess
(
new
G4eBremsstrahlung
(), particle);
249
ph->
RegisterProcess
(
new
G4eplusAnnihilation
(), particle);
250
ph->
RegisterProcess
(ss, particle);
251
252
}
else
if
(particleName ==
"mu+"
||
253
particleName ==
"mu-"
) {
254
255
ph->
RegisterProcess
(mumsc, particle);
256
ph->
RegisterProcess
(
new
G4MuIonisation
(), particle);
257
ph->
RegisterProcess
(mub, particle);
258
ph->
RegisterProcess
(mup, particle);
259
ph->
RegisterProcess
(
new
G4CoulombScattering
(), particle);
260
261
}
else
if
(particleName ==
"alpha"
||
262
particleName ==
"He3"
) {
263
264
//ph->RegisterProcess(hmsc, particle);
265
ph->
RegisterProcess
(
new
G4hMultipleScattering
(), particle);
266
ph->
RegisterProcess
(
new
G4ionIonisation
(), particle);
267
268
}
else
if
(particleName ==
"GenericIon"
) {
269
270
ph->
RegisterProcess
(hmsc, particle);
271
ph->
RegisterProcess
(
new
G4ionIonisation
(), particle);
272
273
}
else
if
(particleName ==
"pi+"
||
274
particleName ==
"pi-"
) {
275
276
//G4hMultipleScattering* pimsc = new G4hMultipleScattering();
277
ph->
RegisterProcess
(pimsc, particle);
278
ph->
RegisterProcess
(
new
G4hIonisation
(), particle);
279
ph->
RegisterProcess
(pib, particle);
280
ph->
RegisterProcess
(pip, particle);
281
282
}
else
if
(particleName ==
"kaon+"
||
283
particleName ==
"kaon-"
) {
284
285
//G4hMultipleScattering* kmsc = new G4hMultipleScattering();
286
ph->
RegisterProcess
(kmsc, particle);
287
ph->
RegisterProcess
(
new
G4hIonisation
(), particle);
288
ph->
RegisterProcess
(kb, particle);
289
ph->
RegisterProcess
(kp, particle);
290
291
}
else
if
(particleName ==
"proton"
||
292
particleName ==
"anti_proton"
) {
293
294
//G4hMultipleScattering* pmsc = new G4hMultipleScattering();
295
ph->
RegisterProcess
(pmsc, particle);
296
ph->
RegisterProcess
(
new
G4hIonisation
(), particle);
297
ph->
RegisterProcess
(pb, particle);
298
ph->
RegisterProcess
(pp, particle);
299
300
}
else
if
(particleName ==
"B+"
||
301
particleName ==
"B-"
||
302
particleName ==
"D+"
||
303
particleName ==
"D-"
||
304
particleName ==
"Ds+"
||
305
particleName ==
"Ds-"
||
306
particleName ==
"anti_He3"
||
307
particleName ==
"anti_alpha"
||
308
particleName ==
"anti_deuteron"
||
309
particleName ==
"anti_lambda_c+"
||
310
particleName ==
"anti_omega-"
||
311
particleName ==
"anti_sigma_c+"
||
312
particleName ==
"anti_sigma_c++"
||
313
particleName ==
"anti_sigma+"
||
314
particleName ==
"anti_sigma-"
||
315
particleName ==
"anti_triton"
||
316
particleName ==
"anti_xi_c+"
||
317
particleName ==
"anti_xi-"
||
318
particleName ==
"deuteron"
||
319
particleName ==
"lambda_c+"
||
320
particleName ==
"omega-"
||
321
particleName ==
"sigma_c+"
||
322
particleName ==
"sigma_c++"
||
323
particleName ==
"sigma+"
||
324
particleName ==
"sigma-"
||
325
particleName ==
"tau+"
||
326
particleName ==
"tau-"
||
327
particleName ==
"triton"
||
328
particleName ==
"xi_c+"
||
329
particleName ==
"xi-"
) {
330
331
ph->
RegisterProcess
(hmsc, particle);
332
ph->
RegisterProcess
(
new
G4hIonisation
(), particle);
333
}
334
}
335
G4EmProcessOptions
opt;
336
opt.
SetVerbose
(verbose);
337
opt.
SetPolarAngleLimit
(CLHEP::pi);
338
339
// Deexcitation
340
//
341
G4VAtomDeexcitation
* de =
new
G4UAtomicDeexcitation
();
342
G4LossTableManager::Instance
()->
SetAtomDeexcitation
(de);
343
}
344
345
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
Generated on Sat May 25 2013 14:33:27 for Geant4 by
1.8.4