Geant4  10.02
G4EmStandardPhysics_option2.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: G4EmStandardPhysics_option2.cc 92821 2015-09-17 15:23:49Z gcosmo $
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName: G4EmStandardPhysics_option2
31 //
32 // Author: V.Ivanchenko 09.11.2005
33 //
34 // Modified:
35 // 19.12.2005 V.Ivanchenko rename 71 -> 72
36 // 15.06.2006 V.Ivanchenko use this class as a constructor of fast EM physics
37 // 13.11.2006 V.Ivanchenko use G4hMultipleScattering
38 // 14.11.2006 V.Ivanchenko use sub-cutoff option for all particles
39 // 13.02.2007 V.Ivanchenko use default msc
40 // 15.05.2007 V.Ivanchenko rename to _option2
41 // 13.03.2008 V.Ivanchenko use G4eMultipleScattering
42 // 21.04.2008 V.Ivanchenko add long-lived D and B mesons; use spline
43 // 28.05.2008 V.Ivanchenko linLossLimit=0.01; added hBrem and hPairProd processes
44 //
45 //----------------------------------------------------------------------------
46 //
47 
49 
50 #include "G4SystemOfUnits.hh"
51 #include "G4ParticleDefinition.hh"
52 #include "G4LossTableManager.hh"
53 #include "G4EmParameters.hh"
54 
55 #include "G4ComptonScattering.hh"
56 #include "G4GammaConversion.hh"
57 #include "G4PhotoElectricEffect.hh"
58 #include "G4PEEffectFluoModel.hh"
59 #include "G4KleinNishinaModel.hh"
60 #include "G4RayleighScattering.hh"
61 
62 #include "G4eMultipleScattering.hh"
63 #include "G4hMultipleScattering.hh"
65 #include "G4CoulombScattering.hh"
67 #include "G4UrbanMscModel.hh"
68 #include "G4WentzelVIModel.hh"
69 
70 #include "G4eIonisation.hh"
71 #include "G4eBremsstrahlung.hh"
73 #include "G4eplusAnnihilation.hh"
74 #include "G4Generator2BS.hh"
75 #include "G4SeltzerBergerModel.hh"
76 #include "G4UAtomicDeexcitation.hh"
77 
78 #include "G4MuIonisation.hh"
79 #include "G4MuBremsstrahlung.hh"
80 #include "G4MuPairProduction.hh"
81 #include "G4hBremsstrahlung.hh"
82 #include "G4hPairProduction.hh"
83 
88 
89 #include "G4hIonisation.hh"
90 #include "G4ionIonisation.hh"
91 #include "G4alphaIonisation.hh"
92 
93 #include "G4Gamma.hh"
94 #include "G4Electron.hh"
95 #include "G4Positron.hh"
96 #include "G4MuonPlus.hh"
97 #include "G4MuonMinus.hh"
98 #include "G4PionPlus.hh"
99 #include "G4PionMinus.hh"
100 #include "G4KaonPlus.hh"
101 #include "G4KaonMinus.hh"
102 #include "G4Proton.hh"
103 #include "G4AntiProton.hh"
104 #include "G4Deuteron.hh"
105 #include "G4Triton.hh"
106 #include "G4He3.hh"
107 #include "G4Alpha.hh"
108 #include "G4GenericIon.hh"
109 
110 #include "G4PhysicsListHelper.hh"
111 #include "G4BuilderType.hh"
112 #include "G4EmModelActivator.hh"
113 
114 // factory
116 //
118 
119 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
120 
122  : G4VPhysicsConstructor("G4EmStandard_opt2"), verbose(ver)
123 {
125  param->SetDefaults();
126  param->SetVerbose(verbose);
127  param->SetApplyCuts(false);
128  param->SetMscRangeFactor(0.2);
131 }
132 
133 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
134 
136  const G4String&)
137  : G4VPhysicsConstructor("G4EmStandard_opt2"), verbose(ver)
138 {
140  param->SetDefaults();
141  param->SetVerbose(verbose);
142  param->SetApplyCuts(false);
143  param->SetMscRangeFactor(0.2);
146 }
147 
148 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
149 
151 {}
152 
153 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
154 
156 {
157  // gamma
158  G4Gamma::Gamma();
159 
160  // leptons
165 
166  // mesons
171 
172  // barions
175 
176  // ions
179  G4He3::He3();
180  G4Alpha::Alpha();
182 
183  // dna
184  G4EmModelActivator mact;
185  mact.ConstructParticle();
186 }
187 
188 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
189 
191 {
192  if(verbose > 1) {
193  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
194  }
196 
197  // muon & hadron bremsstrahlung and pair production
206 
207  // muon & hadron multiple scattering
209  mumsc->AddEmModel(0, new G4WentzelVIModel());
211 
213  pimsc->AddEmModel(0, new G4WentzelVIModel());
215 
217  kmsc->AddEmModel(0, new G4WentzelVIModel());
219 
221  pmsc->AddEmModel(0, new G4WentzelVIModel());
223 
224  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
225 
226  // high energy limit for e+- scattering models and bremsstrahlung
227  G4double highEnergyLimit = 100*MeV;
228 
229  // Add standard EM Processes
230  aParticleIterator->reset();
231  while( (*aParticleIterator)() ){
232  G4ParticleDefinition* particle = aParticleIterator->value();
233  G4String particleName = particle->GetParticleName();
234 
235  if (particleName == "gamma") {
236 
237  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
238  ph->RegisterProcess(new G4ComptonScattering(), particle);
239  ph->RegisterProcess(new G4GammaConversion(), particle);
240  ph->RegisterProcess(new G4RayleighScattering(), particle);
241 
242  } else if (particleName == "e-") {
243 
244  G4eIonisation* eioni = new G4eIonisation();
245  eioni->SetStepFunction(0.8, 1.0*mm);
246 
248  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
249  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
250  msc1->SetNewDisplacementFlag(false);
251  msc1->SetHighEnergyLimit(highEnergyLimit);
252  msc2->SetLowEnergyLimit(highEnergyLimit);
253  msc->AddEmModel(0, msc1);
254  msc->AddEmModel(0, msc2);
255 
258  ss->SetEmModel(ssm, 1);
259  ss->SetMinKinEnergy(highEnergyLimit);
260  ssm->SetLowEnergyLimit(highEnergyLimit);
261  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
262 
263  G4eBremsstrahlung* brem = new G4eBremsstrahlung();
268  brem->SetEmModel(br1,1);
269  brem->SetEmModel(br2,2);
270  br2->SetLowEnergyLimit(GeV);
271 
272  ph->RegisterProcess(msc, particle);
273  ph->RegisterProcess(eioni, particle);
274  ph->RegisterProcess(brem, particle);
275  ph->RegisterProcess(ss, particle);
276 
277  } else if (particleName == "e+") {
278 
279  G4eIonisation* eioni = new G4eIonisation();
280  eioni->SetStepFunction(0.8, 1.0*mm);
281 
283  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
284  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
285  msc1->SetNewDisplacementFlag(false);
286  msc1->SetHighEnergyLimit(highEnergyLimit);
287  msc2->SetLowEnergyLimit(highEnergyLimit);
288  msc->AddEmModel(0, msc1);
289  msc->AddEmModel(0, msc2);
290 
293  ss->SetEmModel(ssm, 1);
294  ss->SetMinKinEnergy(highEnergyLimit);
295  ssm->SetLowEnergyLimit(highEnergyLimit);
296  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
297 
298  G4eBremsstrahlung* brem = new G4eBremsstrahlung();
303  brem->SetEmModel(br1,1);
304  brem->SetEmModel(br2,2);
305  br2->SetLowEnergyLimit(GeV);
306 
307  ph->RegisterProcess(msc, particle);
308  ph->RegisterProcess(eioni, particle);
309  ph->RegisterProcess(brem, particle);
310  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
311  ph->RegisterProcess(ss, particle);
312 
313  } else if (particleName == "mu+" ||
314  particleName == "mu-" ) {
315 
316  ph->RegisterProcess(mumsc, particle);
317  ph->RegisterProcess(new G4MuIonisation(), particle);
318  ph->RegisterProcess(mub, particle);
319  ph->RegisterProcess(mup, particle);
320  ph->RegisterProcess(muss, particle);
321 
322  } else if (particleName == "alpha" ||
323  particleName == "He3") {
324 
325  //ph->RegisterProcess(hmsc, particle);
326  ph->RegisterProcess(new G4hMultipleScattering(), particle);
327  ph->RegisterProcess(new G4ionIonisation(), particle);
328 
329  } else if (particleName == "GenericIon") {
330 
331  G4ionIonisation* ionIoni = new G4ionIonisation();
332  //ionIoni->SetEmModel(new G4IonParametrisedLossModel());
333  //ionIoni->SetStepFunction(0.1, 20*um);
334 
335  ph->RegisterProcess(hmsc, particle);
336  ph->RegisterProcess(ionIoni, particle);
337 
338  } else if (particleName == "pi+" ||
339  particleName == "pi-" ) {
340 
341  ph->RegisterProcess(pimsc, particle);
342  ph->RegisterProcess(new G4hIonisation(), particle);
343  ph->RegisterProcess(pib, particle);
344  ph->RegisterProcess(pip, particle);
345  ph->RegisterProcess(piss, particle);
346 
347  } else if (particleName == "kaon+" ||
348  particleName == "kaon-" ) {
349 
350  ph->RegisterProcess(kmsc, particle);
351  ph->RegisterProcess(new G4hIonisation(), particle);
352  ph->RegisterProcess(kb, particle);
353  ph->RegisterProcess(kp, particle);
354  ph->RegisterProcess(kss, particle);
355 
356  } else if (particleName == "proton" ||
357  particleName == "anti_proton") {
358 
359  ph->RegisterProcess(pmsc, particle);
360  ph->RegisterProcess(new G4hIonisation(), particle);
361  ph->RegisterProcess(pb, particle);
362  ph->RegisterProcess(pp, particle);
363  ph->RegisterProcess(pss, particle);
364 
365  } else if (particleName == "B+" ||
366  particleName == "B-" ||
367  particleName == "D+" ||
368  particleName == "D-" ||
369  particleName == "Ds+" ||
370  particleName == "Ds-" ||
371  particleName == "anti_He3" ||
372  particleName == "anti_alpha" ||
373  particleName == "anti_deuteron" ||
374  particleName == "anti_lambda_c+" ||
375  particleName == "anti_omega-" ||
376  particleName == "anti_sigma_c+" ||
377  particleName == "anti_sigma_c++" ||
378  particleName == "anti_sigma+" ||
379  particleName == "anti_sigma-" ||
380  particleName == "anti_triton" ||
381  particleName == "anti_xi_c+" ||
382  particleName == "anti_xi-" ||
383  particleName == "deuteron" ||
384  particleName == "lambda_c+" ||
385  particleName == "omega-" ||
386  particleName == "sigma_c+" ||
387  particleName == "sigma_c++" ||
388  particleName == "sigma+" ||
389  particleName == "sigma-" ||
390  particleName == "tau+" ||
391  particleName == "tau-" ||
392  particleName == "triton" ||
393  particleName == "xi_c+" ||
394  particleName == "xi-" ) {
395 
396  ph->RegisterProcess(hmsc, particle);
397  ph->RegisterProcess(new G4hIonisation(), particle);
398  }
399  }
400 
401  // Deexcitation
402  //
405 
406  G4EmModelActivator mact;
407  mact.ConstructProcess();
408 }
409 
410 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
static G4KaonPlus * KaonPlusDefinition()
Definition: G4KaonPlus.cc:108
void SetApplyCuts(G4bool val)
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 SetMscStepLimitType(G4MscStepLimitType val)
static G4KaonMinus * KaonMinusDefinition()
Definition: G4KaonMinus.cc:108
void SetNewDisplacementFlag(G4bool)
void SetStepFunction(G4double v1, G4double v2)
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
static const double GeV
Definition: G4SIunits.hh:214
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
G4_DECLARE_PHYSCONSTR_FACTORY(G4EmStandardPhysics_option2)
static G4Positron * Positron()
Definition: G4Positron.cc:94
void AddEmModel(G4int order, G4VEmModel *, const G4Region *region=0)
void SetAngularDistribution(G4VEmAngularDistribution *)
Definition: G4VEmModel.hh:624
static G4PhysicsListHelper * GetPhysicsListHelper()
static G4EmParameters * Instance()
void SetEmModel(G4VEmModel *, G4int index=1)
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
static const double mm
Definition: G4SIunits.hh:114
void SetAtomDeexcitation(G4VAtomDeexcitation *)