Geant4  10.02.p03
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 102321 2017-01-23 09:51:59Z 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"
36 #include "G4LivermorePhotoElectricModel.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(10*TeV);
134  param->SetLowestElectronEnergy(100*eV);
135  param->SetNumberOfBinsPerDecade(20);
137  param->SetFluo(true);
139 }
140 
141 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
142 
144  : G4VPhysicsConstructor("G4EmLowEPPhysics"), verbose(ver)
145 {
147  param->SetDefaults();
148  param->SetVerbose(verbose);
149  param->SetMinEnergy(100*eV);
150  param->SetMaxEnergy(10*TeV);
151  param->SetLowestElectronEnergy(100*eV);
152  param->SetNumberOfBinsPerDecade(20);
154  param->SetFluo(true);
156 }
157 
158 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
159 
161 {}
162 
163 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
164 
166 {
167  // gamma
168  G4Gamma::Gamma();
169 
170  // leptons
175 
176  // mesons
181 
182  // baryons
185 
186  // ions
189  G4He3::He3();
190  G4Alpha::Alpha();
192 
193  // dna
194  G4EmModelActivator mact;
195  mact.ConstructParticle();
196 }
197 
198 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
199 
201 {
203 
204  // muon & hadron bremsstrahlung and pair production
213 
214  // muon & hadron multiple scattering
216  mumsc->SetEmModel(new G4LowEWentzelVIModel());
218  hmsc->SetEmModel(new G4LowEWentzelVIModel());
220  pmsc->SetEmModel(new G4LowEWentzelVIModel());
222  pimsc->SetEmModel(new G4LowEWentzelVIModel());
224  kmsc->SetEmModel(new G4LowEWentzelVIModel());
225 
226  // nuclear stopping
227  G4NuclearStopping* ionnuc = new G4NuclearStopping();
228  G4NuclearStopping* pnuc = new G4NuclearStopping();
229 
230  // Add Livermore EM Processes
231  auto myParticleIterator=GetParticleIterator();
232  myParticleIterator->reset();
233 
234  while( (*myParticleIterator)() ){
235 
236  G4ParticleDefinition* particle = myParticleIterator->value();
237  G4String particleName = particle->GetParticleName();
238 
239  if(verbose > 1)
240  G4cout << "### " << GetPhysicsName() << " instantiates for "
241  << particleName << G4endl;
242 
243  if (particleName == "gamma") {
244 
245  // Photoelectric effect - Livermore model only
246  G4PhotoElectricEffect* thePhotoElectricEffect = new G4PhotoElectricEffect();
247  thePhotoElectricEffect->SetEmModel(new G4LivermorePhotoElectricModel(), 1);
248  ph->RegisterProcess(thePhotoElectricEffect, particle);
249 
250  // Compton scattering - Livermore model above 20 MeV, Monarsh's model below
251  G4ComptonScattering* theComptonScattering = new G4ComptonScattering();
252  theComptonScattering->SetEmModel(new G4LivermoreComptonModel(),1);
253  G4LowEPComptonModel* theLowEPComptonModel =
254  new G4LowEPComptonModel();
255  theLowEPComptonModel->SetHighEnergyLimit(20*MeV);
256  theComptonScattering->AddEmModel(0, theLowEPComptonModel);
257  ph->RegisterProcess(theComptonScattering, particle);
258 
259  // gamma conversion - Livermore model below 80 GeV
260  G4GammaConversion* theGammaConversion = new G4GammaConversion();
261  theGammaConversion->SetEmModel(new G4LivermoreGammaConversionModel(),1);
262  ph->RegisterProcess(theGammaConversion, particle);
263 
264  // default Rayleigh scattering is Livermore
265  G4RayleighScattering* theRayleigh = new G4RayleighScattering();
266  ph->RegisterProcess(theRayleigh, particle);
267 
268  } else if (particleName == "e-") {
269 
270  // multiple scattering
272  msc->SetEmModel(new G4LowEWentzelVIModel(), 1);
273 
274  // Ionisation - Livermore should be used only for low energies
275  G4eIonisation* eIoni = new G4eIonisation();
276  G4LivermoreIonisationModel* theIoniLivermore = new
278  theIoniLivermore->SetHighEnergyLimit(0.1*MeV);
279  eIoni->AddEmModel(0, theIoniLivermore, new G4UniversalFluctuation() );
280  eIoni->SetStepFunction(0.2, 100*um); //
281 
282  // Bremsstrahlung
283  G4eBremsstrahlung* eBrem = new G4eBremsstrahlung();
284  G4VEmModel* theBrem = new G4SeltzerBergerModel();
285  theBrem->SetHighEnergyLimit(1*GeV);
286  theBrem->SetAngularDistribution(new G4Generator2BS());
287  eBrem->SetEmModel(theBrem, 1);
288 
289  // register processes
290  ph->RegisterProcess(msc, particle);
291  ph->RegisterProcess(eIoni, particle);
292  ph->RegisterProcess(eBrem, particle);
293 
294  } else if (particleName == "e+") {
295 
296  // multiple scattering
298  msc->SetEmModel(new G4LowEWentzelVIModel(), 1);
299 
300  // Standard ionisation
301  G4eIonisation* eIoni = new G4eIonisation();
302  eIoni->SetStepFunction(0.2, 100*um);
303 
304  // Bremsstrahlung
305  G4eBremsstrahlung* eBrem = new G4eBremsstrahlung();
306  G4VEmModel* theBrem = new G4SeltzerBergerModel();
307  theBrem->SetHighEnergyLimit(1*GeV);
308  theBrem->SetAngularDistribution(new G4Generator2BS());
309  eBrem->SetEmModel(theBrem, 1);
310 
311  // register processes
312  ph->RegisterProcess(msc, particle);
313  ph->RegisterProcess(eIoni, particle);
314  ph->RegisterProcess(eBrem, particle);
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 
332  G4ionIonisation* ionIoni = new G4ionIonisation();
333  ionIoni->SetStepFunction(0.1, 10*um);
334 
335  ph->RegisterProcess(hmsc, particle);
336  ph->RegisterProcess(ionIoni, particle);
337  ph->RegisterProcess(ionnuc, particle);
338 
339  } else if (particleName == "GenericIon") {
340 
341  G4ionIonisation* ionIoni = new G4ionIonisation();
342  ionIoni->SetEmModel(new G4IonParametrisedLossModel());
343  ionIoni->SetStepFunction(0.1, 1*um);
344 
345  ph->RegisterProcess(hmsc, particle);
346  ph->RegisterProcess(ionIoni, particle);
347  ph->RegisterProcess(ionnuc, particle);
348 
349  } else if (particleName == "pi+" ||
350  particleName == "pi-" ) {
351 
352  G4hIonisation* hIoni = new G4hIonisation();
353  hIoni->SetStepFunction(0.2, 50*um);
354 
355  ph->RegisterProcess(pimsc, particle);
356  ph->RegisterProcess(hIoni, particle);
357  ph->RegisterProcess(pib, particle);
358  ph->RegisterProcess(pip, particle);
359 
360  } else if (particleName == "kaon+" ||
361  particleName == "kaon-" ) {
362 
363  G4hIonisation* hIoni = new G4hIonisation();
364  hIoni->SetStepFunction(0.2, 50*um);
365 
366  ph->RegisterProcess(kmsc, particle);
367  ph->RegisterProcess(hIoni, particle);
368  ph->RegisterProcess(kb, particle);
369  ph->RegisterProcess(kp, particle);
370 
371  } else if (particleName == "proton" ||
372  particleName == "anti_proton") {
373 
374  G4hIonisation* hIoni = new G4hIonisation();
375  hIoni->SetStepFunction(0.2, 50*um);
376 
377  ph->RegisterProcess(pmsc, particle);
378  ph->RegisterProcess(hIoni, particle);
379  ph->RegisterProcess(pb, particle);
380  ph->RegisterProcess(pp, particle);
381  ph->RegisterProcess(pnuc, particle);
382 
383  } else if (particleName == "B+" ||
384  particleName == "B-" ||
385  particleName == "D+" ||
386  particleName == "D-" ||
387  particleName == "Ds+" ||
388  particleName == "Ds-" ||
389  particleName == "anti_He3" ||
390  particleName == "anti_alpha" ||
391  particleName == "anti_deuteron" ||
392  particleName == "anti_lambda_c+" ||
393  particleName == "anti_omega-" ||
394  particleName == "anti_sigma_c+" ||
395  particleName == "anti_sigma_c++" ||
396  particleName == "anti_sigma+" ||
397  particleName == "anti_sigma-" ||
398  particleName == "anti_triton" ||
399  particleName == "anti_xi_c+" ||
400  particleName == "anti_xi-" ||
401  particleName == "deuteron" ||
402  particleName == "lambda_c+" ||
403  particleName == "omega-" ||
404  particleName == "sigma_c+" ||
405  particleName == "sigma_c++" ||
406  particleName == "sigma+" ||
407  particleName == "sigma-" ||
408  particleName == "tau+" ||
409  particleName == "tau-" ||
410  particleName == "triton" ||
411  particleName == "xi_c+" ||
412  particleName == "xi-" ) {
413 
414  ph->RegisterProcess(hmsc, particle);
415  ph->RegisterProcess(new G4hIonisation(), particle);
416  }
417  }
418 
419  // Nuclear stopping
420  pnuc->SetMaxKinEnergy(MeV);
421 
422  // Deexcitation
423  //
426 
427  G4EmModelActivator mact;
428  mact.ConstructProcess();
429 }
430 
431 //....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
static const double MeV
Definition: G4SIunits.hh:211
void SetVerbose(G4int val)
static G4LossTableManager * Instance()
void SetLowestElectronEnergy(G4double val)
static G4KaonMinus * KaonMinusDefinition()
Definition: G4KaonMinus.cc:108
virtual void ConstructParticle()
void SetStepFunction(G4double v1, G4double v2)
void SetEmModel(G4VMscModel *, G4int index=1)
int G4int
Definition: G4Types.hh:78
void SetMaxEnergy(G4double val)
void SetHighEnergyLimit(G4double)
Definition: G4VEmModel.hh:725
void SetEmModel(G4VEmModel *, G4int index=1)
const G4String & GetParticleName() const
const G4String & GetPhysicsName() const
G4GLOB_DLL std::ostream G4cout
G4_DECLARE_PHYSCONSTR_FACTORY(G4EmLowEPPhysics)
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 const double GeV
Definition: G4SIunits.hh:214
void AddEmModel(G4int, G4VEmModel *, G4VEmFluctuationModel *fluc=0, const G4Region *region=0)
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
virtual void ConstructProcess()
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
virtual ~G4EmLowEPPhysics()
static const double eV
Definition: G4SIunits.hh:212
static G4Positron * Positron()
Definition: G4Positron.cc:94
void SetMaxKinEnergy(G4double e)
void AddEmModel(G4int, G4VEmModel *, const G4Region *region=0)
void SetMinEnergy(G4double val)
void SetAngularDistribution(G4VEmAngularDistribution *)
Definition: G4VEmModel.hh:624
static G4PhysicsListHelper * GetPhysicsListHelper()
static G4EmParameters * Instance()
void SetEmModel(G4VEmModel *, G4int index=1)
static const double um
Definition: G4SIunits.hh:112
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 const double TeV
Definition: G4SIunits.hh:215
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
G4EmLowEPPhysics(G4int ver=1)
G4ParticleTable::G4PTblDicIterator * GetParticleIterator() const
static G4He3 * He3()
Definition: G4He3.cc:94
void SetAtomDeexcitation(G4VAtomDeexcitation *)
void SetFluo(G4bool val)