Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4EmLowEPPhysics.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: G4EmLowEPPhysics.cc 99938 2016-10-12 08:06:52Z gcosmo $
27 
28 #include "G4EmLowEPPhysics.hh"
29 #include "G4ParticleDefinition.hh"
30 #include "G4SystemOfUnits.hh"
31 
32 // *** Processes and models
33 
34 // gamma
35 #include "G4PhotoElectricEffect.hh"
37 
38 #include "G4ComptonScattering.hh"
39 #include "G4LowEPComptonModel.hh"
41 
42 #include "G4GammaConversion.hh"
44 
45 #include "G4RayleighScattering.hh"
47 
48 // e+-
49 #include "G4eMultipleScattering.hh"
51 
52 #include "G4eIonisation.hh"
54 
55 #include "G4eBremsstrahlung.hh"
57 #include "G4Generator2BS.hh"
58 
59 // e+
60 #include "G4eplusAnnihilation.hh"
61 
62 // mu+-
64 #include "G4MuIonisation.hh"
65 #include "G4MuBremsstrahlung.hh"
66 #include "G4MuPairProduction.hh"
67 #include "G4SeltzerBergerModel.hh"
68 
69 // hadrons
70 #include "G4hMultipleScattering.hh"
71 #include "G4MscStepLimitType.hh"
72 
73 #include "G4hBremsstrahlung.hh"
74 #include "G4hPairProduction.hh"
75 
76 #include "G4hIonisation.hh"
77 #include "G4ionIonisation.hh"
78 #include "G4alphaIonisation.hh"
80 #include "G4NuclearStopping.hh"
81 
82 // msc models
83 #include "G4UrbanMscModel.hh"
84 #include "G4WentzelVIModel.hh"
85 #include "G4LowEWentzelVIModel.hh"
88 #include "G4CoulombScattering.hh"
89 
90 // interfaces
91 #include "G4LossTableManager.hh"
92 #include "G4UAtomicDeexcitation.hh"
93 #include "G4EmParameters.hh"
94 
95 // particles
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 //
115 #include "G4PhysicsListHelper.hh"
116 #include "G4BuilderType.hh"
117 #include "G4EmModelActivator.hh"
118 
119 // factory
121 //
123 
124 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
125 
127  : G4VPhysicsConstructor("G4EmLowEPPhysics"), verbose(ver)
128 {
130  param->SetDefaults();
131  param->SetVerbose(verbose);
132  param->SetMinEnergy(100*eV);
133  param->SetMaxEnergy(1*TeV);
134  param->SetLowestElectronEnergy(100*eV);
135  param->SetNumberOfBinsPerDecade(20);
137  param->SetFluo(true);
139 }
140 
141 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
142 
144 {}
145 
146 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
147 
149 {
150  // gamma
151  G4Gamma::Gamma();
152 
153  // leptons
158 
159  // mesons
164 
165  // baryons
168 
169  // ions
172  G4He3::He3();
173  G4Alpha::Alpha();
175 }
176 
177 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
178 
180 {
182 
183  // muon & hadron bremsstrahlung and pair production
192 
193  // muon & hadron multiple scattering
195  mumsc->SetEmModel(new G4LowEWentzelVIModel());
197  hmsc->SetEmModel(new G4LowEWentzelVIModel());
199  pmsc->SetEmModel(new G4LowEWentzelVIModel());
201  pimsc->SetEmModel(new G4LowEWentzelVIModel());
203  kmsc->SetEmModel(new G4LowEWentzelVIModel());
204 
205  // nuclear stopping
206  G4NuclearStopping* ionnuc = new G4NuclearStopping();
207  G4NuclearStopping* pnuc = new G4NuclearStopping();
208 
209  // Add Livermore EM Processes
210  auto myParticleIterator=GetParticleIterator();
211  myParticleIterator->reset();
212 
213  while( (*myParticleIterator)() ){
214 
215  G4ParticleDefinition* particle = myParticleIterator->value();
216  G4String particleName = particle->GetParticleName();
217 
218  if(verbose > 1)
219  G4cout << "### " << GetPhysicsName() << " instantiates for "
220  << particleName << G4endl;
221 
222  if (particleName == "gamma") {
223 
224  // Photoelectric effect - Livermore model only
225  G4PhotoElectricEffect* thePhotoElectricEffect = new G4PhotoElectricEffect();
226  thePhotoElectricEffect->SetEmModel(new G4LivermorePhotoElectricModel(), 1);
227  ph->RegisterProcess(thePhotoElectricEffect, particle);
228 
229  // Compton scattering - Livermore model above 20 MeV, Monarsh's model below
230  G4ComptonScattering* theComptonScattering = new G4ComptonScattering();
231  theComptonScattering->SetEmModel(new G4LivermoreComptonModel(),1);
232  G4LowEPComptonModel* theLowEPComptonModel =
233  new G4LowEPComptonModel();
234  theLowEPComptonModel->SetHighEnergyLimit(20*MeV);
235  theComptonScattering->AddEmModel(0, theLowEPComptonModel);
236  ph->RegisterProcess(theComptonScattering, particle);
237 
238  // gamma conversion - Livermore model below 80 GeV
239  G4GammaConversion* theGammaConversion = new G4GammaConversion();
240  theGammaConversion->SetEmModel(new G4LivermoreGammaConversionModel(),1);
241  ph->RegisterProcess(theGammaConversion, particle);
242 
243  // default Rayleigh scattering is Livermore
244  G4RayleighScattering* theRayleigh = new G4RayleighScattering();
245  ph->RegisterProcess(theRayleigh, particle);
246 
247  } else if (particleName == "e-") {
248 
249  // multiple scattering
251  msc->SetEmModel(new G4LowEWentzelVIModel(), 1);
252 
253  // Ionisation - Livermore should be used only for low energies
254  G4eIonisation* eIoni = new G4eIonisation();
255  G4LivermoreIonisationModel* theIoniLivermore = new
257  theIoniLivermore->SetHighEnergyLimit(0.1*MeV);
258  eIoni->AddEmModel(0, theIoniLivermore, new G4UniversalFluctuation() );
259  eIoni->SetStepFunction(0.2, 100*um); //
260 
261  // Bremsstrahlung
262  G4eBremsstrahlung* eBrem = new G4eBremsstrahlung();
263  G4VEmModel* theBrem = new G4SeltzerBergerModel();
264  theBrem->SetHighEnergyLimit(1*GeV);
265  theBrem->SetAngularDistribution(new G4Generator2BS());
266  eBrem->SetEmModel(theBrem, 1);
267 
268  // register processes
269  ph->RegisterProcess(msc, particle);
270  ph->RegisterProcess(eIoni, particle);
271  ph->RegisterProcess(eBrem, particle);
272 
273  } else if (particleName == "e+") {
274 
275  // multiple scattering
277  msc->SetEmModel(new G4LowEWentzelVIModel(), 1);
278 
279  // Standard ionisation
280  G4eIonisation* eIoni = new G4eIonisation();
281  eIoni->SetStepFunction(0.2, 100*um);
282 
283  // Bremsstrahlung
284  G4eBremsstrahlung* eBrem = new G4eBremsstrahlung();
285  G4VEmModel* theBrem = new G4SeltzerBergerModel();
286  theBrem->SetHighEnergyLimit(1*GeV);
287  theBrem->SetAngularDistribution(new G4Generator2BS());
288  eBrem->SetEmModel(theBrem, 1);
289 
290  // register processes
291  ph->RegisterProcess(msc, particle);
292  ph->RegisterProcess(eIoni, particle);
293  ph->RegisterProcess(eBrem, particle);
294  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
295 
296  } else if (particleName == "mu+" ||
297  particleName == "mu-" ) {
298 
299  G4MuIonisation* muIoni = new G4MuIonisation();
300  muIoni->SetStepFunction(0.2, 50*um);
301 
302  ph->RegisterProcess(mumsc, particle);
303  ph->RegisterProcess(muIoni, particle);
304  ph->RegisterProcess(mub, particle);
305  ph->RegisterProcess(mup, particle);
306  //ph->RegisterProcess(new G4CoulombScattering(), particle);
307 
308  } else if (particleName == "alpha" ||
309  particleName == "He3" ) {
310 
311  G4ionIonisation* ionIoni = new G4ionIonisation();
312  ionIoni->SetStepFunction(0.1, 10*um);
313 
314  ph->RegisterProcess(hmsc, particle);
315  ph->RegisterProcess(ionIoni, particle);
316  ph->RegisterProcess(ionnuc, particle);
317 
318  } else if (particleName == "GenericIon") {
319 
320  G4ionIonisation* ionIoni = new G4ionIonisation();
321  ionIoni->SetEmModel(new G4IonParametrisedLossModel());
322  ionIoni->SetStepFunction(0.1, 1*um);
323 
324  ph->RegisterProcess(hmsc, particle);
325  ph->RegisterProcess(ionIoni, particle);
326  ph->RegisterProcess(ionnuc, particle);
327 
328  } else if (particleName == "pi+" ||
329  particleName == "pi-" ) {
330 
331  G4hIonisation* hIoni = new G4hIonisation();
332  hIoni->SetStepFunction(0.2, 50*um);
333 
334  ph->RegisterProcess(pimsc, particle);
335  ph->RegisterProcess(hIoni, particle);
336  ph->RegisterProcess(pib, particle);
337  ph->RegisterProcess(pip, particle);
338 
339  } else if (particleName == "kaon+" ||
340  particleName == "kaon-" ) {
341 
342  G4hIonisation* hIoni = new G4hIonisation();
343  hIoni->SetStepFunction(0.2, 50*um);
344 
345  ph->RegisterProcess(kmsc, particle);
346  ph->RegisterProcess(hIoni, particle);
347  ph->RegisterProcess(kb, particle);
348  ph->RegisterProcess(kp, particle);
349 
350  } else if (particleName == "proton" ||
351  particleName == "anti_proton") {
352 
353  G4hIonisation* hIoni = new G4hIonisation();
354  hIoni->SetStepFunction(0.2, 50*um);
355 
356  ph->RegisterProcess(pmsc, particle);
357  ph->RegisterProcess(hIoni, particle);
358  ph->RegisterProcess(pb, particle);
359  ph->RegisterProcess(pp, particle);
360  ph->RegisterProcess(pnuc, particle);
361 
362  } else if (particleName == "B+" ||
363  particleName == "B-" ||
364  particleName == "D+" ||
365  particleName == "D-" ||
366  particleName == "Ds+" ||
367  particleName == "Ds-" ||
368  particleName == "anti_He3" ||
369  particleName == "anti_alpha" ||
370  particleName == "anti_deuteron" ||
371  particleName == "anti_lambda_c+" ||
372  particleName == "anti_omega-" ||
373  particleName == "anti_sigma_c+" ||
374  particleName == "anti_sigma_c++" ||
375  particleName == "anti_sigma+" ||
376  particleName == "anti_sigma-" ||
377  particleName == "anti_triton" ||
378  particleName == "anti_xi_c+" ||
379  particleName == "anti_xi-" ||
380  particleName == "deuteron" ||
381  particleName == "lambda_c+" ||
382  particleName == "omega-" ||
383  particleName == "sigma_c+" ||
384  particleName == "sigma_c++" ||
385  particleName == "sigma+" ||
386  particleName == "sigma-" ||
387  particleName == "tau+" ||
388  particleName == "tau-" ||
389  particleName == "triton" ||
390  particleName == "xi_c+" ||
391  particleName == "xi-" ) {
392 
393  ph->RegisterProcess(hmsc, particle);
394  ph->RegisterProcess(new G4hIonisation(), particle);
395  }
396  }
397 
398  // Nuclear stopping
399  pnuc->SetMaxKinEnergy(MeV);
400 
401  // Deexcitation
402  //
405 
407 }
408 
409 //....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)
static G4KaonMinus * KaonMinusDefinition()
Definition: G4KaonMinus.cc:108
virtual void ConstructParticle()
void SetEmModel(G4VMscModel *, G4int index=1)
int G4int
Definition: G4Types.hh:78
void SetMaxEnergy(G4double val)
void SetStepFunction(G4double v1, G4double v2, G4bool lock=true)
const G4String & GetParticleName() const
void SetHighEnergyLimit(G4double)
Definition: G4VEmModel.hh:724
static constexpr double TeV
Definition: G4SIunits.hh:218
void AddEmModel(G4int, G4VEmModel *, G4VEmFluctuationModel *fluc=0, const G4Region *region=nullptr)
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
virtual void ConstructProcess()
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
virtual ~G4EmLowEPPhysics()
void AddEmModel(G4int, G4VEmModel *, const G4Region *region=nullptr)
static G4Positron * Positron()
Definition: G4Positron.cc:94
void SetMaxKinEnergy(G4double e)
void SetMinEnergy(G4double val)
G4EmLowEPPhysics(G4int ver=1, const G4String &name="")
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
void ActivateAngularGeneratorForIonisation(G4bool val)
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
static G4He3 * He3()
Definition: G4He3.cc:94
void SetAtomDeexcitation(G4VAtomDeexcitation *)
void SetFluo(G4bool val)
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)