Geant4  10.02.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 92821 2015-09-17 15:23:49Z 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 #include "G4EmModelActivator.hh"
113 
114 // factory
116 //
118 
119 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
120 
122  : G4VPhysicsConstructor("G4EmStandard_opt4"), verbose(ver)
123 {
125  param->SetDefaults();
126  param->SetVerbose(verbose);
127  param->SetMinEnergy(100*eV);
128  param->SetMaxEnergy(10*TeV);
129  param->SetLowestElectronEnergy(100*eV);
130  param->SetNumberOfBinsPerDecade(20);
132  param->SetMscRangeFactor(0.02);
134  //param->SetLatDisplacementBeyondSafety(true);
135  param->SetFluo(true);
137 }
138 
139 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
140 
142  const G4String&)
143  : G4VPhysicsConstructor("G4EmStandard_opt4"), verbose(ver)
144 {
146  param->SetDefaults();
147  param->SetVerbose(verbose);
148  param->SetMinEnergy(100*eV);
149  param->SetMaxEnergy(10*TeV);
150  param->SetLowestElectronEnergy(100*eV);
151  param->SetNumberOfBinsPerDecade(20);
153  param->SetMscRangeFactor(0.02);
155  // param->SetLatDisplacementBeyondSafety(true);
156  param->SetFluo(true);
158 }
159 
160 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
161 
163 {}
164 
165 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
166 
168 {
169  // gamma
170  G4Gamma::Gamma();
171 
172  // leptons
177 
178  // mesons
183 
184  // barions
187 
188  // ions
191  G4He3::He3();
192  G4Alpha::Alpha();
194 
195  // dna
196  G4EmModelActivator mact;
197  mact.ConstructParticle();
198 }
199 
200 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
201 
203 {
204  if(verbose > 1) {
205  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
206  }
208 
209  // muon & hadron bremsstrahlung and pair production
218 
219  // muon & hadron multiple scattering
221  mumsc->AddEmModel(0, new G4WentzelVIModel());
223 
225  pimsc->AddEmModel(0, new G4WentzelVIModel());
227 
229  kmsc->AddEmModel(0, new G4WentzelVIModel());
231 
233  pmsc->AddEmModel(0, new G4WentzelVIModel());
235 
236  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
237 
238  // energy limits for e+- scattering models
239  G4double highEnergyLimit = 100*MeV;
240  // energy limits for e+- ionisation models
241  G4double penEnergyLimit = 1*MeV;
242 
243  // nuclear stopping
244  G4NuclearStopping* pnuc = new G4NuclearStopping();
245 
246  // Add standard EM Processes
247  aParticleIterator->reset();
248  while( (*aParticleIterator)() ){
249  G4ParticleDefinition* particle = aParticleIterator->value();
250  G4String particleName = particle->GetParticleName();
251 
252  if (particleName == "gamma") {
253 
254  // Photoelectric
256  G4VEmModel* theLivermorePEModel = new G4LivermorePhotoElectricModel();
257  pe->SetEmModel(theLivermorePEModel,1);
258  ph->RegisterProcess(pe, particle);
259 
260  // Compton scattering
262  cs->SetEmModel(new G4KleinNishinaModel(),1);
263  G4VEmModel* theLowEPComptonModel = new G4LowEPComptonModel();
264  theLowEPComptonModel->SetHighEnergyLimit(20*MeV);
265  cs->AddEmModel(0, theLowEPComptonModel);
266  ph->RegisterProcess(cs, particle);
267 
268  // Gamma conversion
270  G4VEmModel* thePenelopeGCModel = new G4PenelopeGammaConversionModel();
271  thePenelopeGCModel->SetHighEnergyLimit(1*GeV);
272  gc->SetEmModel(thePenelopeGCModel,1);
273  ph->RegisterProcess(gc, particle);
274 
275  // Rayleigh scattering
276  ph->RegisterProcess(new G4RayleighScattering(), particle);
277 
278  } else if (particleName == "e-") {
279 
280  // multiple scattering
282  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
283  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
284  msc1->SetHighEnergyLimit(highEnergyLimit);
285  msc2->SetLowEnergyLimit(highEnergyLimit);
286  msc->AddEmModel(0, msc1);
287  msc->AddEmModel(0, msc2);
288 
291  ss->SetEmModel(ssm, 1);
292  ss->SetMinKinEnergy(highEnergyLimit);
293  ssm->SetLowEnergyLimit(highEnergyLimit);
294  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
295 
296  // ionisation
297  G4eIonisation* eIoni = new G4eIonisation();
298  eIoni->SetStepFunction(0.2, 100*um);
300  pen->SetHighEnergyLimit(penEnergyLimit);
301  eIoni->AddEmModel(0, pen, new G4UniversalFluctuation());
302 
303  // bremsstrahlung
304  G4eBremsstrahlung* brem = new G4eBremsstrahlung();
309  brem->SetEmModel(br1,1);
310  brem->SetEmModel(br2,2);
311  br2->SetLowEnergyLimit(GeV);
312 
313  // register processes
314  ph->RegisterProcess(msc, particle);
315  ph->RegisterProcess(eIoni, particle);
316  ph->RegisterProcess(brem, particle);
317  ph->RegisterProcess(ss, particle);
318 
319  } else if (particleName == "e+") {
320 
321  // multiple scattering
323  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
324  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
325  msc1->SetHighEnergyLimit(highEnergyLimit);
326  msc2->SetLowEnergyLimit(highEnergyLimit);
327  msc->AddEmModel(0, msc1);
328  msc->AddEmModel(0, msc2);
329 
332  ss->SetEmModel(ssm, 1);
333  ss->SetMinKinEnergy(highEnergyLimit);
334  ssm->SetLowEnergyLimit(highEnergyLimit);
335  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
336 
337  // ionisation
338  G4eIonisation* eIoni = new G4eIonisation();
339  eIoni->SetStepFunction(0.2, 100*um);
341  pen->SetHighEnergyLimit(penEnergyLimit);
342  eIoni->AddEmModel(0, pen, new G4UniversalFluctuation());
343 
344  // bremsstrahlung
345  G4eBremsstrahlung* brem = new G4eBremsstrahlung();
350  brem->SetEmModel(br1,1);
351  brem->SetEmModel(br2,2);
352  br2->SetLowEnergyLimit(GeV);
353 
354  // register processes
355  ph->RegisterProcess(msc, particle);
356  ph->RegisterProcess(eIoni, particle);
357  ph->RegisterProcess(brem, particle);
358  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
359  ph->RegisterProcess(ss, particle);
360 
361  } else if (particleName == "mu+" ||
362  particleName == "mu-" ) {
363 
364  G4MuIonisation* muIoni = new G4MuIonisation();
365  muIoni->SetStepFunction(0.2, 50*um);
366 
367  ph->RegisterProcess(mumsc, particle);
368  ph->RegisterProcess(muIoni, particle);
369  ph->RegisterProcess(mub, particle);
370  ph->RegisterProcess(mup, particle);
371  ph->RegisterProcess(muss, particle);
372 
373  } else if (particleName == "alpha" ||
374  particleName == "He3") {
375 
377  G4ionIonisation* ionIoni = new G4ionIonisation();
378  ionIoni->SetStepFunction(0.1, 10*um);
379 
380  ph->RegisterProcess(msc, particle);
381  ph->RegisterProcess(ionIoni, particle);
382  ph->RegisterProcess(pnuc, particle);
383 
384  } else if (particleName == "GenericIon") {
385 
386  G4ionIonisation* ionIoni = new G4ionIonisation();
387  ionIoni->SetEmModel(new G4IonParametrisedLossModel());
388  ionIoni->SetStepFunction(0.1, 1*um);
389 
390  ph->RegisterProcess(hmsc, particle);
391  ph->RegisterProcess(ionIoni, particle);
392  ph->RegisterProcess(pnuc, particle);
393 
394  } else if (particleName == "pi+" ||
395  particleName == "pi-" ) {
396 
397  //G4hMultipleScattering* pimsc = new G4hMultipleScattering();
398  G4hIonisation* hIoni = new G4hIonisation();
399  hIoni->SetStepFunction(0.2, 50*um);
400 
401  ph->RegisterProcess(pimsc, particle);
402  ph->RegisterProcess(hIoni, particle);
403  ph->RegisterProcess(pib, particle);
404  ph->RegisterProcess(pip, particle);
405  ph->RegisterProcess(piss, particle);
406 
407  } else if (particleName == "kaon+" ||
408  particleName == "kaon-" ) {
409 
410  //G4hMultipleScattering* kmsc = new G4hMultipleScattering();
411  G4hIonisation* hIoni = new G4hIonisation();
412  hIoni->SetStepFunction(0.2, 50*um);
413 
414  ph->RegisterProcess(kmsc, particle);
415  ph->RegisterProcess(hIoni, particle);
416  ph->RegisterProcess(kb, particle);
417  ph->RegisterProcess(kp, particle);
418  ph->RegisterProcess(kss, particle);
419 
420  } else if (particleName == "proton" ||
421  particleName == "anti_proton") {
422 
423  //G4hMultipleScattering* pmsc = new G4hMultipleScattering();
424  G4hIonisation* hIoni = new G4hIonisation();
425  hIoni->SetStepFunction(0.1, 20*um);
426 
427  ph->RegisterProcess(pmsc, particle);
428  ph->RegisterProcess(hIoni, particle);
429  ph->RegisterProcess(pb, particle);
430  ph->RegisterProcess(pp, particle);
431  ph->RegisterProcess(pss, particle);
432  ph->RegisterProcess(pnuc, particle);
433 
434  } else if (particleName == "B+" ||
435  particleName == "B-" ||
436  particleName == "D+" ||
437  particleName == "D-" ||
438  particleName == "Ds+" ||
439  particleName == "Ds-" ||
440  particleName == "anti_He3" ||
441  particleName == "anti_alpha" ||
442  particleName == "anti_deuteron" ||
443  particleName == "anti_lambda_c+" ||
444  particleName == "anti_omega-" ||
445  particleName == "anti_sigma_c+" ||
446  particleName == "anti_sigma_c++" ||
447  particleName == "anti_sigma+" ||
448  particleName == "anti_sigma-" ||
449  particleName == "anti_triton" ||
450  particleName == "anti_xi_c+" ||
451  particleName == "anti_xi-" ||
452  particleName == "deuteron" ||
453  particleName == "lambda_c+" ||
454  particleName == "omega-" ||
455  particleName == "sigma_c+" ||
456  particleName == "sigma_c++" ||
457  particleName == "sigma+" ||
458  particleName == "sigma-" ||
459  particleName == "tau+" ||
460  particleName == "tau-" ||
461  particleName == "triton" ||
462  particleName == "xi_c+" ||
463  particleName == "xi-" ) {
464 
465  ph->RegisterProcess(hmsc, particle);
466  ph->RegisterProcess(new G4hIonisation(), particle);
467  ph->RegisterProcess(pnuc, particle);
468  }
469  }
470 
471  // Nuclear stopping
472  pnuc->SetMaxKinEnergy(MeV);
473 
474  // Deexcitation
477 
478  G4EmModelActivator mact;
479  mact.ConstructProcess();
480 }
481 
482 //....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
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: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)
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:214
void AddEmModel(G4int, G4VEmModel *, G4VEmFluctuationModel *fluc=0, const G4Region *region=0)
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 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:624
static G4PhysicsListHelper * GetPhysicsListHelper()
static G4EmParameters * Instance()
void SetEmModel(G4VEmModel *, G4int index=1)
static const double um
Definition: G4SIunits.hh:112
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:215
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(G4EmStandardPhysics_option4)
void SetFluo(G4bool val)