Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4EmStandardPhysics_option4.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_option4
31 //
32 // Author: V.Ivanchenko 28.09.2012 from Option3 physics constructor
33 //
34 // Modified:
35 //
36 //----------------------------------------------------------------------------
37 //
38 
40 
41 #include "G4SystemOfUnits.hh"
42 #include "G4ParticleDefinition.hh"
43 #include "G4LossTableManager.hh"
44 #include "G4EmProcessOptions.hh"
45 
46 #include "G4ComptonScattering.hh"
47 #include "G4GammaConversion.hh"
48 #include "G4PhotoElectricEffect.hh"
49 #include "G4RayleighScattering.hh"
50 #include "G4PEEffectFluoModel.hh"
51 #include "G4KleinNishinaModel.hh"
52 #include "G4LowEPComptonModel.hh"
56 
57 #include "G4eMultipleScattering.hh"
59 #include "G4hMultipleScattering.hh"
60 #include "G4MscStepLimitType.hh"
61 #include "G4UrbanMscModel93.hh"
62 #include "G4UrbanMscModel95.hh"
63 #include "G4UrbanMscModel96.hh"
64 #include "G4DummyModel.hh"
65 #include "G4WentzelVIModel.hh"
66 #include "G4CoulombScattering.hh"
68 
69 #include "G4eIonisation.hh"
70 #include "G4eBremsstrahlung.hh"
71 #include "G4Generator2BS.hh"
72 #include "G4Generator2BN.hh"
73 #include "G4SeltzerBergerModel.hh"
76 
77 #include "G4eplusAnnihilation.hh"
78 #include "G4UAtomicDeexcitation.hh"
79 
80 #include "G4MuIonisation.hh"
81 #include "G4MuBremsstrahlung.hh"
82 #include "G4MuPairProduction.hh"
83 #include "G4hBremsstrahlung.hh"
84 #include "G4hPairProduction.hh"
85 
90 
91 #include "G4hIonisation.hh"
92 #include "G4ionIonisation.hh"
94 #include "G4NuclearStopping.hh"
95 
96 #include "G4Gamma.hh"
97 #include "G4Electron.hh"
98 #include "G4Positron.hh"
99 #include "G4MuonPlus.hh"
100 #include "G4MuonMinus.hh"
101 #include "G4PionPlus.hh"
102 #include "G4PionMinus.hh"
103 #include "G4KaonPlus.hh"
104 #include "G4KaonMinus.hh"
105 #include "G4Proton.hh"
106 #include "G4AntiProton.hh"
107 #include "G4Deuteron.hh"
108 #include "G4Triton.hh"
109 #include "G4He3.hh"
110 #include "G4Alpha.hh"
111 #include "G4GenericIon.hh"
112 
113 #include "G4PhysicsListHelper.hh"
114 #include "G4BuilderType.hh"
115 
116 // factory
118 //
120 
121 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
122 
124  : G4VPhysicsConstructor("G4EmStandard_opt4"), verbose(ver)
125 {
128 }
129 
130 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
131 
133  : G4VPhysicsConstructor("G4EmStandard_opt3"), verbose(ver)
134 {
137 }
138 
139 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
140 
142 {}
143 
144 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
145 
147 {
148 // gamma
149  G4Gamma::Gamma();
150 
151 // leptons
156 
157 // mesons
162 
163 // barions
166 
167 // ions
170  G4He3::He3();
171  G4Alpha::Alpha();
173 }
174 
175 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
176 
178 {
180 
181  // muon & hadron bremsstrahlung and pair production
190 
191  // muon & hadron multiple scattering
193  mumsc->AddEmModel(0, new G4WentzelVIModel());
195  pimsc->AddEmModel(0, new G4WentzelVIModel());
197  kmsc->AddEmModel(0, new G4WentzelVIModel());
199  pmsc->AddEmModel(0, new G4WentzelVIModel());
200  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
201 
202  // high energy limit for e+- scattering models
203  G4double highEnergyLimit = 100*MeV;
204 
205  // nuclear stopping
206  G4NuclearStopping* ionnuc = new G4NuclearStopping();
207  G4NuclearStopping* pnuc = new G4NuclearStopping();
208 
209  // Add standard EM Processes
211  while( (*theParticleIterator)() ){
213  G4String particleName = particle->GetParticleName();
214  if(verbose > 1)
215  G4cout << "### " << GetPhysicsName() << " instantiates for "
216  << particleName << G4endl;
217 
218  if (particleName == "gamma") {
219 
220  // Compton scattering
222  cs->SetEmModel(new G4KleinNishinaModel(),1);
223  G4VEmModel* theLowEPComptonModel = new G4LivermoreComptonModel();
224  //G4VEmModel* theLowEPComptonModel = new G4LowEPComptonModel();
225  theLowEPComptonModel->SetHighEnergyLimit(2*MeV);
226  cs->AddEmModel(0, theLowEPComptonModel);
227  ph->RegisterProcess(cs, particle);
228 
229  // Photoelectric
231  G4VEmModel* theLivermorePEModel = new G4LivermorePhotoElectricModel();
232  theLivermorePEModel->SetHighEnergyLimit(10*GeV);
233  pe->SetEmModel(theLivermorePEModel,1);
234  ph->RegisterProcess(pe, particle);
235 
236  // Gamma conversion
238  G4VEmModel* thePenelopeGCModel = new G4PenelopeGammaConversionModel();
239  thePenelopeGCModel->SetHighEnergyLimit(1*GeV);
240  gc->SetEmModel(thePenelopeGCModel,1);
241  ph->RegisterProcess(gc, particle);
242 
243  // Rayleigh scattering
244  ph->RegisterProcess(new G4RayleighScattering(), particle);
245 
246  } else if (particleName == "e-") {
247 
248  // multiple scattering
251  G4UrbanMscModel95* msc1 = new G4UrbanMscModel95();
252  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
253  msc1->SetHighEnergyLimit(highEnergyLimit);
254  msc2->SetLowEnergyLimit(highEnergyLimit);
255  msc->AddEmModel(0, msc1);
256  msc->AddEmModel(0, msc2);
257 
260  ss->SetEmModel(ssm, 1);
261  ss->SetMinKinEnergy(highEnergyLimit);
262  ssm->SetLowEnergyLimit(highEnergyLimit);
263  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
264 
265  // ionisation
266  G4eIonisation* eIoni = new G4eIonisation();
267  eIoni->SetStepFunction(0.2, 100*um);
268  G4VEmModel* theIoniPenelope = new G4PenelopeIonisationModel();
269  theIoniPenelope->SetHighEnergyLimit(0.1*MeV);
270  eIoni->AddEmModel(0, theIoniPenelope, new G4UniversalFluctuation());
271 
272  // bremsstrahlung
273  G4eBremsstrahlung* eBrem = new G4eBremsstrahlung();
274 
275  ph->RegisterProcess(msc, particle);
276  ph->RegisterProcess(eIoni, particle);
277  ph->RegisterProcess(eBrem, particle);
278  ph->RegisterProcess(ss, particle);
279 
280  } else if (particleName == "e+") {
281 
282  // multiple scattering
285  G4UrbanMscModel95* msc1 = new G4UrbanMscModel95();
286  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
287  msc1->SetHighEnergyLimit(highEnergyLimit);
288  msc2->SetLowEnergyLimit(highEnergyLimit);
289  msc->AddEmModel(0, msc1);
290  msc->AddEmModel(0, msc2);
291 
294  ss->SetEmModel(ssm, 1);
295  ss->SetMinKinEnergy(highEnergyLimit);
296  ssm->SetLowEnergyLimit(highEnergyLimit);
297  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
298 
299  // ionisation
300  G4eIonisation* eIoni = new G4eIonisation();
301  eIoni->SetStepFunction(0.2, 100*um);
302  G4VEmModel* theIoniPenelope = new G4PenelopeIonisationModel();
303  theIoniPenelope->SetHighEnergyLimit(0.1*MeV);
304  eIoni->AddEmModel(0, theIoniPenelope, new G4UniversalFluctuation());
305 
306  // bremsstrahlung
307  G4eBremsstrahlung* eBrem = new G4eBremsstrahlung();
308 
309  ph->RegisterProcess(msc, particle);
310  ph->RegisterProcess(eIoni, particle);
311  ph->RegisterProcess(eBrem, particle);
312  ph->RegisterProcess(ss, particle);
313 
314  // annihilation at rest and in flight
315  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
316 
317  } else if (particleName == "mu+" ||
318  particleName == "mu-" ) {
319 
320  G4MuIonisation* muIoni = new G4MuIonisation();
321  muIoni->SetStepFunction(0.2, 50*um);
322 
323  ph->RegisterProcess(mumsc, particle);
324  ph->RegisterProcess(muIoni, particle);
325  ph->RegisterProcess(mub, particle);
326  ph->RegisterProcess(mup, particle);
327  ph->RegisterProcess(new G4CoulombScattering(), particle);
328 
329  } else if (particleName == "alpha" ||
330  particleName == "He3") {
331 
333  G4ionIonisation* ionIoni = new G4ionIonisation();
334  ionIoni->SetStepFunction(0.1, 10*um);
335 
336  ph->RegisterProcess(msc, particle);
337  ph->RegisterProcess(ionIoni, particle);
338  ph->RegisterProcess(ionnuc, particle);
339 
340  } else if (particleName == "GenericIon") {
341 
342  G4ionIonisation* ionIoni = new G4ionIonisation();
343  ionIoni->SetEmModel(new G4IonParametrisedLossModel());
344  ionIoni->SetStepFunction(0.1, 1*um);
345 
346  ph->RegisterProcess(hmsc, particle);
347  ph->RegisterProcess(ionIoni, particle);
348  ph->RegisterProcess(ionnuc, particle);
349 
350  } else if (particleName == "pi+" ||
351  particleName == "pi-" ) {
352 
353  //G4hMultipleScattering* pimsc = new G4hMultipleScattering();
354  G4hIonisation* hIoni = new G4hIonisation();
355  hIoni->SetStepFunction(0.2, 50*um);
356 
357  ph->RegisterProcess(pimsc, particle);
358  ph->RegisterProcess(hIoni, particle);
359  ph->RegisterProcess(pib, particle);
360  ph->RegisterProcess(pip, particle);
361 
362  } else if (particleName == "kaon+" ||
363  particleName == "kaon-" ) {
364 
365  //G4hMultipleScattering* kmsc = new G4hMultipleScattering();
366  G4hIonisation* hIoni = new G4hIonisation();
367  hIoni->SetStepFunction(0.2, 50*um);
368 
369  ph->RegisterProcess(kmsc, particle);
370  ph->RegisterProcess(hIoni, particle);
371  ph->RegisterProcess(kb, particle);
372  ph->RegisterProcess(kp, particle);
373 
374  } else if (particleName == "proton" ||
375  particleName == "anti_proton") {
376 
377  //G4hMultipleScattering* pmsc = new G4hMultipleScattering();
378  G4hIonisation* hIoni = new G4hIonisation();
379  hIoni->SetStepFunction(0.2, 50*um);
380 
381  ph->RegisterProcess(pmsc, particle);
382  ph->RegisterProcess(hIoni, particle);
383  ph->RegisterProcess(pb, particle);
384  ph->RegisterProcess(pp, particle);
385  ph->RegisterProcess(pnuc, particle);
386 
387  } else if (particleName == "B+" ||
388  particleName == "B-" ||
389  particleName == "D+" ||
390  particleName == "D-" ||
391  particleName == "Ds+" ||
392  particleName == "Ds-" ||
393  particleName == "anti_He3" ||
394  particleName == "anti_alpha" ||
395  particleName == "anti_deuteron" ||
396  particleName == "anti_lambda_c+" ||
397  particleName == "anti_omega-" ||
398  particleName == "anti_sigma_c+" ||
399  particleName == "anti_sigma_c++" ||
400  particleName == "anti_sigma+" ||
401  particleName == "anti_sigma-" ||
402  particleName == "anti_triton" ||
403  particleName == "anti_xi_c+" ||
404  particleName == "anti_xi-" ||
405  particleName == "deuteron" ||
406  particleName == "lambda_c+" ||
407  particleName == "omega-" ||
408  particleName == "sigma_c+" ||
409  particleName == "sigma_c++" ||
410  particleName == "sigma+" ||
411  particleName == "sigma-" ||
412  particleName == "tau+" ||
413  particleName == "tau-" ||
414  particleName == "triton" ||
415  particleName == "xi_c+" ||
416  particleName == "xi-" ) {
417 
418  ph->RegisterProcess(hmsc, particle);
419  ph->RegisterProcess(new G4hIonisation(), particle);
420  ph->RegisterProcess(pnuc, particle);
421  }
422  }
423 
424  // Em options
425  //
426  G4EmProcessOptions opt;
427  opt.SetVerbose(verbose);
428 
429  // Multiple Coulomb scattering
430  //
431  opt.SetPolarAngleLimit(CLHEP::pi);
432 
433  // Physics tables
434  //
435  opt.SetMinEnergy(100*eV);
436  opt.SetMaxEnergy(10*TeV);
437  opt.SetDEDXBinning(220);
438  opt.SetLambdaBinning(220);
439 
440  // Nuclear stopping
441  pnuc->SetMaxKinEnergy(MeV);
442 
443  // Ionization
444  //
445  //opt.SetSubCutoff(true);
446 
447  // Deexcitation
450  de->SetFluo(true);
451 }
452 
453 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......