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