Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4EmStandardPhysics_option2.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_option2
31 //
32 // Author: V.Ivanchenko 09.11.2005
33 //
34 // Modified:
35 // 19.12.2005 V.Ivanchenko rename 71 -> 72
36 // 15.06.2006 V.Ivanchenko use this class as a constructor of fast EM physics
37 // 13.11.2006 V.Ivanchenko use G4hMultipleScattering
38 // 14.11.2006 V.Ivanchenko use sub-cutoff option for all particles
39 // 13.02.2007 V.Ivanchenko use default msc
40 // 15.05.2007 V.Ivanchenko rename to _option2
41 // 13.03.2008 V.Ivanchenko use G4eMultipleScattering
42 // 21.04.2008 V.Ivanchenko add long-lived D and B mesons; use spline
43 // 28.05.2008 V.Ivanchenko linLossLimit=0.01; added hBrem and hPairProd processes
44 //
45 //----------------------------------------------------------------------------
46 //
47 
49 
50 #include "G4SystemOfUnits.hh"
51 #include "G4ParticleDefinition.hh"
52 #include "G4LossTableManager.hh"
53 #include "G4EmProcessOptions.hh"
54 
55 #include "G4ComptonScattering.hh"
56 #include "G4GammaConversion.hh"
57 #include "G4PhotoElectricEffect.hh"
58 #include "G4PEEffectFluoModel.hh"
59 #include "G4KleinNishinaModel.hh"
60 #include "G4RayleighScattering.hh"
61 
62 #include "G4eMultipleScattering.hh"
63 #include "G4hMultipleScattering.hh"
65 #include "G4CoulombScattering.hh"
67 #include "G4UrbanMscModel93.hh"
68 #include "G4UrbanMscModel95.hh"
69 #include "G4WentzelVIModel.hh"
70 //#include "G4GoudsmitSaundersonMscModel.hh"
71 
72 #include "G4eIonisation.hh"
73 #include "G4eBremsstrahlung.hh"
76 #include "G4eplusAnnihilation.hh"
77 #include "G4Generator2BS.hh"
78 #include "G4SeltzerBergerModel.hh"
79 #include "G4UAtomicDeexcitation.hh"
80 
81 #include "G4MuIonisation.hh"
82 #include "G4MuBremsstrahlung.hh"
83 #include "G4MuPairProduction.hh"
84 #include "G4hBremsstrahlung.hh"
85 #include "G4hPairProduction.hh"
86 
91 
92 #include "G4hIonisation.hh"
93 #include "G4ionIonisation.hh"
94 #include "G4alphaIonisation.hh"
95 //#include "G4IonParametrisedLossModel.hh"
96 
97 #include "G4Gamma.hh"
98 #include "G4Electron.hh"
99 #include "G4Positron.hh"
100 #include "G4MuonPlus.hh"
101 #include "G4MuonMinus.hh"
102 #include "G4PionPlus.hh"
103 #include "G4PionMinus.hh"
104 #include "G4KaonPlus.hh"
105 #include "G4KaonMinus.hh"
106 #include "G4Proton.hh"
107 #include "G4AntiProton.hh"
108 #include "G4Deuteron.hh"
109 #include "G4Triton.hh"
110 #include "G4He3.hh"
111 #include "G4Alpha.hh"
112 #include "G4GenericIon.hh"
113 
114 #include "G4PhysicsListHelper.hh"
115 #include "G4BuilderType.hh"
116 
117 // factory
119 //
121 
122 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
123 
125  : G4VPhysicsConstructor("G4EmStandard_opt2"), verbose(ver)
126 {
129 }
130 
131 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
132 
134  : G4VPhysicsConstructor("G4EmStandard_opt2"), verbose(ver)
135 {
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 {
181 
182  // muon & hadron bremsstrahlung and pair production
191 
192  // muon & hadron multiple scattering
194  mumsc->AddEmModel(0, new G4WentzelVIModel());
196  pmsc->AddEmModel(0, new G4WentzelVIModel());
198  pimsc->AddEmModel(0, new G4WentzelVIModel());
200  kmsc->AddEmModel(0, new G4WentzelVIModel());
201  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
202 
203  // high energy limit for e+- scattering models and bremsstrahlung
204  G4double highEnergyLimit = 100*MeV;
205 
206  // Add standard EM Processes
208  while( (*theParticleIterator)() ){
210  G4String particleName = particle->GetParticleName();
211  if(verbose > 1)
212  G4cout << "### " << GetPhysicsName() << " instantiates for "
213  << particleName << G4endl;
214 
215  if (particleName == "gamma") {
216 
217  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
218  ph->RegisterProcess(new G4ComptonScattering(), particle);
219  ph->RegisterProcess(new G4GammaConversion(), particle);
220  ph->RegisterProcess(new G4RayleighScattering(), particle);
221 
222  } else if (particleName == "e-") {
223 
224  G4eIonisation* eioni = new G4eIonisation();
225  eioni->SetStepFunction(0.8, 1.0*mm);
226 
229  G4UrbanMscModel93* msc1 = new G4UrbanMscModel93();
230  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
231  msc1->SetHighEnergyLimit(highEnergyLimit);
232  msc2->SetLowEnergyLimit(highEnergyLimit);
233  msc->AddEmModel(0, msc1);
234  msc->AddEmModel(0, msc2);
235 
238  ss->SetEmModel(ssm, 1);
239  ss->SetMinKinEnergy(highEnergyLimit);
240  ssm->SetLowEnergyLimit(highEnergyLimit);
241  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
242 
243  G4eBremsstrahlung* brem = new G4eBremsstrahlung();
248  brem->SetEmModel(br1,1);
249  brem->SetEmModel(br2,2);
250  br2->SetLowEnergyLimit(GeV);
251 
252  ph->RegisterProcess(msc, particle);
253  ph->RegisterProcess(eioni, particle);
254  ph->RegisterProcess(brem, particle);
255  ph->RegisterProcess(ss, particle);
256 
257  } else if (particleName == "e+") {
258 
259  G4eIonisation* eioni = new G4eIonisation();
260  eioni->SetStepFunction(0.8, 1.0*mm);
261 
264  G4UrbanMscModel93* msc1 = new G4UrbanMscModel93();
265  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
266  msc1->SetHighEnergyLimit(highEnergyLimit);
267  msc2->SetLowEnergyLimit(highEnergyLimit);
268  msc->AddEmModel(0, msc1);
269  msc->AddEmModel(0, msc2);
270 
273  ss->SetEmModel(ssm, 1);
274  ss->SetMinKinEnergy(highEnergyLimit);
275  ssm->SetLowEnergyLimit(highEnergyLimit);
276  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
277 
278  ph->RegisterProcess(msc, particle);
279  ph->RegisterProcess(eioni, particle);
280  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
281  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
282  ph->RegisterProcess(ss, particle);
283 
284  } else if (particleName == "mu+" ||
285  particleName == "mu-" ) {
286 
287  ph->RegisterProcess(mumsc, particle);
288  ph->RegisterProcess(new G4MuIonisation(), particle);
289  ph->RegisterProcess(mub, particle);
290  ph->RegisterProcess(mup, particle);
291  ph->RegisterProcess(new G4CoulombScattering(), particle);
292 
293  } else if (particleName == "alpha" ||
294  particleName == "He3") {
295 
296  //ph->RegisterProcess(hmsc, particle);
297  ph->RegisterProcess(new G4hMultipleScattering(), particle);
298  ph->RegisterProcess(new G4ionIonisation(), particle);
299 
300  } else if (particleName == "GenericIon") {
301 
302  G4ionIonisation* ionIoni = new G4ionIonisation();
303  //ionIoni->SetEmModel(new G4IonParametrisedLossModel());
304  //ionIoni->SetStepFunction(0.1, 20*um);
305 
306  ph->RegisterProcess(hmsc, particle);
307  ph->RegisterProcess(ionIoni, particle);
308 
309  } else if (particleName == "pi+" ||
310  particleName == "pi-" ) {
311 
312  ph->RegisterProcess(pimsc, particle);
313  ph->RegisterProcess(new G4hIonisation(), particle);
314  ph->RegisterProcess(pib, particle);
315  ph->RegisterProcess(pip, particle);
316 
317  } else if (particleName == "kaon+" ||
318  particleName == "kaon-" ) {
319 
320  ph->RegisterProcess(kmsc, particle);
321  ph->RegisterProcess(new G4hIonisation(), particle);
322  ph->RegisterProcess(kb, particle);
323  ph->RegisterProcess(kp, particle);
324 
325  } else if (particleName == "proton" ||
326  particleName == "anti_proton") {
327 
328  ph->RegisterProcess(pmsc, particle);
329  ph->RegisterProcess(new G4hIonisation(), particle);
330  ph->RegisterProcess(pb, particle);
331  ph->RegisterProcess(pp, particle);
332 
333  } else if (particleName == "B+" ||
334  particleName == "B-" ||
335  particleName == "D+" ||
336  particleName == "D-" ||
337  particleName == "Ds+" ||
338  particleName == "Ds-" ||
339  particleName == "anti_He3" ||
340  particleName == "anti_alpha" ||
341  particleName == "anti_deuteron" ||
342  particleName == "anti_lambda_c+" ||
343  particleName == "anti_omega-" ||
344  particleName == "anti_sigma_c+" ||
345  particleName == "anti_sigma_c++" ||
346  particleName == "anti_sigma+" ||
347  particleName == "anti_sigma-" ||
348  particleName == "anti_triton" ||
349  particleName == "anti_xi_c+" ||
350  particleName == "anti_xi-" ||
351  particleName == "deuteron" ||
352  particleName == "lambda_c+" ||
353  particleName == "omega-" ||
354  particleName == "sigma_c+" ||
355  particleName == "sigma_c++" ||
356  particleName == "sigma+" ||
357  particleName == "sigma-" ||
358  particleName == "tau+" ||
359  particleName == "tau-" ||
360  particleName == "triton" ||
361  particleName == "xi_c+" ||
362  particleName == "xi-" ) {
363 
364  ph->RegisterProcess(hmsc, particle);
365  ph->RegisterProcess(new G4hIonisation(), particle);
366  }
367  }
368 
369  // Em options
370  //
371  G4EmProcessOptions opt;
372  opt.SetVerbose(verbose);
373  opt.SetApplyCuts(true);
374 
375  // Scattering options
376  //
377  opt.SetPolarAngleLimit(CLHEP::pi);
378 
379  // Ionization
380  //
381  //opt.SetSubCutoff(true);
382 
383  // Deexcitation
384  //
387 
388 }
389 
390 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......