Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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$
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 "G4UrbanMscModel93.hh"
60 #include "G4UrbanMscModel95.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 
109 // factory
111 //
113 
114 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
115 
117  : G4VPhysicsConstructor("G4EmStandard_opt3"), verbose(ver)
118 {
121 }
122 
123 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
124 
126  : G4VPhysicsConstructor("G4EmStandard_opt3"), verbose(ver)
127 {
130 }
131 
132 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
133 
135 {}
136 
137 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
138 
140 {
141 // gamma
142  G4Gamma::Gamma();
143 
144 // leptons
149 
150 // mesons
155 
156 // barions
159 
160 // ions
163  G4He3::He3();
164  G4Alpha::Alpha();
166 }
167 
168 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
169 
171 {
173 
174  // muon & hadron bremsstrahlung and pair production
183 
184  // muon & hadron multiple scattering
186  mumsc->AddEmModel(0, new G4WentzelVIModel());
187  //G4hMultipleScattering* pimsc = new G4hMultipleScattering();
188  // pimsc->AddEmModel(0, new G4WentzelVIModel());
189  // G4hMultipleScattering* kmsc = new G4hMultipleScattering();
190  // kmsc->AddEmModel(0, new G4WentzelVIModel());
191  //G4hMultipleScattering* pmsc = new G4hMultipleScattering();
192  //pmsc->AddEmModel(0, new G4WentzelVIModel());
193  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
194 
195  // nuclear stopping
196  G4NuclearStopping* ionnuc = new G4NuclearStopping();
197  G4NuclearStopping* pnuc = new G4NuclearStopping();
198 
199  // Add standard EM Processes
201  while( (*theParticleIterator)() ){
203  G4String particleName = particle->GetParticleName();
204  if(verbose > 1)
205  G4cout << "### " << GetPhysicsName() << " instantiates for "
206  << particleName << G4endl;
207 
208  if (particleName == "gamma") {
209 
211  cs->SetEmModel(new G4KleinNishinaModel());
212 
213  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
214  ph->RegisterProcess(cs, particle);
215  ph->RegisterProcess(new G4GammaConversion(), particle);
216  ph->RegisterProcess(new G4RayleighScattering(), particle);
217 
218  } else if (particleName == "e-") {
219 
221  //msc->AddEmModel(0, new G4UrbanMscModel95());
223  G4eIonisation* eIoni = new G4eIonisation();
224  eIoni->SetStepFunction(0.2, 100*um);
225 
226  G4eBremsstrahlung* brem = new G4eBremsstrahlung();
227  ph->RegisterProcess(msc, particle);
228  ph->RegisterProcess(eIoni, particle);
229  ph->RegisterProcess(brem, particle);
230 
231  } else if (particleName == "e+") {
232 
234  //msc->AddEmModel(0, new G4UrbanMscModel95());
236  G4eIonisation* eIoni = new G4eIonisation();
237  eIoni->SetStepFunction(0.2, 100*um);
238 
239  ph->RegisterProcess(msc, particle);
240  ph->RegisterProcess(eIoni, particle);
241  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
242  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
243 
244  } else if (particleName == "mu+" ||
245  particleName == "mu-" ) {
246 
247  G4MuIonisation* muIoni = new G4MuIonisation();
248  muIoni->SetStepFunction(0.2, 50*um);
249 
250  ph->RegisterProcess(mumsc, particle);
251  ph->RegisterProcess(muIoni, particle);
252  ph->RegisterProcess(mub, particle);
253  ph->RegisterProcess(mup, particle);
254  ph->RegisterProcess(new G4CoulombScattering(), particle);
255 
256  } else if (particleName == "alpha" ||
257  particleName == "He3") {
258 
260  G4ionIonisation* ionIoni = new G4ionIonisation();
261  ionIoni->SetStepFunction(0.1, 10*um);
262 
263  ph->RegisterProcess(msc, particle);
264  ph->RegisterProcess(ionIoni, particle);
265  ph->RegisterProcess(ionnuc, particle);
266 
267  } else if (particleName == "GenericIon") {
268 
269  G4ionIonisation* ionIoni = new G4ionIonisation();
270  ionIoni->SetEmModel(new G4IonParametrisedLossModel());
271  ionIoni->SetStepFunction(0.1, 1*um);
272 
273  ph->RegisterProcess(hmsc, particle);
274  ph->RegisterProcess(ionIoni, particle);
275  ph->RegisterProcess(ionnuc, particle);
276 
277  } else if (particleName == "pi+" ||
278  particleName == "pi-" ) {
279 
281  G4hIonisation* hIoni = new G4hIonisation();
282  hIoni->SetStepFunction(0.2, 50*um);
283 
284  ph->RegisterProcess(pimsc, particle);
285  ph->RegisterProcess(hIoni, particle);
286  ph->RegisterProcess(pib, particle);
287  ph->RegisterProcess(pip, particle);
288 
289  } else if (particleName == "kaon+" ||
290  particleName == "kaon-" ) {
291 
293  G4hIonisation* hIoni = new G4hIonisation();
294  hIoni->SetStepFunction(0.2, 50*um);
295 
296  ph->RegisterProcess(kmsc, particle);
297  ph->RegisterProcess(hIoni, particle);
298  ph->RegisterProcess(kb, particle);
299  ph->RegisterProcess(kp, particle);
300 
301  } else if (particleName == "proton" ||
302  particleName == "anti_proton") {
303 
305  G4hIonisation* hIoni = new G4hIonisation();
306  hIoni->SetStepFunction(0.2, 50*um);
307 
308  ph->RegisterProcess(pmsc, particle);
309  ph->RegisterProcess(hIoni, particle);
310  ph->RegisterProcess(pb, particle);
311  ph->RegisterProcess(pp, particle);
312  ph->RegisterProcess(pnuc, particle);
313 
314  } else if (particleName == "B+" ||
315  particleName == "B-" ||
316  particleName == "D+" ||
317  particleName == "D-" ||
318  particleName == "Ds+" ||
319  particleName == "Ds-" ||
320  particleName == "anti_He3" ||
321  particleName == "anti_alpha" ||
322  particleName == "anti_deuteron" ||
323  particleName == "anti_lambda_c+" ||
324  particleName == "anti_omega-" ||
325  particleName == "anti_sigma_c+" ||
326  particleName == "anti_sigma_c++" ||
327  particleName == "anti_sigma+" ||
328  particleName == "anti_sigma-" ||
329  particleName == "anti_triton" ||
330  particleName == "anti_xi_c+" ||
331  particleName == "anti_xi-" ||
332  particleName == "deuteron" ||
333  particleName == "lambda_c+" ||
334  particleName == "omega-" ||
335  particleName == "sigma_c+" ||
336  particleName == "sigma_c++" ||
337  particleName == "sigma+" ||
338  particleName == "sigma-" ||
339  particleName == "tau+" ||
340  particleName == "tau-" ||
341  particleName == "triton" ||
342  particleName == "xi_c+" ||
343  particleName == "xi-" ) {
344 
345  ph->RegisterProcess(hmsc, particle);
346  ph->RegisterProcess(new G4hIonisation(), particle);
347  }
348  }
349 
350  // Em options
351  //
352  G4EmProcessOptions opt;
353  opt.SetVerbose(verbose);
354 
355  // Multiple Coulomb scattering
356  //
357  opt.SetPolarAngleLimit(CLHEP::pi);
358 
359  // Physics tables
360  //
361  opt.SetMinEnergy(10*eV);
362  opt.SetMaxEnergy(10*TeV);
363  opt.SetDEDXBinning(240);
364  opt.SetLambdaBinning(240);
365 
366  // Nuclear stopping
367  pnuc->SetMaxKinEnergy(MeV);
368 
369  // Ionization
370  //
371  //opt.SetSubCutoff(true);
372 
373  // Deexcitation
376  de->SetFluo(true);
377 }
378 
379 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......