Geant4  10.02.p01
G4EmStandardPhysics_option3.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_option3.cc 92821 2015-09-17 15:23:49Z gcosmo $
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName: G4EmStandardPhysics_option3
31 //
32 // Author: V.Ivanchenko 13.03.2008
33 //
34 // Modified:
35 // 21.04.2008 V.Ivanchenko add long-lived D and B mesons; use spline
36 // 28.05.2008 V.Ivanchenko linLossLimit=0.01 for ions 0.001 for others
37 //
38 //----------------------------------------------------------------------------
39 //
40 
42 
43 #include "G4SystemOfUnits.hh"
44 #include "G4ParticleDefinition.hh"
45 #include "G4LossTableManager.hh"
46 #include "G4EmParameters.hh"
47 
48 #include "G4ComptonScattering.hh"
49 #include "G4GammaConversion.hh"
50 #include "G4PhotoElectricEffect.hh"
51 #include "G4RayleighScattering.hh"
52 #include "G4PEEffectFluoModel.hh"
53 #include "G4KleinNishinaModel.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"
64 
65 #include "G4eIonisation.hh"
66 #include "G4eBremsstrahlung.hh"
67 #include "G4Generator2BS.hh"
68 #include "G4SeltzerBergerModel.hh"
69 
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"
87 #include "G4NuclearStopping.hh"
88 
89 #include "G4Gamma.hh"
90 #include "G4Electron.hh"
91 #include "G4Positron.hh"
92 #include "G4MuonPlus.hh"
93 #include "G4MuonMinus.hh"
94 #include "G4PionPlus.hh"
95 #include "G4PionMinus.hh"
96 #include "G4KaonPlus.hh"
97 #include "G4KaonMinus.hh"
98 #include "G4Proton.hh"
99 #include "G4AntiProton.hh"
100 #include "G4Deuteron.hh"
101 #include "G4Triton.hh"
102 #include "G4He3.hh"
103 #include "G4Alpha.hh"
104 #include "G4GenericIon.hh"
105 
106 #include "G4PhysicsListHelper.hh"
107 #include "G4BuilderType.hh"
108 #include "G4EmModelActivator.hh"
109 
110 // factory
112 //
114 
115 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
116 
118  : G4VPhysicsConstructor("G4EmStandard_opt3"), verbose(ver)
119 {
121  param->SetDefaults();
122  param->SetVerbose(verbose);
123  param->SetMinEnergy(10*eV);
124  param->SetMaxEnergy(10*TeV);
125  param->SetLowestElectronEnergy(100*eV);
126  param->SetNumberOfBinsPerDecade(20);
128  param->SetFluo(true);
130 }
131 
132 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
133 
135  const G4String&)
136  : G4VPhysicsConstructor("G4EmStandard_opt3"), verbose(ver)
137 {
139  param->SetDefaults();
140  param->SetVerbose(verbose);
141  param->SetMinEnergy(10*eV);
142  param->SetMaxEnergy(10*TeV);
143  param->SetLowestElectronEnergy(100*eV);
144  param->SetNumberOfBinsPerDecade(20);
146  param->SetFluo(true);
148 }
149 
150 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
151 
153 {}
154 
155 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
156 
158 {
159  // gamma
160  G4Gamma::Gamma();
161 
162  // leptons
167 
168  // mesons
173 
174  // barions
177 
178  // ions
181  G4He3::He3();
182  G4Alpha::Alpha();
184 
185  // dna
186  G4EmModelActivator mact;
187  mact.ConstructParticle();
188 }
189 
190 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
191 
193 {
194  if(verbose > 1) {
195  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
196  }
198 
199  // muon & hadron bremsstrahlung and pair production
208 
209  // muon & hadron multiple scattering
210  // G4MuMultipleScattering* mumsc = new G4MuMultipleScattering();
211  // mumsc->AddEmModel(0, new G4WentzelVIModel());
212  // G4hMultipleScattering* pimsc = new G4hMultipleScattering();
213  // pimsc->AddEmModel(0, new G4WentzelVIModel());
214  // G4hMultipleScattering* kmsc = new G4hMultipleScattering();
215  // kmsc->AddEmModel(0, new G4WentzelVIModel());
216  //G4hMultipleScattering* pmsc = new G4hMultipleScattering();
217  //pmsc->AddEmModel(0, new G4WentzelVIModel());
218  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
219 
220  // nuclear stopping
221  G4NuclearStopping* pnuc = new G4NuclearStopping();
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 
232  cs->SetEmModel(new G4KleinNishinaModel(), 1);
233 
236 
237  ph->RegisterProcess(pee, particle);
238  ph->RegisterProcess(cs, particle);
239  ph->RegisterProcess(new G4GammaConversion(), particle);
240  ph->RegisterProcess(new G4RayleighScattering(), particle);
241 
242  } else if (particleName == "e-") {
243 
245 
246  G4eIonisation* eIoni = new G4eIonisation();
247  eIoni->SetStepFunction(0.2, 100*um);
248 
249  G4eBremsstrahlung* brem = new G4eBremsstrahlung();
254  brem->SetEmModel(br1,1);
255  brem->SetEmModel(br2,2);
256  br2->SetLowEnergyLimit(GeV);
257 
258  // register processes
259  ph->RegisterProcess(msc, particle);
260  ph->RegisterProcess(eIoni, particle);
261  ph->RegisterProcess(brem, particle);
262 
263  } else if (particleName == "e+") {
264 
266 
267  G4eIonisation* eIoni = new G4eIonisation();
268  eIoni->SetStepFunction(0.2, 100*um);
269 
270  G4eBremsstrahlung* brem = new G4eBremsstrahlung();
275  brem->SetEmModel(br1,1);
276  brem->SetEmModel(br2,2);
277  br2->SetLowEnergyLimit(GeV);
278 
279  // register processes
280  ph->RegisterProcess(msc, particle);
281  ph->RegisterProcess(eIoni, particle);
282  ph->RegisterProcess(brem, particle);
283  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
284 
285  } else if (particleName == "mu+" ||
286  particleName == "mu-" ) {
287 
289  G4MuIonisation* muIoni = new G4MuIonisation();
290  muIoni->SetStepFunction(0.2, 50*um);
291 
292  ph->RegisterProcess(mumsc, particle);
293  ph->RegisterProcess(muIoni, particle);
294  ph->RegisterProcess(mub, particle);
295  ph->RegisterProcess(mup, particle);
296  //ph->RegisterProcess(new G4CoulombScattering(), particle);
297 
298  } else if (particleName == "alpha" ||
299  particleName == "He3") {
300 
302  G4ionIonisation* ionIoni = new G4ionIonisation();
303  ionIoni->SetStepFunction(0.1, 10*um);
304 
305  ph->RegisterProcess(msc, particle);
306  ph->RegisterProcess(ionIoni, particle);
307  ph->RegisterProcess(pnuc, particle);
308 
309  } else if (particleName == "GenericIon") {
310 
311  G4ionIonisation* ionIoni = new G4ionIonisation();
312  ionIoni->SetEmModel(new G4IonParametrisedLossModel());
313  ionIoni->SetStepFunction(0.1, 1*um);
314 
315  ph->RegisterProcess(hmsc, particle);
316  ph->RegisterProcess(ionIoni, particle);
317  ph->RegisterProcess(pnuc, particle);
318 
319  } else if (particleName == "pi+" ||
320  particleName == "pi-" ) {
321 
323  G4hIonisation* hIoni = new G4hIonisation();
324  hIoni->SetStepFunction(0.2, 50*um);
325 
326  ph->RegisterProcess(pimsc, particle);
327  ph->RegisterProcess(hIoni, particle);
328  ph->RegisterProcess(pib, particle);
329  ph->RegisterProcess(pip, particle);
330 
331  } else if (particleName == "kaon+" ||
332  particleName == "kaon-" ) {
333 
335  G4hIonisation* hIoni = new G4hIonisation();
336  hIoni->SetStepFunction(0.2, 50*um);
337 
338  ph->RegisterProcess(kmsc, particle);
339  ph->RegisterProcess(hIoni, particle);
340  ph->RegisterProcess(kb, particle);
341  ph->RegisterProcess(kp, particle);
342 
343  } else if (particleName == "proton" ||
344  particleName == "anti_proton") {
345 
347  G4hIonisation* hIoni = new G4hIonisation();
348  hIoni->SetStepFunction(0.2, 50*um);
349 
350  ph->RegisterProcess(pmsc, particle);
351  ph->RegisterProcess(hIoni, particle);
352  ph->RegisterProcess(pb, particle);
353  ph->RegisterProcess(pp, particle);
354  ph->RegisterProcess(pnuc, particle);
355 
356  } else if (particleName == "B+" ||
357  particleName == "B-" ||
358  particleName == "D+" ||
359  particleName == "D-" ||
360  particleName == "Ds+" ||
361  particleName == "Ds-" ||
362  particleName == "anti_He3" ||
363  particleName == "anti_alpha" ||
364  particleName == "anti_deuteron" ||
365  particleName == "anti_lambda_c+" ||
366  particleName == "anti_omega-" ||
367  particleName == "anti_sigma_c+" ||
368  particleName == "anti_sigma_c++" ||
369  particleName == "anti_sigma+" ||
370  particleName == "anti_sigma-" ||
371  particleName == "anti_triton" ||
372  particleName == "anti_xi_c+" ||
373  particleName == "anti_xi-" ||
374  particleName == "deuteron" ||
375  particleName == "lambda_c+" ||
376  particleName == "omega-" ||
377  particleName == "sigma_c+" ||
378  particleName == "sigma_c++" ||
379  particleName == "sigma+" ||
380  particleName == "sigma-" ||
381  particleName == "tau+" ||
382  particleName == "tau-" ||
383  particleName == "triton" ||
384  particleName == "xi_c+" ||
385  particleName == "xi-" ) {
386 
387  ph->RegisterProcess(hmsc, particle);
388  ph->RegisterProcess(new G4hIonisation(), particle);
389  ph->RegisterProcess(pnuc, particle);
390  }
391  }
392 
393  // Nuclear stopping
394  pnuc->SetMaxKinEnergy(MeV);
395 
396  // Deexcitation
399 
400  G4EmModelActivator mact;
401  mact.ConstructProcess();
402 }
403 
404 //....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)
G4_DECLARE_PHYSCONSTR_FACTORY(G4EmStandardPhysics_option3)
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 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:214
const G4String & GetPhysicsName() const
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
static const double eV
Definition: G4SIunits.hh:212
static G4Positron * Positron()
Definition: G4Positron.cc:94
void SetMaxKinEnergy(G4double e)
void SetMinEnergy(G4double val)
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
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 SetLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:732
static G4He3 * He3()
Definition: G4He3.cc:94
void SetAtomDeexcitation(G4VAtomDeexcitation *)
void SetFluo(G4bool val)