Geant4  10.01.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 84662 2014-10-17 14:32:32Z 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 "G4EmProcessOptions.hh"
54 #include "G4EmParameters.hh"
55 
56 #include "G4ComptonScattering.hh"
57 #include "G4GammaConversion.hh"
58 #include "G4PhotoElectricEffect.hh"
59 
60 #include "G4eMultipleScattering.hh"
62 #include "G4hMultipleScattering.hh"
64 #include "G4CoulombScattering.hh"
65 #include "G4WentzelVIModel.hh"
66 #include "G4UrbanMscModel.hh"
67 
68 #include "G4eIonisation.hh"
69 #include "G4eBremsstrahlung.hh"
70 #include "G4eplusAnnihilation.hh"
71 #include "G4UAtomicDeexcitation.hh"
72 
73 #include "G4MuIonisation.hh"
74 #include "G4MuBremsstrahlung.hh"
75 #include "G4MuPairProduction.hh"
76 #include "G4hBremsstrahlung.hh"
77 #include "G4hPairProduction.hh"
78 
83 
84 #include "G4hIonisation.hh"
85 #include "G4ionIonisation.hh"
86 #include "G4alphaIonisation.hh"
87 
88 #include "G4Gamma.hh"
89 #include "G4Electron.hh"
90 #include "G4Positron.hh"
91 #include "G4MuonPlus.hh"
92 #include "G4MuonMinus.hh"
93 #include "G4PionPlus.hh"
94 #include "G4PionMinus.hh"
95 #include "G4KaonPlus.hh"
96 #include "G4KaonMinus.hh"
97 #include "G4Proton.hh"
98 #include "G4AntiProton.hh"
99 #include "G4Deuteron.hh"
100 #include "G4Triton.hh"
101 #include "G4He3.hh"
102 #include "G4Alpha.hh"
103 #include "G4GenericIon.hh"
104 
105 #include "G4PhysicsListHelper.hh"
106 #include "G4BuilderType.hh"
107 
108 // factory
110 //
112 
113 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
114 
116  : G4VPhysicsConstructor("G4EmStandard_opt1"), verbose(ver)
117 {
121 }
122 
123 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
124 
126  const G4String&)
127  : G4VPhysicsConstructor("G4EmStandard_opt1"), verbose(ver)
128 {
132 }
133 
134 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
135 
137 {}
138 
139 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
140 
142 {
143  // gamma
144  G4Gamma::Gamma();
145 
146  // leptons
151 
152  // mesons
157 
158  // barions
161 
162  // ions
165  G4He3::He3();
166  G4Alpha::Alpha();
168 }
169 
170 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
171 
173 {
174  if(verbose > 1) {
175  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
176  }
178 
179  // muon & hadron bremsstrahlung and pair production
188 
189  // muon & hadron multiple scattering
191  mumsc->AddEmModel(0, new G4WentzelVIModel());
193 
195  pimsc->AddEmModel(0, new G4WentzelVIModel());
197 
199  kmsc->AddEmModel(0, new G4WentzelVIModel());
201 
203  pmsc->AddEmModel(0, new G4WentzelVIModel());
205 
206  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
207 
208  // high energy limit for e+- scattering models and bremsstrahlung
209  G4double highEnergyLimit = 100*MeV;
210 
211  // Add standard EM Processes
212  aParticleIterator->reset();
213  while( (*aParticleIterator)() ){
214  G4ParticleDefinition* particle = aParticleIterator->value();
215  G4String particleName = particle->GetParticleName();
216 
217  if (particleName == "gamma") {
218 
219  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
220  ph->RegisterProcess(new G4ComptonScattering(), particle);
221  ph->RegisterProcess(new G4GammaConversion(), particle);
222 
223  } else if (particleName == "e-") {
224 
225  G4eIonisation* eioni = new G4eIonisation();
226  eioni->SetStepFunction(0.8, 1.0*mm);
227 
230  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
231  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
232  msc1->SetHighEnergyLimit(highEnergyLimit);
233  msc2->SetLowEnergyLimit(highEnergyLimit);
234  msc->AddEmModel(0, msc1);
235  msc->AddEmModel(0, msc2);
236 
239  ss->SetEmModel(ssm, 1);
240  ss->SetMinKinEnergy(highEnergyLimit);
241  ssm->SetLowEnergyLimit(highEnergyLimit);
242  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
243 
244  ph->RegisterProcess(msc, particle);
245  ph->RegisterProcess(eioni, particle);
246  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
247  ph->RegisterProcess(ss, particle);
248 
249  } else if (particleName == "e+") {
250 
251  G4eIonisation* eioni = new G4eIonisation();
252  eioni->SetStepFunction(0.8, 1.0*mm);
253 
256  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
257  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
258  msc1->SetHighEnergyLimit(highEnergyLimit);
259  msc2->SetLowEnergyLimit(highEnergyLimit);
260  msc->AddEmModel(0, msc1);
261  msc->AddEmModel(0, msc2);
262 
265  ss->SetEmModel(ssm, 1);
266  ss->SetMinKinEnergy(highEnergyLimit);
267  ssm->SetLowEnergyLimit(highEnergyLimit);
268  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
269 
270  ph->RegisterProcess(msc, particle);
271  ph->RegisterProcess(eioni, particle);
272  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
273  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
274  ph->RegisterProcess(ss, particle);
275 
276  } else if (particleName == "mu+" ||
277  particleName == "mu-" ) {
278 
279  ph->RegisterProcess(mumsc, particle);
280  ph->RegisterProcess(new G4MuIonisation(), particle);
281  ph->RegisterProcess(mub, particle);
282  ph->RegisterProcess(mup, particle);
283  ph->RegisterProcess(muss, particle);
284 
285  } else if (particleName == "alpha" ||
286  particleName == "He3" ) {
287 
288  //ph->RegisterProcess(hmsc, particle);
289  ph->RegisterProcess(new G4hMultipleScattering(), particle);
290  ph->RegisterProcess(new G4ionIonisation(), particle);
291 
292  } else if (particleName == "GenericIon") {
293 
294  ph->RegisterProcess(hmsc, particle);
295  ph->RegisterProcess(new G4ionIonisation(), particle);
296 
297  } else if (particleName == "pi+" ||
298  particleName == "pi-" ) {
299 
300  //G4hMultipleScattering* pimsc = new G4hMultipleScattering();
301  ph->RegisterProcess(pimsc, particle);
302  ph->RegisterProcess(new G4hIonisation(), particle);
303  ph->RegisterProcess(pib, particle);
304  ph->RegisterProcess(pip, particle);
305  ph->RegisterProcess(piss, particle);
306 
307  } else if (particleName == "kaon+" ||
308  particleName == "kaon-" ) {
309 
310  //G4hMultipleScattering* kmsc = new G4hMultipleScattering();
311  ph->RegisterProcess(kmsc, particle);
312  ph->RegisterProcess(new G4hIonisation(), particle);
313  ph->RegisterProcess(kb, particle);
314  ph->RegisterProcess(kp, particle);
315  ph->RegisterProcess(kss, particle);
316 
317  // } else if (particleName == "proton" ) {
318  } else if (particleName == "proton" ||
319  particleName == "anti_proton") {
320 
321  //G4hMultipleScattering* pmsc = new G4hMultipleScattering();
322  ph->RegisterProcess(pmsc, particle);
323  ph->RegisterProcess(new G4hIonisation(), particle);
324  ph->RegisterProcess(pb, particle);
325  ph->RegisterProcess(pp, particle);
326  ph->RegisterProcess(pss, particle);
327 
328  } else if (particleName == "B+" ||
329  particleName == "B-" ||
330  particleName == "D+" ||
331  particleName == "D-" ||
332  particleName == "Ds+" ||
333  particleName == "Ds-" ||
334  particleName == "anti_He3" ||
335  particleName == "anti_alpha" ||
336  particleName == "anti_deuteron" ||
337  particleName == "anti_lambda_c+" ||
338  particleName == "anti_omega-" ||
339  particleName == "anti_sigma_c+" ||
340  particleName == "anti_sigma_c++" ||
341  particleName == "anti_sigma+" ||
342  particleName == "anti_sigma-" ||
343  particleName == "anti_triton" ||
344  particleName == "anti_xi_c+" ||
345  particleName == "anti_xi-" ||
346  particleName == "deuteron" ||
347  particleName == "lambda_c+" ||
348  particleName == "omega-" ||
349  particleName == "sigma_c+" ||
350  particleName == "sigma_c++" ||
351  particleName == "sigma+" ||
352  particleName == "sigma-" ||
353  particleName == "tau+" ||
354  particleName == "tau-" ||
355  particleName == "triton" ||
356  particleName == "xi_c+" ||
357  particleName == "xi-" ) {
358 
359  ph->RegisterProcess(hmsc, particle);
360  ph->RegisterProcess(new G4hIonisation(), particle);
361  }
362  }
363 
364  // Deexcitation
365  //
368 }
369 
370 //....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:193
void SetVerbose(G4int val)
static G4LossTableManager * Instance()
G4_DECLARE_PHYSCONSTR_FACTORY(G4EmStandardPhysics_option1)
static G4KaonMinus * KaonMinusDefinition()
Definition: G4KaonMinus.cc:108
void SetStepFunction(G4double v1, G4double v2)
int G4int
Definition: G4Types.hh:78
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)
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:728
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:714
static G4He3 * He3()
Definition: G4He3.cc:94
static const double mm
Definition: G4SIunits.hh:102
void SetAtomDeexcitation(G4VAtomDeexcitation *)
void SetStepLimitType(G4MscStepLimitType val)