Geant4  10.02.p02
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: G4EmStandardPhysics_option1.cc 92821 2015-09-17 15:23:49Z gcosmo $
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 
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 
59 #include "G4eMultipleScattering.hh"
61 #include "G4hMultipleScattering.hh"
63 #include "G4CoulombScattering.hh"
64 #include "G4WentzelVIModel.hh"
65 #include "G4UrbanMscModel.hh"
66 
67 #include "G4eIonisation.hh"
68 #include "G4eBremsstrahlung.hh"
69 #include "G4eplusAnnihilation.hh"
70 #include "G4UAtomicDeexcitation.hh"
71 
72 #include "G4MuIonisation.hh"
73 #include "G4MuBremsstrahlung.hh"
74 #include "G4MuPairProduction.hh"
75 #include "G4hBremsstrahlung.hh"
76 #include "G4hPairProduction.hh"
77 
82 
83 #include "G4hIonisation.hh"
84 #include "G4ionIonisation.hh"
85 #include "G4alphaIonisation.hh"
86 
87 #include "G4Gamma.hh"
88 #include "G4Electron.hh"
89 #include "G4Positron.hh"
90 #include "G4MuonPlus.hh"
91 #include "G4MuonMinus.hh"
92 #include "G4PionPlus.hh"
93 #include "G4PionMinus.hh"
94 #include "G4KaonPlus.hh"
95 #include "G4KaonMinus.hh"
96 #include "G4Proton.hh"
97 #include "G4AntiProton.hh"
98 #include "G4Deuteron.hh"
99 #include "G4Triton.hh"
100 #include "G4He3.hh"
101 #include "G4Alpha.hh"
102 #include "G4GenericIon.hh"
103 
104 #include "G4PhysicsListHelper.hh"
105 #include "G4BuilderType.hh"
106 #include "G4EmModelActivator.hh"
107 
108 // factory
110 //
112 
113 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
114 
116  : G4VPhysicsConstructor("G4EmStandard_opt1"), verbose(ver)
117 {
119  param->SetDefaults();
120  param->SetVerbose(verbose);
121  param->SetApplyCuts(true);
122  param->SetMscRangeFactor(0.2);
125 }
126 
127 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
128 
130  const G4String&)
131  : G4VPhysicsConstructor("G4EmStandard_opt1"), verbose(ver)
132 {
134  param->SetDefaults();
135  param->SetVerbose(verbose);
136  param->SetApplyCuts(true);
137  param->SetMscRangeFactor(0.2);
140 }
141 
142 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
143 
145 {}
146 
147 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
148 
150 {
151  // gamma
152  G4Gamma::Gamma();
153 
154  // leptons
159 
160  // mesons
165 
166  // barions
169 
170  // ions
173  G4He3::He3();
174  G4Alpha::Alpha();
176 
177  // dna
178  G4EmModelActivator mact;
179  mact.ConstructParticle();
180 }
181 
182 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
183 
185 {
186  if(verbose > 1) {
187  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
188  }
190 
191  // muon & hadron bremsstrahlung and pair production
200 
201  // muon & hadron multiple scattering
203  mumsc->AddEmModel(0, new G4WentzelVIModel());
205 
207  pimsc->AddEmModel(0, new G4WentzelVIModel());
209 
211  kmsc->AddEmModel(0, new G4WentzelVIModel());
213 
215  pmsc->AddEmModel(0, new G4WentzelVIModel());
217 
218  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
219 
220  // high energy limit for e+- scattering models and bremsstrahlung
221  G4double highEnergyLimit = 100*MeV;
222 
223  // Add standard EM Processes
224  aParticleIterator->reset();
225  while( (*aParticleIterator)() ){
226  G4ParticleDefinition* particle = aParticleIterator->value();
227  G4String particleName = particle->GetParticleName();
228 
229  if (particleName == "gamma") {
230 
231  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
232  ph->RegisterProcess(new G4ComptonScattering(), particle);
233  ph->RegisterProcess(new G4GammaConversion(), particle);
234 
235  } else if (particleName == "e-") {
236 
237  G4eIonisation* eioni = new G4eIonisation();
238  eioni->SetStepFunction(0.8, 1.0*mm);
239 
241  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
242  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
243  msc1->SetNewDisplacementFlag(false);
244  msc1->SetHighEnergyLimit(highEnergyLimit);
245  msc2->SetLowEnergyLimit(highEnergyLimit);
246  msc->AddEmModel(0, msc1);
247  msc->AddEmModel(0, msc2);
248 
251  ss->SetEmModel(ssm, 1);
252  ss->SetMinKinEnergy(highEnergyLimit);
253  ssm->SetLowEnergyLimit(highEnergyLimit);
254  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
255 
256  ph->RegisterProcess(msc, particle);
257  ph->RegisterProcess(eioni, particle);
258  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
259  ph->RegisterProcess(ss, particle);
260 
261  } else if (particleName == "e+") {
262 
263  G4eIonisation* eioni = new G4eIonisation();
264  eioni->SetStepFunction(0.8, 1.0*mm);
265 
267  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
268  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
269  msc1->SetNewDisplacementFlag(false);
270  msc1->SetHighEnergyLimit(highEnergyLimit);
271  msc2->SetLowEnergyLimit(highEnergyLimit);
272  msc->AddEmModel(0, msc1);
273  msc->AddEmModel(0, msc2);
274 
277  ss->SetEmModel(ssm, 1);
278  ss->SetMinKinEnergy(highEnergyLimit);
279  ssm->SetLowEnergyLimit(highEnergyLimit);
280  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
281 
282  ph->RegisterProcess(msc, particle);
283  ph->RegisterProcess(eioni, particle);
284  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
285  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
286  ph->RegisterProcess(ss, particle);
287 
288  } else if (particleName == "mu+" ||
289  particleName == "mu-" ) {
290 
291  ph->RegisterProcess(mumsc, particle);
292  ph->RegisterProcess(new G4MuIonisation(), particle);
293  ph->RegisterProcess(mub, particle);
294  ph->RegisterProcess(mup, particle);
295  ph->RegisterProcess(muss, particle);
296 
297  } else if (particleName == "alpha" ||
298  particleName == "He3" ) {
299 
300  //ph->RegisterProcess(hmsc, particle);
301  ph->RegisterProcess(new G4hMultipleScattering(), particle);
302  ph->RegisterProcess(new G4ionIonisation(), particle);
303 
304  } else if (particleName == "GenericIon") {
305 
306  ph->RegisterProcess(hmsc, particle);
307  ph->RegisterProcess(new G4ionIonisation(), particle);
308 
309  } else if (particleName == "pi+" ||
310  particleName == "pi-" ) {
311 
312  //G4hMultipleScattering* pimsc = new G4hMultipleScattering();
313  ph->RegisterProcess(pimsc, particle);
314  ph->RegisterProcess(new G4hIonisation(), particle);
315  ph->RegisterProcess(pib, particle);
316  ph->RegisterProcess(pip, particle);
317  ph->RegisterProcess(piss, particle);
318 
319  } else if (particleName == "kaon+" ||
320  particleName == "kaon-" ) {
321 
322  //G4hMultipleScattering* kmsc = new G4hMultipleScattering();
323  ph->RegisterProcess(kmsc, particle);
324  ph->RegisterProcess(new G4hIonisation(), particle);
325  ph->RegisterProcess(kb, particle);
326  ph->RegisterProcess(kp, particle);
327  ph->RegisterProcess(kss, particle);
328 
329  // } else if (particleName == "proton" ) {
330  } else if (particleName == "proton" ||
331  particleName == "anti_proton") {
332 
333  //G4hMultipleScattering* pmsc = new G4hMultipleScattering();
334  ph->RegisterProcess(pmsc, particle);
335  ph->RegisterProcess(new G4hIonisation(), particle);
336  ph->RegisterProcess(pb, particle);
337  ph->RegisterProcess(pp, particle);
338  ph->RegisterProcess(pss, particle);
339 
340  } else if (particleName == "B+" ||
341  particleName == "B-" ||
342  particleName == "D+" ||
343  particleName == "D-" ||
344  particleName == "Ds+" ||
345  particleName == "Ds-" ||
346  particleName == "anti_He3" ||
347  particleName == "anti_alpha" ||
348  particleName == "anti_deuteron" ||
349  particleName == "anti_lambda_c+" ||
350  particleName == "anti_omega-" ||
351  particleName == "anti_sigma_c+" ||
352  particleName == "anti_sigma_c++" ||
353  particleName == "anti_sigma+" ||
354  particleName == "anti_sigma-" ||
355  particleName == "anti_triton" ||
356  particleName == "anti_xi_c+" ||
357  particleName == "anti_xi-" ||
358  particleName == "deuteron" ||
359  particleName == "lambda_c+" ||
360  particleName == "omega-" ||
361  particleName == "sigma_c+" ||
362  particleName == "sigma_c++" ||
363  particleName == "sigma+" ||
364  particleName == "sigma-" ||
365  particleName == "tau+" ||
366  particleName == "tau-" ||
367  particleName == "triton" ||
368  particleName == "xi_c+" ||
369  particleName == "xi-" ) {
370 
371  ph->RegisterProcess(hmsc, particle);
372  ph->RegisterProcess(new G4hIonisation(), particle);
373  }
374  }
375 
376  // Deexcitation
377  //
380 
381  G4EmModelActivator mact;
382  mact.ConstructProcess();
383 }
384 
385 //....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()
G4_DECLARE_PHYSCONSTR_FACTORY(G4EmStandardPhysics_option1)
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
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 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
static const double mm
Definition: G4SIunits.hh:114
void SetAtomDeexcitation(G4VAtomDeexcitation *)