Geant4  10.01.p03
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 84662 2014-10-17 14:32:32Z 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"
54 
55 #include "G4eMultipleScattering.hh"
57 #include "G4hMultipleScattering.hh"
58 #include "G4MscStepLimitType.hh"
59 #include "G4UrbanMscModel.hh"
60 #include "G4DummyModel.hh"
61 #include "G4WentzelVIModel.hh"
62 #include "G4CoulombScattering.hh"
63 
64 #include "G4eIonisation.hh"
65 #include "G4eBremsstrahlung.hh"
66 #include "G4Generator2BS.hh"
67 #include "G4SeltzerBergerModel.hh"
68 
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"
86 #include "G4NuclearStopping.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_opt3"), verbose(ver)
117 {
119  param->SetVerbose(verbose);
120  param->SetMinEnergy(10*eV);
121  param->SetMaxEnergy(10*TeV);
122  param->SetNumberOfBinsPerDecade(20);
124 }
125 
126 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
127 
129  const G4String&)
130  : G4VPhysicsConstructor("G4EmStandard_opt3"), verbose(ver)
131 {
133  param->SetVerbose(verbose);
134  param->SetMinEnergy(10*eV);
135  param->SetMaxEnergy(10*TeV);
136  param->SetNumberOfBinsPerDecade(20);
138 }
139 
140 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
141 
143 {}
144 
145 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
146 
148 {
149  // gamma
150  G4Gamma::Gamma();
151 
152  // leptons
157 
158  // mesons
163 
164  // barions
167 
168  // ions
171  G4He3::He3();
172  G4Alpha::Alpha();
174 }
175 
176 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
177 
179 {
180  if(verbose > 1) {
181  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
182  }
184 
185  // muon & hadron bremsstrahlung and pair production
194 
195  // muon & hadron multiple scattering
196  // G4MuMultipleScattering* mumsc = new G4MuMultipleScattering();
197  // mumsc->AddEmModel(0, new G4WentzelVIModel());
198  // G4hMultipleScattering* pimsc = new G4hMultipleScattering();
199  // pimsc->AddEmModel(0, new G4WentzelVIModel());
200  // G4hMultipleScattering* kmsc = new G4hMultipleScattering();
201  // kmsc->AddEmModel(0, new G4WentzelVIModel());
202  //G4hMultipleScattering* pmsc = new G4hMultipleScattering();
203  //pmsc->AddEmModel(0, new G4WentzelVIModel());
204  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
205 
206  // nuclear stopping
207  G4NuclearStopping* pnuc = new G4NuclearStopping();
208 
209  // Add standard EM Processes
210  aParticleIterator->reset();
211  while( (*aParticleIterator)() ){
212  G4ParticleDefinition* particle = aParticleIterator->value();
213  G4String particleName = particle->GetParticleName();
214 
215  if (particleName == "gamma") {
216 
218  cs->SetEmModel(new G4KleinNishinaModel());
219 
220  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
221  ph->RegisterProcess(cs, particle);
222  ph->RegisterProcess(new G4GammaConversion(), particle);
223  ph->RegisterProcess(new G4RayleighScattering(), particle);
224 
225  } else if (particleName == "e-") {
226 
228  //msc->AddEmModel(0, new G4UrbanMscModel());
230  G4eIonisation* eIoni = new G4eIonisation();
231  eIoni->SetStepFunction(0.2, 100*um);
232 
233  G4eBremsstrahlung* brem = new G4eBremsstrahlung();
238  brem->SetEmModel(br1,1);
239  brem->SetEmModel(br2,2);
240  br2->SetLowEnergyLimit(GeV);
241 
242  // register processes
243  ph->RegisterProcess(msc, particle);
244  ph->RegisterProcess(eIoni, particle);
245  ph->RegisterProcess(brem, particle);
246 
247  } else if (particleName == "e+") {
248 
250  //msc->AddEmModel(0, new G4UrbanMscModel());
252  G4eIonisation* eIoni = new G4eIonisation();
253  eIoni->SetStepFunction(0.2, 100*um);
254 
255  G4eBremsstrahlung* brem = new G4eBremsstrahlung();
260  brem->SetEmModel(br1,1);
261  brem->SetEmModel(br2,2);
262  br2->SetLowEnergyLimit(GeV);
263 
264  // register processes
265  ph->RegisterProcess(msc, particle);
266  ph->RegisterProcess(eIoni, particle);
267  ph->RegisterProcess(brem, particle);
268  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
269 
270  } else if (particleName == "mu+" ||
271  particleName == "mu-" ) {
272 
274  G4MuIonisation* muIoni = new G4MuIonisation();
275  muIoni->SetStepFunction(0.2, 50*um);
276 
277  ph->RegisterProcess(mumsc, particle);
278  ph->RegisterProcess(muIoni, particle);
279  ph->RegisterProcess(mub, particle);
280  ph->RegisterProcess(mup, particle);
281  //ph->RegisterProcess(new G4CoulombScattering(), particle);
282 
283  } else if (particleName == "alpha" ||
284  particleName == "He3") {
285 
287  G4ionIonisation* ionIoni = new G4ionIonisation();
288  ionIoni->SetStepFunction(0.1, 10*um);
289 
290  ph->RegisterProcess(msc, particle);
291  ph->RegisterProcess(ionIoni, particle);
292  ph->RegisterProcess(pnuc, particle);
293 
294  } else if (particleName == "GenericIon") {
295 
296  G4ionIonisation* ionIoni = new G4ionIonisation();
297  ionIoni->SetEmModel(new G4IonParametrisedLossModel());
298  ionIoni->SetStepFunction(0.1, 1*um);
299 
300  ph->RegisterProcess(hmsc, particle);
301  ph->RegisterProcess(ionIoni, particle);
302  ph->RegisterProcess(pnuc, particle);
303 
304  } else if (particleName == "pi+" ||
305  particleName == "pi-" ) {
306 
308  G4hIonisation* hIoni = new G4hIonisation();
309  hIoni->SetStepFunction(0.2, 50*um);
310 
311  ph->RegisterProcess(pimsc, particle);
312  ph->RegisterProcess(hIoni, particle);
313  ph->RegisterProcess(pib, particle);
314  ph->RegisterProcess(pip, particle);
315 
316  } else if (particleName == "kaon+" ||
317  particleName == "kaon-" ) {
318 
320  G4hIonisation* hIoni = new G4hIonisation();
321  hIoni->SetStepFunction(0.2, 50*um);
322 
323  ph->RegisterProcess(kmsc, particle);
324  ph->RegisterProcess(hIoni, particle);
325  ph->RegisterProcess(kb, particle);
326  ph->RegisterProcess(kp, particle);
327 
328  } else if (particleName == "proton" ||
329  particleName == "anti_proton") {
330 
332  G4hIonisation* hIoni = new G4hIonisation();
333  hIoni->SetStepFunction(0.2, 50*um);
334 
335  ph->RegisterProcess(pmsc, particle);
336  ph->RegisterProcess(hIoni, particle);
337  ph->RegisterProcess(pb, particle);
338  ph->RegisterProcess(pp, particle);
339  ph->RegisterProcess(pnuc, particle);
340 
341  } else if (particleName == "B+" ||
342  particleName == "B-" ||
343  particleName == "D+" ||
344  particleName == "D-" ||
345  particleName == "Ds+" ||
346  particleName == "Ds-" ||
347  particleName == "anti_He3" ||
348  particleName == "anti_alpha" ||
349  particleName == "anti_deuteron" ||
350  particleName == "anti_lambda_c+" ||
351  particleName == "anti_omega-" ||
352  particleName == "anti_sigma_c+" ||
353  particleName == "anti_sigma_c++" ||
354  particleName == "anti_sigma+" ||
355  particleName == "anti_sigma-" ||
356  particleName == "anti_triton" ||
357  particleName == "anti_xi_c+" ||
358  particleName == "anti_xi-" ||
359  particleName == "deuteron" ||
360  particleName == "lambda_c+" ||
361  particleName == "omega-" ||
362  particleName == "sigma_c+" ||
363  particleName == "sigma_c++" ||
364  particleName == "sigma+" ||
365  particleName == "sigma-" ||
366  particleName == "tau+" ||
367  particleName == "tau-" ||
368  particleName == "triton" ||
369  particleName == "xi_c+" ||
370  particleName == "xi-" ) {
371 
372  ph->RegisterProcess(hmsc, particle);
373  ph->RegisterProcess(new G4hIonisation(), particle);
374  ph->RegisterProcess(pnuc, particle);
375  }
376  }
377 
378  // Nuclear stopping
379  pnuc->SetMaxKinEnergy(MeV);
380 
381  // Deexcitation
384  de->SetFluo(true);
385 }
386 
387 //....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()
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:196
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:194
static G4Positron * Positron()
Definition: G4Positron.cc:94
void SetMaxKinEnergy(G4double e)
void SetMinEnergy(G4double val)
void SetAngularDistribution(G4VEmAngularDistribution *)
Definition: G4VEmModel.hh:606
static G4PhysicsListHelper * GetPhysicsListHelper()
static G4EmParameters * Instance()
void SetEmModel(G4VEmModel *, G4int index=1)
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 SetLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:714
static G4He3 * He3()
Definition: G4He3.cc:94
void SetAtomDeexcitation(G4VAtomDeexcitation *)
void SetStepLimitType(G4MscStepLimitType val)