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_option4.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_option4
31
//
32
// Author: V.Ivanchenko 28.09.2012 from Option3 physics constructor
33
//
34
// Modified:
35
//
36
//----------------------------------------------------------------------------
37
//
38
39
#include "
G4EmStandardPhysics_option4.hh
"
40
41
#include "
G4SystemOfUnits.hh
"
42
#include "
G4ParticleDefinition.hh
"
43
#include "
G4LossTableManager.hh
"
44
#include "
G4EmProcessOptions.hh
"
45
46
#include "
G4ComptonScattering.hh
"
47
#include "
G4GammaConversion.hh
"
48
#include "
G4PhotoElectricEffect.hh
"
49
#include "
G4RayleighScattering.hh
"
50
#include "
G4PEEffectFluoModel.hh
"
51
#include "
G4KleinNishinaModel.hh
"
52
#include "
G4LowEPComptonModel.hh
"
53
#include "
G4PenelopeGammaConversionModel.hh
"
54
#include "
G4LivermorePhotoElectricModel.hh
"
55
#include "
G4LivermoreComptonModel.hh
"
56
57
#include "
G4eMultipleScattering.hh
"
58
#include "
G4MuMultipleScattering.hh
"
59
#include "
G4hMultipleScattering.hh
"
60
#include "
G4MscStepLimitType.hh
"
61
#include "
G4UrbanMscModel93.hh
"
62
#include "
G4UrbanMscModel95.hh
"
63
#include "
G4UrbanMscModel96.hh
"
64
#include "
G4DummyModel.hh
"
65
#include "
G4WentzelVIModel.hh
"
66
#include "
G4CoulombScattering.hh
"
67
#include "
G4eCoulombScatteringModel.hh
"
68
69
#include "
G4eIonisation.hh
"
70
#include "
G4eBremsstrahlung.hh
"
71
#include "
G4Generator2BS.hh
"
72
#include "
G4Generator2BN.hh
"
73
#include "
G4SeltzerBergerModel.hh
"
74
#include "
G4PenelopeIonisationModel.hh
"
75
#include "
G4UniversalFluctuation.hh
"
76
77
#include "
G4eplusAnnihilation.hh
"
78
#include "
G4UAtomicDeexcitation.hh
"
79
80
#include "
G4MuIonisation.hh
"
81
#include "
G4MuBremsstrahlung.hh
"
82
#include "
G4MuPairProduction.hh
"
83
#include "
G4hBremsstrahlung.hh
"
84
#include "
G4hPairProduction.hh
"
85
86
#include "
G4MuBremsstrahlungModel.hh
"
87
#include "
G4MuPairProductionModel.hh
"
88
#include "
G4hBremsstrahlungModel.hh
"
89
#include "
G4hPairProductionModel.hh
"
90
91
#include "
G4hIonisation.hh
"
92
#include "
G4ionIonisation.hh
"
93
#include "
G4IonParametrisedLossModel.hh
"
94
#include "
G4NuclearStopping.hh
"
95
96
#include "
G4Gamma.hh
"
97
#include "
G4Electron.hh
"
98
#include "
G4Positron.hh
"
99
#include "
G4MuonPlus.hh
"
100
#include "
G4MuonMinus.hh
"
101
#include "
G4PionPlus.hh
"
102
#include "
G4PionMinus.hh
"
103
#include "
G4KaonPlus.hh
"
104
#include "
G4KaonMinus.hh
"
105
#include "
G4Proton.hh
"
106
#include "
G4AntiProton.hh
"
107
#include "
G4Deuteron.hh
"
108
#include "
G4Triton.hh
"
109
#include "
G4He3.hh
"
110
#include "
G4Alpha.hh
"
111
#include "
G4GenericIon.hh
"
112
113
#include "
G4PhysicsListHelper.hh
"
114
#include "
G4BuilderType.hh
"
115
116
// factory
117
#include "
G4PhysicsConstructorFactory.hh
"
118
//
119
G4_DECLARE_PHYSCONSTR_FACTORY
(
G4EmStandardPhysics_option4
);
120
121
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
122
123
G4EmStandardPhysics_option4::G4EmStandardPhysics_option4
(
G4int
ver)
124
:
G4VPhysicsConstructor
(
"G4EmStandard_opt4"
), verbose(ver)
125
{
126
G4LossTableManager::Instance
();
127
SetPhysicsType
(
bElectromagnetic
);
128
}
129
130
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
131
132
G4EmStandardPhysics_option4::G4EmStandardPhysics_option4
(
G4int
ver,
const
G4String
&)
133
:
G4VPhysicsConstructor
(
"G4EmStandard_opt3"
), verbose(ver)
134
{
135
G4LossTableManager::Instance
();
136
SetPhysicsType
(
bElectromagnetic
);
137
}
138
139
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
140
141
G4EmStandardPhysics_option4::~G4EmStandardPhysics_option4
()
142
{}
143
144
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
145
146
void
G4EmStandardPhysics_option4::ConstructParticle
()
147
{
148
// gamma
149
G4Gamma::Gamma
();
150
151
// leptons
152
G4Electron::Electron
();
153
G4Positron::Positron
();
154
G4MuonPlus::MuonPlus
();
155
G4MuonMinus::MuonMinus
();
156
157
// mesons
158
G4PionPlus::PionPlusDefinition
();
159
G4PionMinus::PionMinusDefinition
();
160
G4KaonPlus::KaonPlusDefinition
();
161
G4KaonMinus::KaonMinusDefinition
();
162
163
// barions
164
G4Proton::Proton
();
165
G4AntiProton::AntiProton
();
166
167
// ions
168
G4Deuteron::Deuteron
();
169
G4Triton::Triton
();
170
G4He3::He3
();
171
G4Alpha::Alpha
();
172
G4GenericIon::GenericIonDefinition
();
173
}
174
175
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
176
177
void
G4EmStandardPhysics_option4::ConstructProcess
()
178
{
179
G4PhysicsListHelper
* ph =
G4PhysicsListHelper::GetPhysicsListHelper
();
180
181
// muon & hadron bremsstrahlung and pair production
182
G4MuBremsstrahlung
* mub =
new
G4MuBremsstrahlung
();
183
G4MuPairProduction
* mup =
new
G4MuPairProduction
();
184
G4hBremsstrahlung
* pib =
new
G4hBremsstrahlung
();
185
G4hPairProduction
*
pip
=
new
G4hPairProduction
();
186
G4hBremsstrahlung
* kb =
new
G4hBremsstrahlung
();
187
G4hPairProduction
* kp =
new
G4hPairProduction
();
188
G4hBremsstrahlung
* pb =
new
G4hBremsstrahlung
();
189
G4hPairProduction
*
pp
=
new
G4hPairProduction
();
190
191
// muon & hadron multiple scattering
192
G4MuMultipleScattering
* mumsc =
new
G4MuMultipleScattering
();
193
mumsc->
AddEmModel
(0,
new
G4WentzelVIModel
());
194
G4hMultipleScattering
* pimsc =
new
G4hMultipleScattering
();
195
pimsc->
AddEmModel
(0,
new
G4WentzelVIModel
());
196
G4hMultipleScattering
* kmsc =
new
G4hMultipleScattering
();
197
kmsc->
AddEmModel
(0,
new
G4WentzelVIModel
());
198
G4hMultipleScattering
* pmsc =
new
G4hMultipleScattering
();
199
pmsc->
AddEmModel
(0,
new
G4WentzelVIModel
());
200
G4hMultipleScattering
* hmsc =
new
G4hMultipleScattering
(
"ionmsc"
);
201
202
// high energy limit for e+- scattering models
203
G4double
highEnergyLimit = 100*
MeV
;
204
205
// nuclear stopping
206
G4NuclearStopping
* ionnuc =
new
G4NuclearStopping
();
207
G4NuclearStopping
* pnuc =
new
G4NuclearStopping
();
208
209
// Add standard EM Processes
210
theParticleIterator
->
reset
();
211
while
( (*
theParticleIterator
)() ){
212
G4ParticleDefinition
* particle =
theParticleIterator
->
value
();
213
G4String
particleName = particle->
GetParticleName
();
214
if
(verbose > 1)
215
G4cout
<<
"### "
<<
GetPhysicsName
() <<
" instantiates for "
216
<< particleName <<
G4endl
;
217
218
if
(particleName ==
"gamma"
) {
219
220
// Compton scattering
221
G4ComptonScattering
* cs =
new
G4ComptonScattering
;
222
cs->
SetEmModel
(
new
G4KleinNishinaModel
(),1);
223
G4VEmModel
* theLowEPComptonModel =
new
G4LivermoreComptonModel
();
224
//G4VEmModel* theLowEPComptonModel = new G4LowEPComptonModel();
225
theLowEPComptonModel->
SetHighEnergyLimit
(2*
MeV
);
226
cs->
AddEmModel
(0, theLowEPComptonModel);
227
ph->
RegisterProcess
(cs, particle);
228
229
// Photoelectric
230
G4PhotoElectricEffect
* pe =
new
G4PhotoElectricEffect
();
231
G4VEmModel
* theLivermorePEModel =
new
G4LivermorePhotoElectricModel
();
232
theLivermorePEModel->
SetHighEnergyLimit
(10*
GeV
);
233
pe->
SetEmModel
(theLivermorePEModel,1);
234
ph->
RegisterProcess
(pe, particle);
235
236
// Gamma conversion
237
G4GammaConversion
* gc =
new
G4GammaConversion
();
238
G4VEmModel
* thePenelopeGCModel =
new
G4PenelopeGammaConversionModel
();
239
thePenelopeGCModel->
SetHighEnergyLimit
(1*
GeV
);
240
gc->
SetEmModel
(thePenelopeGCModel,1);
241
ph->
RegisterProcess
(gc, particle);
242
243
// Rayleigh scattering
244
ph->
RegisterProcess
(
new
G4RayleighScattering
(), particle);
245
246
}
else
if
(particleName ==
"e-"
) {
247
248
// multiple scattering
249
G4eMultipleScattering
* msc =
new
G4eMultipleScattering
;
250
msc->
SetStepLimitType
(
fUseDistanceToBoundary
);
251
G4UrbanMscModel95
* msc1 =
new
G4UrbanMscModel95
();
252
G4WentzelVIModel
* msc2 =
new
G4WentzelVIModel
();
253
msc1->
SetHighEnergyLimit
(highEnergyLimit);
254
msc2->
SetLowEnergyLimit
(highEnergyLimit);
255
msc->
AddEmModel
(0, msc1);
256
msc->
AddEmModel
(0, msc2);
257
258
G4eCoulombScatteringModel
* ssm =
new
G4eCoulombScatteringModel
();
259
G4CoulombScattering
* ss =
new
G4CoulombScattering
();
260
ss->
SetEmModel
(ssm, 1);
261
ss->
SetMinKinEnergy
(highEnergyLimit);
262
ssm->
SetLowEnergyLimit
(highEnergyLimit);
263
ssm->
SetActivationLowEnergyLimit
(highEnergyLimit);
264
265
// ionisation
266
G4eIonisation
* eIoni =
new
G4eIonisation
();
267
eIoni->
SetStepFunction
(0.2, 100*um);
268
G4VEmModel
* theIoniPenelope =
new
G4PenelopeIonisationModel
();
269
theIoniPenelope->
SetHighEnergyLimit
(0.1*
MeV
);
270
eIoni->
AddEmModel
(0, theIoniPenelope,
new
G4UniversalFluctuation
());
271
272
// bremsstrahlung
273
G4eBremsstrahlung
* eBrem =
new
G4eBremsstrahlung
();
274
275
ph->
RegisterProcess
(msc, particle);
276
ph->
RegisterProcess
(eIoni, particle);
277
ph->
RegisterProcess
(eBrem, particle);
278
ph->
RegisterProcess
(ss, particle);
279
280
}
else
if
(particleName ==
"e+"
) {
281
282
// multiple scattering
283
G4eMultipleScattering
* msc =
new
G4eMultipleScattering
;
284
msc->
SetStepLimitType
(
fUseDistanceToBoundary
);
285
G4UrbanMscModel95
* msc1 =
new
G4UrbanMscModel95
();
286
G4WentzelVIModel
* msc2 =
new
G4WentzelVIModel
();
287
msc1->
SetHighEnergyLimit
(highEnergyLimit);
288
msc2->
SetLowEnergyLimit
(highEnergyLimit);
289
msc->
AddEmModel
(0, msc1);
290
msc->
AddEmModel
(0, msc2);
291
292
G4eCoulombScatteringModel
* ssm =
new
G4eCoulombScatteringModel
();
293
G4CoulombScattering
* ss =
new
G4CoulombScattering
();
294
ss->
SetEmModel
(ssm, 1);
295
ss->
SetMinKinEnergy
(highEnergyLimit);
296
ssm->
SetLowEnergyLimit
(highEnergyLimit);
297
ssm->
SetActivationLowEnergyLimit
(highEnergyLimit);
298
299
// ionisation
300
G4eIonisation
* eIoni =
new
G4eIonisation
();
301
eIoni->
SetStepFunction
(0.2, 100*um);
302
G4VEmModel
* theIoniPenelope =
new
G4PenelopeIonisationModel
();
303
theIoniPenelope->
SetHighEnergyLimit
(0.1*
MeV
);
304
eIoni->
AddEmModel
(0, theIoniPenelope,
new
G4UniversalFluctuation
());
305
306
// bremsstrahlung
307
G4eBremsstrahlung
* eBrem =
new
G4eBremsstrahlung
();
308
309
ph->
RegisterProcess
(msc, particle);
310
ph->
RegisterProcess
(eIoni, particle);
311
ph->
RegisterProcess
(eBrem, particle);
312
ph->
RegisterProcess
(ss, particle);
313
314
// annihilation at rest and in flight
315
ph->
RegisterProcess
(
new
G4eplusAnnihilation
(), particle);
316
317
}
else
if
(particleName ==
"mu+"
||
318
particleName ==
"mu-"
) {
319
320
G4MuIonisation
* muIoni =
new
G4MuIonisation
();
321
muIoni->
SetStepFunction
(0.2, 50*um);
322
323
ph->
RegisterProcess
(mumsc, particle);
324
ph->
RegisterProcess
(muIoni, particle);
325
ph->
RegisterProcess
(mub, particle);
326
ph->
RegisterProcess
(mup, particle);
327
ph->
RegisterProcess
(
new
G4CoulombScattering
(), particle);
328
329
}
else
if
(particleName ==
"alpha"
||
330
particleName ==
"He3"
) {
331
332
G4hMultipleScattering
* msc =
new
G4hMultipleScattering
();
333
G4ionIonisation
* ionIoni =
new
G4ionIonisation
();
334
ionIoni->
SetStepFunction
(0.1, 10*um);
335
336
ph->
RegisterProcess
(msc, particle);
337
ph->
RegisterProcess
(ionIoni, particle);
338
ph->
RegisterProcess
(ionnuc, particle);
339
340
}
else
if
(particleName ==
"GenericIon"
) {
341
342
G4ionIonisation
* ionIoni =
new
G4ionIonisation
();
343
ionIoni->
SetEmModel
(
new
G4IonParametrisedLossModel
());
344
ionIoni->
SetStepFunction
(0.1, 1*um);
345
346
ph->
RegisterProcess
(hmsc, particle);
347
ph->
RegisterProcess
(ionIoni, particle);
348
ph->
RegisterProcess
(ionnuc, particle);
349
350
}
else
if
(particleName ==
"pi+"
||
351
particleName ==
"pi-"
) {
352
353
//G4hMultipleScattering* pimsc = new G4hMultipleScattering();
354
G4hIonisation
* hIoni =
new
G4hIonisation
();
355
hIoni->
SetStepFunction
(0.2, 50*um);
356
357
ph->
RegisterProcess
(pimsc, particle);
358
ph->
RegisterProcess
(hIoni, particle);
359
ph->
RegisterProcess
(pib, particle);
360
ph->
RegisterProcess
(pip, particle);
361
362
}
else
if
(particleName ==
"kaon+"
||
363
particleName ==
"kaon-"
) {
364
365
//G4hMultipleScattering* kmsc = new G4hMultipleScattering();
366
G4hIonisation
* hIoni =
new
G4hIonisation
();
367
hIoni->
SetStepFunction
(0.2, 50*um);
368
369
ph->
RegisterProcess
(kmsc, particle);
370
ph->
RegisterProcess
(hIoni, particle);
371
ph->
RegisterProcess
(kb, particle);
372
ph->
RegisterProcess
(kp, particle);
373
374
}
else
if
(particleName ==
"proton"
||
375
particleName ==
"anti_proton"
) {
376
377
//G4hMultipleScattering* pmsc = new G4hMultipleScattering();
378
G4hIonisation
* hIoni =
new
G4hIonisation
();
379
hIoni->
SetStepFunction
(0.2, 50*um);
380
381
ph->
RegisterProcess
(pmsc, particle);
382
ph->
RegisterProcess
(hIoni, particle);
383
ph->
RegisterProcess
(pb, particle);
384
ph->
RegisterProcess
(pp, particle);
385
ph->
RegisterProcess
(pnuc, particle);
386
387
}
else
if
(particleName ==
"B+"
||
388
particleName ==
"B-"
||
389
particleName ==
"D+"
||
390
particleName ==
"D-"
||
391
particleName ==
"Ds+"
||
392
particleName ==
"Ds-"
||
393
particleName ==
"anti_He3"
||
394
particleName ==
"anti_alpha"
||
395
particleName ==
"anti_deuteron"
||
396
particleName ==
"anti_lambda_c+"
||
397
particleName ==
"anti_omega-"
||
398
particleName ==
"anti_sigma_c+"
||
399
particleName ==
"anti_sigma_c++"
||
400
particleName ==
"anti_sigma+"
||
401
particleName ==
"anti_sigma-"
||
402
particleName ==
"anti_triton"
||
403
particleName ==
"anti_xi_c+"
||
404
particleName ==
"anti_xi-"
||
405
particleName ==
"deuteron"
||
406
particleName ==
"lambda_c+"
||
407
particleName ==
"omega-"
||
408
particleName ==
"sigma_c+"
||
409
particleName ==
"sigma_c++"
||
410
particleName ==
"sigma+"
||
411
particleName ==
"sigma-"
||
412
particleName ==
"tau+"
||
413
particleName ==
"tau-"
||
414
particleName ==
"triton"
||
415
particleName ==
"xi_c+"
||
416
particleName ==
"xi-"
) {
417
418
ph->
RegisterProcess
(hmsc, particle);
419
ph->
RegisterProcess
(
new
G4hIonisation
(), particle);
420
ph->
RegisterProcess
(pnuc, particle);
421
}
422
}
423
424
// Em options
425
//
426
G4EmProcessOptions
opt;
427
opt.
SetVerbose
(verbose);
428
429
// Multiple Coulomb scattering
430
//
431
opt.
SetPolarAngleLimit
(CLHEP::pi);
432
433
// Physics tables
434
//
435
opt.
SetMinEnergy
(100*
eV
);
436
opt.
SetMaxEnergy
(10*
TeV
);
437
opt.
SetDEDXBinning
(220);
438
opt.
SetLambdaBinning
(220);
439
440
// Nuclear stopping
441
pnuc->
SetMaxKinEnergy
(
MeV
);
442
443
// Ionization
444
//
445
//opt.SetSubCutoff(true);
446
447
// Deexcitation
448
G4VAtomDeexcitation
* de =
new
G4UAtomicDeexcitation
();
449
G4LossTableManager::Instance
()->
SetAtomDeexcitation
(de);
450
de->
SetFluo
(
true
);
451
}
452
453
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
Generated on Sat May 25 2013 14:33:27 for Geant4 by
1.8.4