Geant4  10.01.p02
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: G4EmStandardPhysics_option4.cc 88877 2015-03-13 16:00:02Z gcosmo $
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 
40 
41 #include "G4SystemOfUnits.hh"
42 #include "G4ParticleDefinition.hh"
43 #include "G4LossTableManager.hh"
44 #include "G4EmParameters.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"
55 
56 #include "G4eMultipleScattering.hh"
58 #include "G4hMultipleScattering.hh"
59 #include "G4MscStepLimitType.hh"
60 #include "G4UrbanMscModel.hh"
61 #include "G4DummyModel.hh"
62 #include "G4WentzelVIModel.hh"
63 #include "G4CoulombScattering.hh"
65 
66 #include "G4eIonisation.hh"
67 #include "G4eBremsstrahlung.hh"
68 #include "G4Generator2BS.hh"
69 #include "G4Generator2BN.hh"
70 #include "G4SeltzerBergerModel.hh"
73 
74 #include "G4eplusAnnihilation.hh"
75 #include "G4UAtomicDeexcitation.hh"
76 
77 #include "G4MuIonisation.hh"
78 #include "G4MuBremsstrahlung.hh"
79 #include "G4MuPairProduction.hh"
80 #include "G4hBremsstrahlung.hh"
81 #include "G4hPairProduction.hh"
82 
87 
88 #include "G4hIonisation.hh"
89 #include "G4ionIonisation.hh"
91 #include "G4NuclearStopping.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 
113 // factory
115 //
117 
118 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
119 
121  : G4VPhysicsConstructor("G4EmStandard_opt4"), verbose(ver)
122 {
124  param->SetVerbose(verbose);
125  param->SetMinEnergy(100*eV);
126  param->SetMaxEnergy(10*TeV);
127  param->SetNumberOfBinsPerDecade(20);
129  //param->SetMuHadLateralDisplacement(false);
130  //param->SetLatDisplacementBeyondSafety(true);
132 }
133 
134 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
135 
137  const G4String&)
138  : G4VPhysicsConstructor("G4EmStandard_opt4"), verbose(ver)
139 {
141  param->SetVerbose(verbose);
142  param->SetMinEnergy(100*eV);
143  param->SetMaxEnergy(10*TeV);
144  param->SetNumberOfBinsPerDecade(20);
146  //param->SetMuHadLateralDisplacement(false);
147  // param->SetLatDisplacementBeyondSafety(true);
149 }
150 
151 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
152 
154 {}
155 
156 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
157 
159 {
160  // gamma
161  G4Gamma::Gamma();
162 
163  // leptons
168 
169  // mesons
174 
175  // barions
178 
179  // ions
182  G4He3::He3();
183  G4Alpha::Alpha();
185 }
186 
187 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
188 
190 {
191  if(verbose > 1) {
192  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
193  }
195 
196  // muon & hadron bremsstrahlung and pair production
205 
206  // muon & hadron multiple scattering
208  mumsc->AddEmModel(0, new G4WentzelVIModel());
210  /*
211  G4MuMultipleScattering* pimsc = new G4MuMultipleScattering();
212  pimsc->AddEmModel(0, new G4WentzelVIModel());
213  G4CoulombScattering* piss = new G4CoulombScattering();
214 
215  G4MuMultipleScattering* kmsc = new G4MuMultipleScattering();
216  kmsc->AddEmModel(0, new G4WentzelVIModel());
217  G4CoulombScattering* kss = new G4CoulombScattering();
218 
219  G4MuMultipleScattering* pmsc = new G4MuMultipleScattering();
220  pmsc->AddEmModel(0, new G4WentzelVIModel());
221  G4CoulombScattering* pss = new G4CoulombScattering();
222  */
223  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
224 
225  // energy limits for e+- scattering models
226  G4double highEnergyLimit = 100*MeV;
227 
228  // nuclear stopping
229  G4NuclearStopping* pnuc = new G4NuclearStopping();
230 
231  // Add standard EM Processes
232  aParticleIterator->reset();
233  while( (*aParticleIterator)() ){
234  G4ParticleDefinition* particle = aParticleIterator->value();
235  G4String particleName = particle->GetParticleName();
236 
237  if (particleName == "gamma") {
238 
239  // Photoelectric
241  G4VEmModel* theLivermorePEModel = new G4LivermorePhotoElectricModel();
242  pe->SetEmModel(theLivermorePEModel,1);
243  ph->RegisterProcess(pe, particle);
244 
245  // Compton scattering
247  cs->SetEmModel(new G4KleinNishinaModel(),1);
248  G4VEmModel* theLowEPComptonModel = new G4LowEPComptonModel();
249  theLowEPComptonModel->SetHighEnergyLimit(20*MeV);
250  cs->AddEmModel(0, theLowEPComptonModel);
251  ph->RegisterProcess(cs, particle);
252 
253  // Gamma conversion
255  G4VEmModel* thePenelopeGCModel = new G4PenelopeGammaConversionModel();
256  thePenelopeGCModel->SetHighEnergyLimit(1*GeV);
257  gc->SetEmModel(thePenelopeGCModel,1);
258  ph->RegisterProcess(gc, particle);
259 
260  // Rayleigh scattering
261  ph->RegisterProcess(new G4RayleighScattering(), particle);
262 
263  } else if (particleName == "e-") {
264 
265  // multiple scattering
268  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
269  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
270  msc1->SetHighEnergyLimit(highEnergyLimit);
271  msc2->SetLowEnergyLimit(highEnergyLimit);
272  msc->SetRangeFactor(0.02);
273  msc->AddEmModel(0, msc1);
274  msc->AddEmModel(0, msc2);
275 
278  ss->SetEmModel(ssm, 1);
279  ss->SetMinKinEnergy(highEnergyLimit);
280  ssm->SetLowEnergyLimit(highEnergyLimit);
281  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
282 
283  // ionisation
284  G4eIonisation* eIoni = new G4eIonisation();
285  eIoni->SetStepFunction(0.2, 100*um);
286 
287  // bremsstrahlung
288  G4eBremsstrahlung* brem = new G4eBremsstrahlung();
293  brem->SetEmModel(br1,1);
294  brem->SetEmModel(br2,2);
295  br2->SetLowEnergyLimit(GeV);
296 
297  // register processes
298  ph->RegisterProcess(msc, particle);
299  ph->RegisterProcess(eIoni, particle);
300  ph->RegisterProcess(brem, particle);
301  ph->RegisterProcess(ss, particle);
302 
303  } else if (particleName == "e+") {
304 
305  // multiple scattering
308  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
309  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
310  msc1->SetHighEnergyLimit(highEnergyLimit);
311  msc2->SetLowEnergyLimit(highEnergyLimit);
312  msc->SetRangeFactor(0.02);
313  msc->AddEmModel(0, msc1);
314  msc->AddEmModel(0, msc2);
315 
318  ss->SetEmModel(ssm, 1);
319  ss->SetMinKinEnergy(highEnergyLimit);
320  ssm->SetLowEnergyLimit(highEnergyLimit);
321  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
322 
323  // ionisation
324  G4eIonisation* eIoni = new G4eIonisation();
325  eIoni->SetStepFunction(0.2, 100*um);
326 
327  // bremsstrahlung
328  G4eBremsstrahlung* brem = new G4eBremsstrahlung();
333  brem->SetEmModel(br1,1);
334  brem->SetEmModel(br2,2);
335  br2->SetLowEnergyLimit(GeV);
336 
337  // register processes
338  ph->RegisterProcess(msc, particle);
339  ph->RegisterProcess(eIoni, particle);
340  ph->RegisterProcess(brem, particle);
341  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
342  ph->RegisterProcess(ss, particle);
343 
344  } else if (particleName == "mu+" ||
345  particleName == "mu-" ) {
346 
347  G4MuIonisation* muIoni = new G4MuIonisation();
348  muIoni->SetStepFunction(0.2, 50*um);
349 
350  ph->RegisterProcess(mumsc, particle);
351  ph->RegisterProcess(muIoni, particle);
352  ph->RegisterProcess(mub, particle);
353  ph->RegisterProcess(mup, particle);
354  ph->RegisterProcess(muss, particle);
355 
356  } else if (particleName == "alpha" ||
357  particleName == "He3") {
358 
360  G4ionIonisation* ionIoni = new G4ionIonisation();
361  ionIoni->SetStepFunction(0.1, 10*um);
362 
363  ph->RegisterProcess(msc, particle);
364  ph->RegisterProcess(ionIoni, particle);
365  ph->RegisterProcess(pnuc, particle);
366 
367  } else if (particleName == "GenericIon") {
368 
369  G4ionIonisation* ionIoni = new G4ionIonisation();
370  ionIoni->SetEmModel(new G4IonParametrisedLossModel());
371  ionIoni->SetStepFunction(0.1, 1*um);
372 
373  ph->RegisterProcess(hmsc, particle);
374  ph->RegisterProcess(ionIoni, particle);
375  ph->RegisterProcess(pnuc, particle);
376 
377  } else if (particleName == "pi+" ||
378  particleName == "pi-" ) {
379 
381  G4hIonisation* hIoni = new G4hIonisation();
382  hIoni->SetStepFunction(0.2, 50*um);
383 
384  ph->RegisterProcess(pimsc, particle);
385  ph->RegisterProcess(hIoni, particle);
386  ph->RegisterProcess(pib, particle);
387  ph->RegisterProcess(pip, particle);
388  //ph->RegisterProcess(piss, particle);
389 
390  } else if (particleName == "kaon+" ||
391  particleName == "kaon-" ) {
392 
394  G4hIonisation* hIoni = new G4hIonisation();
395  hIoni->SetStepFunction(0.2, 50*um);
396 
397  ph->RegisterProcess(kmsc, particle);
398  ph->RegisterProcess(hIoni, particle);
399  ph->RegisterProcess(kb, particle);
400  ph->RegisterProcess(kp, particle);
401  //ph->RegisterProcess(kss, particle);
402 
403  } else if (particleName == "proton" ||
404  particleName == "anti_proton") {
405 
407  G4hIonisation* hIoni = new G4hIonisation();
408  hIoni->SetStepFunction(0.1, 20*um);
409 
410  ph->RegisterProcess(pmsc, particle);
411  ph->RegisterProcess(hIoni, particle);
412  ph->RegisterProcess(pb, particle);
413  ph->RegisterProcess(pp, particle);
414  //ph->RegisterProcess(pss, particle);
415  ph->RegisterProcess(pnuc, particle);
416 
417  } else if (particleName == "B+" ||
418  particleName == "B-" ||
419  particleName == "D+" ||
420  particleName == "D-" ||
421  particleName == "Ds+" ||
422  particleName == "Ds-" ||
423  particleName == "anti_He3" ||
424  particleName == "anti_alpha" ||
425  particleName == "anti_deuteron" ||
426  particleName == "anti_lambda_c+" ||
427  particleName == "anti_omega-" ||
428  particleName == "anti_sigma_c+" ||
429  particleName == "anti_sigma_c++" ||
430  particleName == "anti_sigma+" ||
431  particleName == "anti_sigma-" ||
432  particleName == "anti_triton" ||
433  particleName == "anti_xi_c+" ||
434  particleName == "anti_xi-" ||
435  particleName == "deuteron" ||
436  particleName == "lambda_c+" ||
437  particleName == "omega-" ||
438  particleName == "sigma_c+" ||
439  particleName == "sigma_c++" ||
440  particleName == "sigma+" ||
441  particleName == "sigma-" ||
442  particleName == "tau+" ||
443  particleName == "tau-" ||
444  particleName == "triton" ||
445  particleName == "xi_c+" ||
446  particleName == "xi-" ) {
447 
448  ph->RegisterProcess(hmsc, particle);
449  ph->RegisterProcess(new G4hIonisation(), particle);
450  ph->RegisterProcess(pnuc, particle);
451  }
452  }
453 
454  // Nuclear stopping
455  pnuc->SetMaxKinEnergy(MeV);
456 
457  // Deexcitation
460  de->SetFluo(true);
461 }
462 
463 //....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:193
void SetVerbose(G4int val)
static G4LossTableManager * Instance()
static G4KaonMinus * KaonMinusDefinition()
Definition: G4KaonMinus.cc:108
void SetStepFunction(G4double v1, G4double v2)
int G4int
Definition: G4Types.hh:78
void SetMaxEnergy(G4double val)
const G4String & GetParticleName() const
void SetHighEnergyLimit(G4double)
Definition: G4VEmModel.hh:707
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
#define aParticleIterator
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
void SetNumberOfBinsPerDecade(G4int val)
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:196
const G4String & GetPhysicsName() const
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
void SetActivationLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:728
static const double eV
Definition: G4SIunits.hh:194
static G4Positron * Positron()
Definition: G4Positron.cc:94
void SetMaxKinEnergy(G4double e)
void AddEmModel(G4int, G4VEmModel *, const G4Region *region=0)
void SetMinEnergy(G4double val)
void AddEmModel(G4int order, G4VEmModel *, const G4Region *region=0)
void SetAngularDistribution(G4VEmAngularDistribution *)
Definition: G4VEmModel.hh:606
static G4PhysicsListHelper * GetPhysicsListHelper()
static G4EmParameters * Instance()
void SetEmModel(G4VEmModel *, G4int index=1)
void ActivateAngularGeneratorForIonisation(G4bool val)
static G4MuonMinus * MuonMinus()
Definition: G4MuonMinus.cc:100
static G4Electron * Electron()
Definition: G4Electron.cc:94
#define G4endl
Definition: G4ios.hh:61
static const double TeV
Definition: G4SIunits.hh:197
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
void SetMinKinEnergy(G4double e)
double G4double
Definition: G4Types.hh:76
void SetLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:714
void SetRangeFactor(G4double val)
static G4He3 * He3()
Definition: G4He3.cc:94
void SetAtomDeexcitation(G4VAtomDeexcitation *)
G4_DECLARE_PHYSCONSTR_FACTORY(G4EmStandardPhysics_option4)
void SetStepLimitType(G4MscStepLimitType val)