Geant4  10.02.p01
G4EmStandardPhysicsGS.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: G4EmStandardPhysicsGS.cc 90470 2015-06-01 10:44:59Z vnivanch $
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName: G4EmStandardPhysicsGS
31 //
32 // Author: V.Ivanchenko 05.06.2015
33 //
34 // Modified:
35 //
36 //----------------------------------------------------------------------------
37 //
38 
39 #include "G4EmStandardPhysicsGS.hh"
40 #include "G4SystemOfUnits.hh"
41 #include "G4ParticleDefinition.hh"
42 #include "G4EmParameters.hh"
43 #include "G4LossTableManager.hh"
44 
45 #include "G4ComptonScattering.hh"
46 #include "G4GammaConversion.hh"
47 #include "G4PhotoElectricEffect.hh"
48 #include "G4RayleighScattering.hh"
49 
50 #include "G4KleinNishinaModel.hh"
52 #include "G4eMultipleScattering.hh"
54 #include "G4hMultipleScattering.hh"
55 #include "G4CoulombScattering.hh"
57 #include "G4WentzelVIModel.hh"
58 #include "G4UrbanMscModel.hh"
60 
65 
66 #include "G4eIonisation.hh"
67 #include "G4eBremsstrahlung.hh"
68 #include "G4eplusAnnihilation.hh"
69 #include "G4UAtomicDeexcitation.hh"
70 
71 #include "G4MuIonisation.hh"
72 #include "G4MuBremsstrahlung.hh"
73 #include "G4MuPairProduction.hh"
74 #include "G4hBremsstrahlung.hh"
75 #include "G4hPairProduction.hh"
76 
77 #include "G4hIonisation.hh"
78 #include "G4ionIonisation.hh"
79 #include "G4alphaIonisation.hh"
80 
81 #include "G4Gamma.hh"
82 #include "G4Electron.hh"
83 #include "G4Positron.hh"
84 #include "G4MuonPlus.hh"
85 #include "G4MuonMinus.hh"
86 #include "G4PionPlus.hh"
87 #include "G4PionMinus.hh"
88 #include "G4KaonPlus.hh"
89 #include "G4KaonMinus.hh"
90 #include "G4Proton.hh"
91 #include "G4AntiProton.hh"
92 #include "G4Deuteron.hh"
93 #include "G4Triton.hh"
94 #include "G4He3.hh"
95 #include "G4Alpha.hh"
96 #include "G4GenericIon.hh"
97 
98 #include "G4PhysicsListHelper.hh"
99 #include "G4BuilderType.hh"
100 #include "G4EmModelActivator.hh"
101 
102 // factory
104 //
106 
107 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
108 
110  : G4VPhysicsConstructor("G4EmStandard"), verbose(ver)
111 {
113  param->SetDefaults();
114  param->SetVerbose(verbose);
115  param->SetLowestElectronEnergy(10*eV);
116  param->SetMscRangeFactor(0.12);
117  param->SetMscStepLimitType(fUseSafetyPlus);// corresponds to Urban fUseSafety
118 // param->SetFluo(true);
120 }
121 
122 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
123 
125  : G4VPhysicsConstructor("G4EmStandard"), verbose(ver)
126 {
128  param->SetDefaults();
129  param->SetVerbose(verbose);
130  param->SetLowestElectronEnergy(10*eV);
131  param->SetMscRangeFactor(0.12);
132  param->SetMscStepLimitType(fUseSafetyPlus);// corresponds to Urban fUseSafety
133 // param->SetFluo(true);
135 }
136 
137 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
138 
140 {}
141 
142 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
143 
145 {
146  // gamma
147  G4Gamma::Gamma();
148 
149  // leptons
154 
155  // mesons
160 
161  // barions
164 
165  // ions
168  G4He3::He3();
169  G4Alpha::Alpha();
171 
172  // dna
173  G4EmModelActivator mact;
174  mact.ConstructParticle();
175 }
176 
177 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
178 
180 {
181  if(verbose > 1) {
182  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
183  }
185 
186  // muon & hadron bremsstrahlung and pair production
195 
196  // muon & hadron multiple scattering
198  mumsc->AddEmModel(0, new G4WentzelVIModel());
200 
202  pimsc->AddEmModel(0, new G4WentzelVIModel());
204 
206  kmsc->AddEmModel(0, new G4WentzelVIModel());
208 
210  pmsc->AddEmModel(0, new G4WentzelVIModel());
212 
213  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
214 
215  // high energy limit for e+- scattering models
216  G4double highEnergyLimit = 100*MeV;
217 
218  // Add standard EM Processes
219  aParticleIterator->reset();
220  while( (*aParticleIterator)() ){
221  G4ParticleDefinition* particle = aParticleIterator->value();
222  G4String particleName = particle->GetParticleName();
223 
224  if (particleName == "gamma") {
225 
226  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
227  ph->RegisterProcess(new G4ComptonScattering(), particle);
228  ph->RegisterProcess(new G4GammaConversion(), particle);
229 
230 
231 /*
232  G4ComptonScattering* cs = new G4ComptonScattering;
233  cs->SetEmModel(new G4KleinNishinaModel(), 1);
234 
235  G4PhotoElectricEffect* pee = new G4PhotoElectricEffect();
236  pee->SetEmModel(new G4LivermorePhotoElectricModel(), 1);
237 
238  ph->RegisterProcess(cs, particle);
239  ph->RegisterProcess(pee, particle);
240  ph->RegisterProcess(new G4GammaConversion(), particle);
241  ph->RegisterProcess(new G4RayleighScattering(), particle);
242 */
243  } else if (particleName == "e-") {
244 
247  msc1->SetOptionPWAScreening(false);
248 
249  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
250  msc1->SetHighEnergyLimit(highEnergyLimit);
251  msc2->SetLowEnergyLimit(highEnergyLimit);
252  msc->AddEmModel(0, msc1);
253  msc->AddEmModel(0, msc2);
254 
257  ss->SetEmModel(ssm, 1);
258  ss->SetMinKinEnergy(highEnergyLimit);
259  ssm->SetLowEnergyLimit(highEnergyLimit);
260  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
261 
262  ph->RegisterProcess(msc, particle);
263  ph->RegisterProcess(new G4eIonisation(), particle);
264  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
265  ph->RegisterProcess(ss, particle);
266 
267  } else if (particleName == "e+") {
268 
271  msc1->SetOptionPWAScreening(true);
272 
273  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
274  msc1->SetHighEnergyLimit(highEnergyLimit);
275  msc2->SetLowEnergyLimit(highEnergyLimit);
276  msc->AddEmModel(0, msc1);
277  msc->AddEmModel(0, msc2);
278 
281  ss->SetEmModel(ssm, 1);
282  ss->SetMinKinEnergy(highEnergyLimit);
283  ssm->SetLowEnergyLimit(highEnergyLimit);
284  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
285 
286  ph->RegisterProcess(msc, particle);
287  ph->RegisterProcess(new G4eIonisation(), particle);
288  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
289  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
290  ph->RegisterProcess(ss, particle);
291 
292  } else if (particleName == "mu+" ||
293  particleName == "mu-" ) {
294 
295  ph->RegisterProcess(mumsc, particle);
296  ph->RegisterProcess(new G4MuIonisation(), particle);
297  ph->RegisterProcess(mub, particle);
298  ph->RegisterProcess(mup, particle);
299  ph->RegisterProcess(muss, particle);
300 
301  } else if (particleName == "alpha" ||
302  particleName == "He3") {
303 
304  //ph->RegisterProcess(hmsc, particle);
305  ph->RegisterProcess(new G4hMultipleScattering(), particle);
306  ph->RegisterProcess(new G4ionIonisation(), particle);
307 
308  } else if (particleName == "GenericIon") {
309 
310  ph->RegisterProcess(hmsc, particle);
311  ph->RegisterProcess(new G4ionIonisation(), particle);
312 
313  } else if (particleName == "pi+" ||
314  particleName == "pi-" ) {
315 
316  //G4hMultipleScattering* pimsc = new G4hMultipleScattering();
317  ph->RegisterProcess(pimsc, particle);
318  ph->RegisterProcess(new G4hIonisation(), particle);
319  ph->RegisterProcess(pib, particle);
320  ph->RegisterProcess(pip, particle);
321  ph->RegisterProcess(piss, particle);
322 
323  } else if (particleName == "kaon+" ||
324  particleName == "kaon-" ) {
325 
326  //G4hMultipleScattering* kmsc = new G4hMultipleScattering();
327  ph->RegisterProcess(kmsc, particle);
328  ph->RegisterProcess(new G4hIonisation(), particle);
329  ph->RegisterProcess(kb, particle);
330  ph->RegisterProcess(kp, particle);
331  ph->RegisterProcess(kss, particle);
332 
333  } else if (particleName == "proton" ||
334  particleName == "anti_proton") {
335 
336  //G4hMultipleScattering* pmsc = new G4hMultipleScattering();
337  ph->RegisterProcess(pmsc, particle);
338  ph->RegisterProcess(new G4hIonisation(), particle);
339  ph->RegisterProcess(pb, particle);
340  ph->RegisterProcess(pp, particle);
341  ph->RegisterProcess(pss, particle);
342 
343  } else if (particleName == "B+" ||
344  particleName == "B-" ||
345  particleName == "D+" ||
346  particleName == "D-" ||
347  particleName == "Ds+" ||
348  particleName == "Ds-" ||
349  particleName == "anti_He3" ||
350  particleName == "anti_alpha" ||
351  particleName == "anti_deuteron" ||
352  particleName == "anti_lambda_c+" ||
353  particleName == "anti_omega-" ||
354  particleName == "anti_sigma_c+" ||
355  particleName == "anti_sigma_c++" ||
356  particleName == "anti_sigma+" ||
357  particleName == "anti_sigma-" ||
358  particleName == "anti_triton" ||
359  particleName == "anti_xi_c+" ||
360  particleName == "anti_xi-" ||
361  particleName == "deuteron" ||
362  particleName == "lambda_c+" ||
363  particleName == "omega-" ||
364  particleName == "sigma_c+" ||
365  particleName == "sigma_c++" ||
366  particleName == "sigma+" ||
367  particleName == "sigma-" ||
368  particleName == "tau+" ||
369  particleName == "tau-" ||
370  particleName == "triton" ||
371  particleName == "xi_c+" ||
372  particleName == "xi-" ) {
373 
374  ph->RegisterProcess(hmsc, particle);
375  ph->RegisterProcess(new G4hIonisation(), particle);
376  }
377  }
378 
379  // Deexcitation
380  //
383 
384  G4EmModelActivator mact;
385  mact.ConstructProcess();
386 }
387 
388 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
static G4KaonPlus * KaonPlusDefinition()
Definition: G4KaonPlus.cc:108
static G4GenericIon * GenericIonDefinition()
Definition: G4GenericIon.cc:88
static G4MuonPlus * MuonPlus()
Definition: G4MuonPlus.cc:99
static const double MeV
Definition: G4SIunits.hh:211
void SetVerbose(G4int val)
static G4LossTableManager * Instance()
void SetLowestElectronEnergy(G4double val)
void SetMscStepLimitType(G4MscStepLimitType val)
static G4KaonMinus * KaonMinusDefinition()
Definition: G4KaonMinus.cc:108
int G4int
Definition: G4Types.hh:78
const G4String & GetParticleName() const
void SetHighEnergyLimit(G4double)
Definition: G4VEmModel.hh:725
void SetEmModel(G4VEmModel *, G4int index=1)
G4GLOB_DLL std::ostream G4cout
static G4AntiProton * AntiProton()
Definition: G4AntiProton.cc:93
static G4PionMinus * PionMinusDefinition()
Definition: G4PionMinus.cc:93
void SetMscRangeFactor(G4double val)
#define aParticleIterator
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
static G4Triton * Triton()
Definition: G4Triton.cc:95
static G4PionPlus * PionPlusDefinition()
Definition: G4PionPlus.cc:93
static G4Proton * Proton()
Definition: G4Proton.cc:93
const G4String & GetPhysicsName() const
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
void SetActivationLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:746
static const double eV
Definition: G4SIunits.hh:212
static G4Positron * Positron()
Definition: G4Positron.cc:94
void AddEmModel(G4int order, G4VEmModel *, const G4Region *region=0)
static G4PhysicsListHelper * GetPhysicsListHelper()
static G4EmParameters * Instance()
static G4MuonMinus * MuonMinus()
Definition: G4MuonMinus.cc:100
static G4Electron * Electron()
Definition: G4Electron.cc:94
#define G4endl
Definition: G4ios.hh:61
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
void SetMinKinEnergy(G4double e)
double G4double
Definition: G4Types.hh:76
void SetLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:732
static G4He3 * He3()
Definition: G4He3.cc:94
void SetAtomDeexcitation(G4VAtomDeexcitation *)
G4_DECLARE_PHYSCONSTR_FACTORY(G4EmStandardPhysicsGS)