Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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: G4EmStandardPhysics_option3.cc 99938 2016-10-12 08:06:52Z 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 "G4EmParameters.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"
55 
56 #include "G4eMultipleScattering.hh"
58 #include "G4hMultipleScattering.hh"
59 #include "G4MscStepLimitType.hh"
60 #include "G4UrbanMscModel.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 #include "G4ePairProduction.hh"
79 
84 
85 #include "G4hIonisation.hh"
86 #include "G4ionIonisation.hh"
88 #include "G4NuclearStopping.hh"
89 
90 #include "G4Gamma.hh"
91 #include "G4Electron.hh"
92 #include "G4Positron.hh"
93 #include "G4MuonPlus.hh"
94 #include "G4MuonMinus.hh"
95 #include "G4PionPlus.hh"
96 #include "G4PionMinus.hh"
97 #include "G4KaonPlus.hh"
98 #include "G4KaonMinus.hh"
99 #include "G4Proton.hh"
100 #include "G4AntiProton.hh"
101 #include "G4Deuteron.hh"
102 #include "G4Triton.hh"
103 #include "G4He3.hh"
104 #include "G4Alpha.hh"
105 #include "G4GenericIon.hh"
106 
107 #include "G4PhysicsListHelper.hh"
108 #include "G4BuilderType.hh"
109 #include "G4EmModelActivator.hh"
110 
111 // factory
113 //
115 
116 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
117 
119  const G4String&)
120  : G4VPhysicsConstructor("G4EmStandard_opt3"), verbose(ver)
121 {
123  param->SetDefaults();
124  param->SetVerbose(verbose);
125  param->SetMinEnergy(10*eV);
126  param->SetMaxEnergy(100*TeV);
127  param->SetLowestElectronEnergy(100*eV);
128  param->SetNumberOfBinsPerDecade(20);
130  param->SetMuHadLateralDisplacement(true);
131  param->SetFluo(true);
133 }
134 
135 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
136 
138 {}
139 
140 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
141 
143 {
144  // gamma
145  G4Gamma::Gamma();
146 
147  // leptons
152 
153  // mesons
158 
159  // barions
162 
163  // ions
166  G4He3::He3();
167  G4Alpha::Alpha();
169 }
170 
171 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
172 
174 {
175  if(verbose > 1) {
176  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
177  }
179 
180  // muon & hadron bremsstrahlung and pair production
190 
191  // muon & hadron multiple scattering
192  // G4MuMultipleScattering* mumsc = new G4MuMultipleScattering();
193  // mumsc->AddEmModel(0, new G4WentzelVIModel());
194  // G4hMultipleScattering* pimsc = new G4hMultipleScattering();
195  // pimsc->AddEmModel(0, new G4WentzelVIModel());
196  // G4hMultipleScattering* kmsc = new G4hMultipleScattering();
197  // kmsc->AddEmModel(0, new G4WentzelVIModel());
198  //G4hMultipleScattering* pmsc = new G4hMultipleScattering();
199  //pmsc->AddEmModel(0, new G4WentzelVIModel());
200  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
201 
202  // nuclear stopping
203  G4NuclearStopping* pnuc = new G4NuclearStopping();
204 
205  // Add standard EM Processes
206  auto myParticleIterator=GetParticleIterator();
207  myParticleIterator->reset();
208  while( (*myParticleIterator)() ){
209  G4ParticleDefinition* particle = myParticleIterator->value();
210  G4String particleName = particle->GetParticleName();
211 
212  if (particleName == "gamma") {
213 
215  cs->SetEmModel(new G4KleinNishinaModel(), 1);
216 
219 
220  ph->RegisterProcess(pee, particle);
221  ph->RegisterProcess(cs, particle);
222  ph->RegisterProcess(new G4GammaConversion(), particle);
223  ph->RegisterProcess(new G4RayleighScattering(), particle);
224 
225  } else if (particleName == "e-") {
226 
228 
229  G4eIonisation* eIoni = new G4eIonisation();
230  eIoni->SetStepFunction(0.2, 100*um);
231 
232  G4eBremsstrahlung* brem = new G4eBremsstrahlung();
237  brem->SetEmModel(br1,1);
238  brem->SetEmModel(br2,2);
239  br2->SetLowEnergyLimit(GeV);
240 
241  // register processes
242  ph->RegisterProcess(msc, particle);
243  ph->RegisterProcess(eIoni, particle);
244  ph->RegisterProcess(brem, particle);
245  ph->RegisterProcess(ee, particle);
246 
247  } else if (particleName == "e+") {
248 
250 
251  G4eIonisation* eIoni = new G4eIonisation();
252  eIoni->SetStepFunction(0.2, 100*um);
253 
254  G4eBremsstrahlung* brem = new G4eBremsstrahlung();
259  brem->SetEmModel(br1,1);
260  brem->SetEmModel(br2,2);
261  br2->SetLowEnergyLimit(GeV);
262 
263  // register processes
264  ph->RegisterProcess(msc, particle);
265  ph->RegisterProcess(eIoni, particle);
266  ph->RegisterProcess(brem, particle);
267  ph->RegisterProcess(ee, particle);
268  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
269 
270  } else if (particleName == "mu+" ||
271  particleName == "mu-" ) {
272 
274  G4MuIonisation* muIoni = new G4MuIonisation();
275  muIoni->SetStepFunction(0.2, 50*um);
276 
277  ph->RegisterProcess(mumsc, particle);
278  ph->RegisterProcess(muIoni, particle);
279  ph->RegisterProcess(mub, particle);
280  ph->RegisterProcess(mup, particle);
281  //ph->RegisterProcess(new G4CoulombScattering(), particle);
282 
283  } else if (particleName == "alpha" ||
284  particleName == "He3") {
285 
287  G4ionIonisation* ionIoni = new G4ionIonisation();
288  ionIoni->SetStepFunction(0.1, 10*um);
289 
290  ph->RegisterProcess(msc, particle);
291  ph->RegisterProcess(ionIoni, particle);
292  ph->RegisterProcess(pnuc, particle);
293 
294  } else if (particleName == "GenericIon") {
295 
296  G4ionIonisation* ionIoni = new G4ionIonisation();
297  ionIoni->SetEmModel(new G4IonParametrisedLossModel());
298  ionIoni->SetStepFunction(0.1, 1*um);
299 
300  ph->RegisterProcess(hmsc, particle);
301  ph->RegisterProcess(ionIoni, particle);
302  ph->RegisterProcess(pnuc, particle);
303 
304  } else if (particleName == "pi+" ||
305  particleName == "pi-" ) {
306 
308  G4hIonisation* hIoni = new G4hIonisation();
309  hIoni->SetStepFunction(0.2, 50*um);
310 
311  ph->RegisterProcess(pimsc, particle);
312  ph->RegisterProcess(hIoni, particle);
313  ph->RegisterProcess(pib, particle);
314  ph->RegisterProcess(pip, particle);
315 
316  } else if (particleName == "kaon+" ||
317  particleName == "kaon-" ) {
318 
320  G4hIonisation* hIoni = new G4hIonisation();
321  hIoni->SetStepFunction(0.2, 50*um);
322 
323  ph->RegisterProcess(kmsc, particle);
324  ph->RegisterProcess(hIoni, particle);
325  ph->RegisterProcess(kb, particle);
326  ph->RegisterProcess(kp, particle);
327 
328  } else if (particleName == "proton" ||
329  particleName == "anti_proton") {
330 
332  G4hIonisation* hIoni = new G4hIonisation();
333  hIoni->SetStepFunction(0.2, 50*um);
334 
335  ph->RegisterProcess(pmsc, particle);
336  ph->RegisterProcess(hIoni, particle);
337  ph->RegisterProcess(pb, particle);
338  ph->RegisterProcess(pp, particle);
339  ph->RegisterProcess(pnuc, particle);
340 
341  } else if (particleName == "B+" ||
342  particleName == "B-" ||
343  particleName == "D+" ||
344  particleName == "D-" ||
345  particleName == "Ds+" ||
346  particleName == "Ds-" ||
347  particleName == "anti_He3" ||
348  particleName == "anti_alpha" ||
349  particleName == "anti_deuteron" ||
350  particleName == "anti_lambda_c+" ||
351  particleName == "anti_omega-" ||
352  particleName == "anti_sigma_c+" ||
353  particleName == "anti_sigma_c++" ||
354  particleName == "anti_sigma+" ||
355  particleName == "anti_sigma-" ||
356  particleName == "anti_triton" ||
357  particleName == "anti_xi_c+" ||
358  particleName == "anti_xi-" ||
359  particleName == "deuteron" ||
360  particleName == "lambda_c+" ||
361  particleName == "omega-" ||
362  particleName == "sigma_c+" ||
363  particleName == "sigma_c++" ||
364  particleName == "sigma+" ||
365  particleName == "sigma-" ||
366  particleName == "tau+" ||
367  particleName == "tau-" ||
368  particleName == "triton" ||
369  particleName == "xi_c+" ||
370  particleName == "xi-" ) {
371 
372  ph->RegisterProcess(hmsc, particle);
373  ph->RegisterProcess(new G4hIonisation(), particle);
374  ph->RegisterProcess(pnuc, particle);
375  }
376  }
377 
378  // Nuclear stopping
379  pnuc->SetMaxKinEnergy(MeV);
380 
381  // Deexcitation
384 
386 }
387 
388 //....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
void SetVerbose(G4int val)
G4EmStandardPhysics_option3(G4int ver=1, const G4String &name="")
static G4LossTableManager * Instance()
void SetLowestElectronEnergy(G4double val)
void SetMscStepLimitType(G4MscStepLimitType val)
static G4KaonMinus * KaonMinusDefinition()
Definition: G4KaonMinus.cc:108
int G4int
Definition: G4Types.hh:78
void SetMaxEnergy(G4double val)
void SetStepFunction(G4double v1, G4double v2, G4bool lock=true)
const G4String & GetParticleName() const
static constexpr double TeV
Definition: G4SIunits.hh:218
G4ParticleTable::G4PTblDicIterator * GetParticleIterator() const
void SetEmModel(G4VEmModel *, G4int index=1)
G4GLOB_DLL std::ostream G4cout
static constexpr double um
Definition: G4SIunits.hh:113
static G4AntiProton * AntiProton()
Definition: G4AntiProton.cc:93
static G4PionMinus * PionMinusDefinition()
Definition: G4PionMinus.cc:93
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
void SetNumberOfBinsPerDecade(G4int val)
static G4Triton * Triton()
Definition: G4Triton.cc:95
static G4PionPlus * PionPlusDefinition()
Definition: G4PionPlus.cc:93
static G4Proton * Proton()
Definition: G4Proton.cc:93
static constexpr double eV
Definition: G4SIunits.hh:215
const G4String & GetPhysicsName() const
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
static G4Positron * Positron()
Definition: G4Positron.cc:94
void SetMaxKinEnergy(G4double e)
void SetMuHadLateralDisplacement(G4bool val)
void SetMinEnergy(G4double val)
void SetAngularDistribution(G4VEmAngularDistribution *)
Definition: G4VEmModel.hh:623
static G4PhysicsListHelper * GetPhysicsListHelper()
static G4EmParameters * Instance()
void SetEmModel(G4VEmModel *, G4int index=1)
static constexpr double GeV
Definition: G4SIunits.hh:217
static G4MuonMinus * MuonMinus()
Definition: G4MuonMinus.cc:100
static G4Electron * Electron()
Definition: G4Electron.cc:94
#define G4endl
Definition: G4ios.hh:61
static constexpr double MeV
Definition: G4SIunits.hh:214
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
void SetLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:731
static G4He3 * He3()
Definition: G4He3.cc:94
void SetAtomDeexcitation(G4VAtomDeexcitation *)
void SetFluo(G4bool val)
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)