Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4EmStandardPhysicsGS.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: G4EmStandardPhysicsGS.cc 90470 2015-06-01 10:44:59Z vnivanch $
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName: G4EmStandardPhysicsGS
31 //
32 // Author: V.Ivanchenko 05.06.2015
33 //
34 // Modified:
35 //
36 //----------------------------------------------------------------------------
37 //
38 
39 #include "G4EmStandardPhysicsGS.hh"
40 #include "G4SystemOfUnits.hh"
41 #include "G4ParticleDefinition.hh"
42 #include "G4EmParameters.hh"
43 #include "G4LossTableManager.hh"
44 
45 #include "G4ComptonScattering.hh"
46 #include "G4GammaConversion.hh"
47 #include "G4PhotoElectricEffect.hh"
48 #include "G4RayleighScattering.hh"
49 
50 #include "G4KleinNishinaModel.hh"
52 #include "G4eMultipleScattering.hh"
54 #include "G4hMultipleScattering.hh"
55 #include "G4CoulombScattering.hh"
57 #include "G4WentzelVIModel.hh"
58 #include "G4UrbanMscModel.hh"
60 
65 
66 #include "G4eIonisation.hh"
67 #include "G4eBremsstrahlung.hh"
68 #include "G4eplusAnnihilation.hh"
69 #include "G4UAtomicDeexcitation.hh"
70 
71 #include "G4MuIonisation.hh"
72 #include "G4MuBremsstrahlung.hh"
73 #include "G4MuPairProduction.hh"
74 #include "G4hBremsstrahlung.hh"
75 #include "G4hPairProduction.hh"
76 
77 #include "G4hIonisation.hh"
78 #include "G4ionIonisation.hh"
79 #include "G4alphaIonisation.hh"
80 
81 #include "G4Gamma.hh"
82 #include "G4Electron.hh"
83 #include "G4Positron.hh"
84 #include "G4MuonPlus.hh"
85 #include "G4MuonMinus.hh"
86 #include "G4PionPlus.hh"
87 #include "G4PionMinus.hh"
88 #include "G4KaonPlus.hh"
89 #include "G4KaonMinus.hh"
90 #include "G4Proton.hh"
91 #include "G4AntiProton.hh"
92 #include "G4Deuteron.hh"
93 #include "G4Triton.hh"
94 #include "G4He3.hh"
95 #include "G4Alpha.hh"
96 #include "G4GenericIon.hh"
97 
98 #include "G4PhysicsListHelper.hh"
99 #include "G4BuilderType.hh"
100 #include "G4EmModelActivator.hh"
101 
102 // factory
104 //
106 
107 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
108 
110  : G4VPhysicsConstructor("G4EmStandardGS"), verbose(ver)
111 {
113  param->SetDefaults();
114  param->SetVerbose(verbose);
115  param->SetLowestElectronEnergy(10*eV);
116  param->SetMscRangeFactor(0.1);
117  param->SetMscStepLimitType(fUseSafetyPlus);// corresponds to Urban fUseSafety
118 // param->SetMscStepLimitType(fUseSafety);// corresponds to the error-free stepping
119 // param->SetFluo(true);
121 }
122 
123 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
124 
126 {}
127 
128 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
129 
131 {
132  // gamma
133  G4Gamma::Gamma();
134 
135  // leptons
140 
141  // mesons
146 
147  // barions
150 
151  // ions
154  G4He3::He3();
155  G4Alpha::Alpha();
157 }
158 
159 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
160 
162 {
163  if(verbose > 1) {
164  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
165  }
167 
168  // muon & hadron bremsstrahlung and pair production
177 
178  // muon & hadron multiple scattering
180  mumsc->AddEmModel(0, new G4WentzelVIModel());
182 
184  pimsc->AddEmModel(0, new G4WentzelVIModel());
186 
188  kmsc->AddEmModel(0, new G4WentzelVIModel());
190 
192  pmsc->AddEmModel(0, new G4WentzelVIModel());
194 
195  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
196 
197  // high energy limit for e+- scattering models
198  G4double highEnergyLimit = 100*MeV;
199 
200  // Add standard EM Processes
201  auto myParticleIterator=GetParticleIterator();
202  myParticleIterator->reset();
203  while( (*myParticleIterator)() ){
204  G4ParticleDefinition* particle = myParticleIterator->value();
205  G4String particleName = particle->GetParticleName();
206 
207  if (particleName == "gamma") {
208 
209  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
210  ph->RegisterProcess(new G4ComptonScattering(), particle);
211  ph->RegisterProcess(new G4GammaConversion(), particle);
212 
213 
214 /*
215  G4ComptonScattering* cs = new G4ComptonScattering;
216  cs->SetEmModel(new G4KleinNishinaModel(), 1);
217 
218  G4PhotoElectricEffect* pee = new G4PhotoElectricEffect();
219  pee->SetEmModel(new G4LivermorePhotoElectricModel(), 1);
220 
221  ph->RegisterProcess(cs, particle);
222  ph->RegisterProcess(pee, particle);
223  ph->RegisterProcess(new G4GammaConversion(), particle);
224  ph->RegisterProcess(new G4RayleighScattering(), particle);
225 */
226  } else if (particleName == "e-") {
227 
230  msc1->SetOptionPWAScreening(false);
231 
232  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
233  msc1->SetHighEnergyLimit(highEnergyLimit);
234  msc2->SetLowEnergyLimit(highEnergyLimit);
235  msc->AddEmModel(0, msc1);
236  msc->AddEmModel(0, msc2);
237 
240  ss->SetEmModel(ssm, 1);
241  ss->SetMinKinEnergy(highEnergyLimit);
242  ssm->SetLowEnergyLimit(highEnergyLimit);
243  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
244 
245  ph->RegisterProcess(msc, particle);
246  ph->RegisterProcess(new G4eIonisation(), particle);
247  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
248  ph->RegisterProcess(ss, particle);
249 
250  } else if (particleName == "e+") {
251 
254  msc1->SetOptionPWAScreening(true);
255 
256  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
257  msc1->SetHighEnergyLimit(highEnergyLimit);
258  msc2->SetLowEnergyLimit(highEnergyLimit);
259  msc->AddEmModel(0, msc1);
260  msc->AddEmModel(0, msc2);
261 
264  ss->SetEmModel(ssm, 1);
265  ss->SetMinKinEnergy(highEnergyLimit);
266  ssm->SetLowEnergyLimit(highEnergyLimit);
267  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
268 
269  ph->RegisterProcess(msc, particle);
270  ph->RegisterProcess(new G4eIonisation(), particle);
271  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
272  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
273  ph->RegisterProcess(ss, particle);
274 
275  } else if (particleName == "mu+" ||
276  particleName == "mu-" ) {
277 
278  ph->RegisterProcess(mumsc, particle);
279  ph->RegisterProcess(new G4MuIonisation(), particle);
280  ph->RegisterProcess(mub, particle);
281  ph->RegisterProcess(mup, particle);
282  ph->RegisterProcess(muss, particle);
283 
284  } else if (particleName == "alpha" ||
285  particleName == "He3") {
286 
287  //ph->RegisterProcess(hmsc, particle);
288  ph->RegisterProcess(new G4hMultipleScattering(), particle);
289  ph->RegisterProcess(new G4ionIonisation(), particle);
290 
291  } else if (particleName == "GenericIon") {
292 
293  ph->RegisterProcess(hmsc, particle);
294  ph->RegisterProcess(new G4ionIonisation(), particle);
295 
296  } else if (particleName == "pi+" ||
297  particleName == "pi-" ) {
298 
299  //G4hMultipleScattering* pimsc = new G4hMultipleScattering();
300  ph->RegisterProcess(pimsc, particle);
301  ph->RegisterProcess(new G4hIonisation(), particle);
302  ph->RegisterProcess(pib, particle);
303  ph->RegisterProcess(pip, particle);
304  ph->RegisterProcess(piss, particle);
305 
306  } else if (particleName == "kaon+" ||
307  particleName == "kaon-" ) {
308 
309  //G4hMultipleScattering* kmsc = new G4hMultipleScattering();
310  ph->RegisterProcess(kmsc, particle);
311  ph->RegisterProcess(new G4hIonisation(), particle);
312  ph->RegisterProcess(kb, particle);
313  ph->RegisterProcess(kp, particle);
314  ph->RegisterProcess(kss, particle);
315 
316  } else if (particleName == "proton" ||
317  particleName == "anti_proton") {
318 
319  //G4hMultipleScattering* pmsc = new G4hMultipleScattering();
320  ph->RegisterProcess(pmsc, particle);
321  ph->RegisterProcess(new G4hIonisation(), particle);
322  ph->RegisterProcess(pb, particle);
323  ph->RegisterProcess(pp, particle);
324  ph->RegisterProcess(pss, particle);
325 
326  } else if (particleName == "B+" ||
327  particleName == "B-" ||
328  particleName == "D+" ||
329  particleName == "D-" ||
330  particleName == "Ds+" ||
331  particleName == "Ds-" ||
332  particleName == "anti_He3" ||
333  particleName == "anti_alpha" ||
334  particleName == "anti_deuteron" ||
335  particleName == "anti_lambda_c+" ||
336  particleName == "anti_omega-" ||
337  particleName == "anti_sigma_c+" ||
338  particleName == "anti_sigma_c++" ||
339  particleName == "anti_sigma+" ||
340  particleName == "anti_sigma-" ||
341  particleName == "anti_triton" ||
342  particleName == "anti_xi_c+" ||
343  particleName == "anti_xi-" ||
344  particleName == "deuteron" ||
345  particleName == "lambda_c+" ||
346  particleName == "omega-" ||
347  particleName == "sigma_c+" ||
348  particleName == "sigma_c++" ||
349  particleName == "sigma+" ||
350  particleName == "sigma-" ||
351  particleName == "tau+" ||
352  particleName == "tau-" ||
353  particleName == "triton" ||
354  particleName == "xi_c+" ||
355  particleName == "xi-" ) {
356 
357  ph->RegisterProcess(hmsc, particle);
358  ph->RegisterProcess(new G4hIonisation(), particle);
359  }
360  }
361 
362  // Deexcitation
363  //
366 
368 }
369 
370 //....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)
static G4LossTableManager * Instance()
void SetLowestElectronEnergy(G4double val)
void SetMscStepLimitType(G4MscStepLimitType val)
static G4KaonMinus * KaonMinusDefinition()
Definition: G4KaonMinus.cc:108
int G4int
Definition: G4Types.hh:78
const G4String & GetParticleName() const
void SetHighEnergyLimit(G4double)
Definition: G4VEmModel.hh:732
G4ParticleTable::G4PTblDicIterator * GetParticleIterator() const
void SetEmModel(G4VEmModel *, G4int index=1)
G4GLOB_DLL std::ostream G4cout
static G4AntiProton * AntiProton()
Definition: G4AntiProton.cc:93
static G4PionMinus * PionMinusDefinition()
Definition: G4PionMinus.cc:93
void SetMscRangeFactor(G4double val)
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
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
G4EmStandardPhysicsGS(G4int ver=0, const G4String &name="")
void SetActivationLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:753
static G4Positron * Positron()
Definition: G4Positron.cc:94
static G4PhysicsListHelper * GetPhysicsListHelper()
static G4EmParameters * Instance()
void AddEmModel(G4int order, G4VEmModel *, const G4Region *region=nullptr)
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 SetMinKinEnergy(G4double e)
double G4double
Definition: G4Types.hh:76
void SetLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:739
static G4He3 * He3()
Definition: G4He3.cc:94
void SetAtomDeexcitation(G4VAtomDeexcitation *)
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)