Geant4  10.00.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 79157 2014-02-19 15:35:01Z 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 
227  // register processes
228  ph->RegisterProcess(msc, particle);
229  ph->RegisterProcess(eIoni, particle);
230  ph->RegisterProcess(brem, particle);
231 
232  } else if (particleName == "e+") {
233 
235  //msc->AddEmModel(0, new G4UrbanMscModel());
237  G4eIonisation* eIoni = new G4eIonisation();
238  eIoni->SetStepFunction(0.2, 100*um);
239 
240  // register processes
241  ph->RegisterProcess(msc, particle);
242  ph->RegisterProcess(eIoni, particle);
243  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
244  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
245 
246  } else if (particleName == "mu+" ||
247  particleName == "mu-" ) {
248 
249  G4MuIonisation* muIoni = new G4MuIonisation();
250  muIoni->SetStepFunction(0.2, 50*um);
251 
252  ph->RegisterProcess(mumsc, particle);
253  ph->RegisterProcess(muIoni, particle);
254  ph->RegisterProcess(mub, particle);
255  ph->RegisterProcess(mup, particle);
256  ph->RegisterProcess(new G4CoulombScattering(), particle);
257 
258  } else if (particleName == "alpha" ||
259  particleName == "He3") {
260 
262  G4ionIonisation* ionIoni = new G4ionIonisation();
263  ionIoni->SetStepFunction(0.1, 10*um);
264 
265  ph->RegisterProcess(msc, particle);
266  ph->RegisterProcess(ionIoni, particle);
267  ph->RegisterProcess(ionnuc, particle);
268 
269  } else if (particleName == "GenericIon") {
270 
271  G4ionIonisation* ionIoni = new G4ionIonisation();
272  ionIoni->SetEmModel(new G4IonParametrisedLossModel());
273  ionIoni->SetStepFunction(0.1, 1*um);
274 
275  ph->RegisterProcess(hmsc, particle);
276  ph->RegisterProcess(ionIoni, particle);
277  ph->RegisterProcess(ionnuc, particle);
278 
279  } else if (particleName == "pi+" ||
280  particleName == "pi-" ) {
281 
283  G4hIonisation* hIoni = new G4hIonisation();
284  hIoni->SetStepFunction(0.2, 50*um);
285 
286  ph->RegisterProcess(pimsc, particle);
287  ph->RegisterProcess(hIoni, particle);
288  ph->RegisterProcess(pib, particle);
289  ph->RegisterProcess(pip, particle);
290 
291  } else if (particleName == "kaon+" ||
292  particleName == "kaon-" ) {
293 
295  G4hIonisation* hIoni = new G4hIonisation();
296  hIoni->SetStepFunction(0.2, 50*um);
297 
298  ph->RegisterProcess(kmsc, particle);
299  ph->RegisterProcess(hIoni, particle);
300  ph->RegisterProcess(kb, particle);
301  ph->RegisterProcess(kp, particle);
302 
303  } else if (particleName == "proton" ||
304  particleName == "anti_proton") {
305 
307  G4hIonisation* hIoni = new G4hIonisation();
308  hIoni->SetStepFunction(0.2, 50*um);
309 
310  ph->RegisterProcess(pmsc, particle);
311  ph->RegisterProcess(hIoni, particle);
312  ph->RegisterProcess(pb, particle);
313  ph->RegisterProcess(pp, particle);
314  ph->RegisterProcess(pnuc, particle);
315 
316  } else if (particleName == "B+" ||
317  particleName == "B-" ||
318  particleName == "D+" ||
319  particleName == "D-" ||
320  particleName == "Ds+" ||
321  particleName == "Ds-" ||
322  particleName == "anti_He3" ||
323  particleName == "anti_alpha" ||
324  particleName == "anti_deuteron" ||
325  particleName == "anti_lambda_c+" ||
326  particleName == "anti_omega-" ||
327  particleName == "anti_sigma_c+" ||
328  particleName == "anti_sigma_c++" ||
329  particleName == "anti_sigma+" ||
330  particleName == "anti_sigma-" ||
331  particleName == "anti_triton" ||
332  particleName == "anti_xi_c+" ||
333  particleName == "anti_xi-" ||
334  particleName == "deuteron" ||
335  particleName == "lambda_c+" ||
336  particleName == "omega-" ||
337  particleName == "sigma_c+" ||
338  particleName == "sigma_c++" ||
339  particleName == "sigma+" ||
340  particleName == "sigma-" ||
341  particleName == "tau+" ||
342  particleName == "tau-" ||
343  particleName == "triton" ||
344  particleName == "xi_c+" ||
345  particleName == "xi-" ) {
346 
347  ph->RegisterProcess(hmsc, particle);
348  ph->RegisterProcess(new G4hIonisation(), particle);
349  }
350  }
351 
352  // Em options
353  //
354  G4EmProcessOptions opt;
355  opt.SetVerbose(verbose);
356 
357  // Multiple Coulomb scattering
358  //
360 
361  // Physics tables
362  //
363  opt.SetMinEnergy(10*eV);
364  opt.SetMaxEnergy(10*TeV);
365  opt.SetDEDXBinning(240);
366  opt.SetLambdaBinning(240);
367 
368  // Nuclear stopping
369  pnuc->SetMaxKinEnergy(MeV);
370 
371  // Ionization
372  //
373  //opt.SetSubCutoff(true);
374 
375  // Deexcitation
378  de->SetFluo(true);
379 }
380 
381 //....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
static G4LossTableManager * Instance()
G4_DECLARE_PHYSCONSTR_FACTORY(G4EmStandardPhysics_option3)
static G4KaonMinus * KaonMinusDefinition()
Definition: G4KaonMinus.cc:108
const G4double pi
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 const double eV
Definition: G4SIunits.hh:194
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 const double TeV
Definition: G4SIunits.hh:197
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
static G4He3 * He3()
Definition: G4He3.cc:94
void SetAtomDeexcitation(G4VAtomDeexcitation *)
void SetStepLimitType(G4MscStepLimitType val)
void SetVerbose(G4int val, const G4String &name="all", G4bool worker=false)
void SetPolarAngleLimit(G4double val)