Geant4_10
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 68750 2013-04-05 10:19:04Z 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 "G4EmProcessOptions.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 {
120 }
121 
122 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
123 
125  : G4VPhysicsConstructor("G4EmStandard_opt3"), verbose(ver)
126 {
129 }
130 
131 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
132 
134 {}
135 
136 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
137 
139 {
140 // gamma
141  G4Gamma::Gamma();
142 
143 // leptons
148 
149 // mesons
154 
155 // barions
158 
159 // ions
162  G4He3::He3();
163  G4Alpha::Alpha();
165 }
166 
167 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
168 
170 {
171  if(verbose > 1) {
172  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
173  }
175 
176  // muon & hadron bremsstrahlung and pair production
185 
186  // muon & hadron multiple scattering
188  mumsc->AddEmModel(0, new G4WentzelVIModel());
189  //G4hMultipleScattering* pimsc = new G4hMultipleScattering();
190  // pimsc->AddEmModel(0, new G4WentzelVIModel());
191  // G4hMultipleScattering* kmsc = new G4hMultipleScattering();
192  // kmsc->AddEmModel(0, new G4WentzelVIModel());
193  //G4hMultipleScattering* pmsc = new G4hMultipleScattering();
194  //pmsc->AddEmModel(0, new G4WentzelVIModel());
195  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
196 
197  // nuclear stopping
198  G4NuclearStopping* ionnuc = new G4NuclearStopping();
199  G4NuclearStopping* pnuc = new G4NuclearStopping();
200 
201  // Add standard EM Processes
202  aParticleIterator->reset();
203  while( (*aParticleIterator)() ){
204  G4ParticleDefinition* particle = aParticleIterator->value();
205  G4String particleName = particle->GetParticleName();
206 
207  if (particleName == "gamma") {
208 
210  cs->SetEmModel(new G4KleinNishinaModel());
211 
212  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
213  ph->RegisterProcess(cs, particle);
214  ph->RegisterProcess(new G4GammaConversion(), particle);
215  ph->RegisterProcess(new G4RayleighScattering(), particle);
216 
217  } else if (particleName == "e-") {
218 
220  //msc->AddEmModel(0, new G4UrbanMscModel());
222  G4eIonisation* eIoni = new G4eIonisation();
223  eIoni->SetStepFunction(0.2, 100*um);
224 
225  G4eBremsstrahlung* brem = new G4eBremsstrahlung();
226  ph->RegisterProcess(msc, particle);
227  ph->RegisterProcess(eIoni, particle);
228  ph->RegisterProcess(brem, particle);
229 
230  } else if (particleName == "e+") {
231 
233  //msc->AddEmModel(0, new G4UrbanMscModel());
235  G4eIonisation* eIoni = new G4eIonisation();
236  eIoni->SetStepFunction(0.2, 100*um);
237 
238  ph->RegisterProcess(msc, particle);
239  ph->RegisterProcess(eIoni, particle);
240  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
241  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
242 
243  } else if (particleName == "mu+" ||
244  particleName == "mu-" ) {
245 
246  G4MuIonisation* muIoni = new G4MuIonisation();
247  muIoni->SetStepFunction(0.2, 50*um);
248 
249  ph->RegisterProcess(mumsc, particle);
250  ph->RegisterProcess(muIoni, particle);
251  ph->RegisterProcess(mub, particle);
252  ph->RegisterProcess(mup, particle);
253  ph->RegisterProcess(new G4CoulombScattering(), particle);
254 
255  } else if (particleName == "alpha" ||
256  particleName == "He3") {
257 
259  G4ionIonisation* ionIoni = new G4ionIonisation();
260  ionIoni->SetStepFunction(0.1, 10*um);
261 
262  ph->RegisterProcess(msc, particle);
263  ph->RegisterProcess(ionIoni, particle);
264  ph->RegisterProcess(ionnuc, particle);
265 
266  } else if (particleName == "GenericIon") {
267 
268  G4ionIonisation* ionIoni = new G4ionIonisation();
269  ionIoni->SetEmModel(new G4IonParametrisedLossModel());
270  ionIoni->SetStepFunction(0.1, 1*um);
271 
272  ph->RegisterProcess(hmsc, particle);
273  ph->RegisterProcess(ionIoni, particle);
274  ph->RegisterProcess(ionnuc, particle);
275 
276  } else if (particleName == "pi+" ||
277  particleName == "pi-" ) {
278 
280  G4hIonisation* hIoni = new G4hIonisation();
281  hIoni->SetStepFunction(0.2, 50*um);
282 
283  ph->RegisterProcess(pimsc, particle);
284  ph->RegisterProcess(hIoni, particle);
285  ph->RegisterProcess(pib, particle);
286  ph->RegisterProcess(pip, particle);
287 
288  } else if (particleName == "kaon+" ||
289  particleName == "kaon-" ) {
290 
292  G4hIonisation* hIoni = new G4hIonisation();
293  hIoni->SetStepFunction(0.2, 50*um);
294 
295  ph->RegisterProcess(kmsc, particle);
296  ph->RegisterProcess(hIoni, particle);
297  ph->RegisterProcess(kb, particle);
298  ph->RegisterProcess(kp, particle);
299 
300  } else if (particleName == "proton" ||
301  particleName == "anti_proton") {
302 
304  G4hIonisation* hIoni = new G4hIonisation();
305  hIoni->SetStepFunction(0.2, 50*um);
306 
307  ph->RegisterProcess(pmsc, particle);
308  ph->RegisterProcess(hIoni, particle);
309  ph->RegisterProcess(pb, particle);
310  ph->RegisterProcess(pp, particle);
311  ph->RegisterProcess(pnuc, particle);
312 
313  } else if (particleName == "B+" ||
314  particleName == "B-" ||
315  particleName == "D+" ||
316  particleName == "D-" ||
317  particleName == "Ds+" ||
318  particleName == "Ds-" ||
319  particleName == "anti_He3" ||
320  particleName == "anti_alpha" ||
321  particleName == "anti_deuteron" ||
322  particleName == "anti_lambda_c+" ||
323  particleName == "anti_omega-" ||
324  particleName == "anti_sigma_c+" ||
325  particleName == "anti_sigma_c++" ||
326  particleName == "anti_sigma+" ||
327  particleName == "anti_sigma-" ||
328  particleName == "anti_triton" ||
329  particleName == "anti_xi_c+" ||
330  particleName == "anti_xi-" ||
331  particleName == "deuteron" ||
332  particleName == "lambda_c+" ||
333  particleName == "omega-" ||
334  particleName == "sigma_c+" ||
335  particleName == "sigma_c++" ||
336  particleName == "sigma+" ||
337  particleName == "sigma-" ||
338  particleName == "tau+" ||
339  particleName == "tau-" ||
340  particleName == "triton" ||
341  particleName == "xi_c+" ||
342  particleName == "xi-" ) {
343 
344  ph->RegisterProcess(hmsc, particle);
345  ph->RegisterProcess(new G4hIonisation(), particle);
346  }
347  }
348 
349  // Em options
350  //
351  G4EmProcessOptions opt;
352  opt.SetVerbose(verbose);
353 
354  // Multiple Coulomb scattering
355  //
356  opt.SetPolarAngleLimit(CLHEP::pi);
357 
358  // Physics tables
359  //
360  opt.SetMinEnergy(10*eV);
361  opt.SetMaxEnergy(10*TeV);
362  opt.SetDEDXBinning(240);
363  opt.SetLambdaBinning(240);
364 
365  // Nuclear stopping
366  pnuc->SetMaxKinEnergy(MeV);
367 
368  // Ionization
369  //
370  //opt.SetSubCutoff(true);
371 
372  // Deexcitation
375  de->SetFluo(true);
376 }
377 
378 //....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 G4LossTableManager * Instance()
static G4KaonMinus * KaonMinusDefinition()
Definition: G4KaonMinus.cc:108
void SetMinEnergy(G4double val)
void SetStepFunction(G4double v1, G4double v2)
int G4int
Definition: G4Types.hh:78
const G4String & GetParticleName() const
void SetDEDXBinning(G4int val)
void SetEmModel(G4VEmModel *, G4int index=1)
G4GLOB_DLL std::ostream G4cout
void SetLambdaBinning(G4int val)
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 SetMaxEnergy(G4double val)
static G4Positron * Positron()
Definition: G4Positron.cc:94
void SetMaxKinEnergy(G4double e)
void AddEmModel(G4int order, G4VEmModel *, const G4Region *region=0)
static G4PhysicsListHelper * GetPhysicsListHelper()
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 G4Alpha * Alpha()
Definition: G4Alpha.cc:89
static G4He3 * He3()
Definition: G4He3.cc:94
void SetAtomDeexcitation(G4VAtomDeexcitation *)
void SetStepLimitType(G4MscStepLimitType val)
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)
void SetVerbose(G4int val, const G4String &name="all", G4bool worker=false)
void SetPolarAngleLimit(G4double val)