Geant4  10.02.p01
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 92821 2015-09-17 15:23:49Z 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(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  aParticleIterator->reset();
232 
233  while( (*aParticleIterator)() ){
234 
235  G4ParticleDefinition* particle = aParticleIterator->value();
236  G4String particleName = particle->GetParticleName();
237 
238  if(verbose > 1)
239  G4cout << "### " << GetPhysicsName() << " instantiates for "
240  << particleName << G4endl;
241 
242  if (particleName == "gamma") {
243 
244  // Photoelectric effect - Livermore model only
245  G4PhotoElectricEffect* thePhotoElectricEffect = new G4PhotoElectricEffect();
246  thePhotoElectricEffect->SetEmModel(new G4LivermorePhotoElectricModel(), 1);
247  ph->RegisterProcess(thePhotoElectricEffect, particle);
248 
249  // Compton scattering - Livermore model above 20 MeV, Monarsh's model below
250  G4ComptonScattering* theComptonScattering = new G4ComptonScattering();
251  theComptonScattering->SetEmModel(new G4LivermoreComptonModel(),1);
252  G4LowEPComptonModel* theLowEPComptonModel =
253  new G4LowEPComptonModel();
254  theLowEPComptonModel->SetHighEnergyLimit(20*MeV);
255  theComptonScattering->AddEmModel(0, theLowEPComptonModel);
256  ph->RegisterProcess(theComptonScattering, particle);
257 
258  // gamma conversion - Livermore model below 80 GeV
259  G4GammaConversion* theGammaConversion = new G4GammaConversion();
260  theGammaConversion->SetEmModel(new G4LivermoreGammaConversionModel(),1);
261  ph->RegisterProcess(theGammaConversion, particle);
262 
263  // default Rayleigh scattering is Livermore
264  G4RayleighScattering* theRayleigh = new G4RayleighScattering();
265  ph->RegisterProcess(theRayleigh, particle);
266 
267  } else if (particleName == "e-") {
268 
269  // multiple scattering
271  msc->SetEmModel(new G4LowEWentzelVIModel(), 1);
272 
273  // Ionisation - Livermore should be used only for low energies
274  G4eIonisation* eIoni = new G4eIonisation();
275  G4LivermoreIonisationModel* theIoniLivermore = new
277  theIoniLivermore->SetHighEnergyLimit(0.1*MeV);
278  eIoni->AddEmModel(0, theIoniLivermore, new G4UniversalFluctuation() );
279  eIoni->SetStepFunction(0.2, 100*um); //
280 
281  // Bremsstrahlung
282  G4eBremsstrahlung* eBrem = new G4eBremsstrahlung();
283  G4VEmModel* theBrem = new G4SeltzerBergerModel();
284  theBrem->SetHighEnergyLimit(1*GeV);
285  theBrem->SetAngularDistribution(new G4Generator2BS());
286  eBrem->SetEmModel(theBrem, 1);
287 
288  // register processes
289  ph->RegisterProcess(msc, particle);
290  ph->RegisterProcess(eIoni, particle);
291  ph->RegisterProcess(eBrem, particle);
292 
293  } else if (particleName == "e+") {
294 
295  // multiple scattering
297  msc->SetEmModel(new G4LowEWentzelVIModel(), 1);
298 
299  // Standard ionisation
300  G4eIonisation* eIoni = new G4eIonisation();
301  eIoni->SetStepFunction(0.2, 100*um);
302 
303  // Bremsstrahlung
304  G4eBremsstrahlung* eBrem = new G4eBremsstrahlung();
305  G4VEmModel* theBrem = new G4SeltzerBergerModel();
306  theBrem->SetHighEnergyLimit(1*GeV);
307  theBrem->SetAngularDistribution(new G4Generator2BS());
308  eBrem->SetEmModel(theBrem, 1);
309 
310  // register processes
311  ph->RegisterProcess(msc, particle);
312  ph->RegisterProcess(eIoni, particle);
313  ph->RegisterProcess(eBrem, particle);
314  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
315 
316  } else if (particleName == "mu+" ||
317  particleName == "mu-" ) {
318 
319  G4MuIonisation* muIoni = new G4MuIonisation();
320  muIoni->SetStepFunction(0.2, 50*um);
321 
322  ph->RegisterProcess(mumsc, particle);
323  ph->RegisterProcess(muIoni, particle);
324  ph->RegisterProcess(mub, particle);
325  ph->RegisterProcess(mup, particle);
326  //ph->RegisterProcess(new G4CoulombScattering(), particle);
327 
328  } else if (particleName == "alpha" ||
329  particleName == "He3" ) {
330 
331  G4ionIonisation* ionIoni = new G4ionIonisation();
332  ionIoni->SetStepFunction(0.1, 10*um);
333 
334  ph->RegisterProcess(hmsc, particle);
335  ph->RegisterProcess(ionIoni, particle);
336  ph->RegisterProcess(ionnuc, particle);
337 
338  } else if (particleName == "GenericIon") {
339 
340  G4ionIonisation* ionIoni = new G4ionIonisation();
341  ionIoni->SetEmModel(new G4IonParametrisedLossModel());
342  ionIoni->SetStepFunction(0.1, 1*um);
343 
344  ph->RegisterProcess(hmsc, particle);
345  ph->RegisterProcess(ionIoni, particle);
346  ph->RegisterProcess(ionnuc, particle);
347 
348  } else if (particleName == "pi+" ||
349  particleName == "pi-" ) {
350 
351  G4hIonisation* hIoni = new G4hIonisation();
352  hIoni->SetStepFunction(0.2, 50*um);
353 
354  ph->RegisterProcess(pimsc, particle);
355  ph->RegisterProcess(hIoni, particle);
356  ph->RegisterProcess(pib, particle);
357  ph->RegisterProcess(pip, particle);
358 
359  } else if (particleName == "kaon+" ||
360  particleName == "kaon-" ) {
361 
362  G4hIonisation* hIoni = new G4hIonisation();
363  hIoni->SetStepFunction(0.2, 50*um);
364 
365  ph->RegisterProcess(kmsc, particle);
366  ph->RegisterProcess(hIoni, particle);
367  ph->RegisterProcess(kb, particle);
368  ph->RegisterProcess(kp, particle);
369 
370  } else if (particleName == "proton" ||
371  particleName == "anti_proton") {
372 
373  G4hIonisation* hIoni = new G4hIonisation();
374  hIoni->SetStepFunction(0.2, 50*um);
375 
376  ph->RegisterProcess(pmsc, particle);
377  ph->RegisterProcess(hIoni, particle);
378  ph->RegisterProcess(pb, particle);
379  ph->RegisterProcess(pp, particle);
380  ph->RegisterProcess(pnuc, particle);
381 
382  } else if (particleName == "B+" ||
383  particleName == "B-" ||
384  particleName == "D+" ||
385  particleName == "D-" ||
386  particleName == "Ds+" ||
387  particleName == "Ds-" ||
388  particleName == "anti_He3" ||
389  particleName == "anti_alpha" ||
390  particleName == "anti_deuteron" ||
391  particleName == "anti_lambda_c+" ||
392  particleName == "anti_omega-" ||
393  particleName == "anti_sigma_c+" ||
394  particleName == "anti_sigma_c++" ||
395  particleName == "anti_sigma+" ||
396  particleName == "anti_sigma-" ||
397  particleName == "anti_triton" ||
398  particleName == "anti_xi_c+" ||
399  particleName == "anti_xi-" ||
400  particleName == "deuteron" ||
401  particleName == "lambda_c+" ||
402  particleName == "omega-" ||
403  particleName == "sigma_c+" ||
404  particleName == "sigma_c++" ||
405  particleName == "sigma+" ||
406  particleName == "sigma-" ||
407  particleName == "tau+" ||
408  particleName == "tau-" ||
409  particleName == "triton" ||
410  particleName == "xi_c+" ||
411  particleName == "xi-" ) {
412 
413  ph->RegisterProcess(hmsc, particle);
414  ph->RegisterProcess(new G4hIonisation(), particle);
415  }
416  }
417 
418  // Nuclear stopping
419  pnuc->SetMaxKinEnergy(MeV);
420 
421  // Deexcitation
422  //
425 
426  G4EmModelActivator mact;
427  mact.ConstructProcess();
428 }
429 
430 //....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)
const G4String & GetParticleName() const
void SetHighEnergyLimit(G4double)
Definition: G4VEmModel.hh:725
void SetEmModel(G4VEmModel *, G4int index=1)
G4GLOB_DLL std::ostream G4cout
G4_DECLARE_PHYSCONSTR_FACTORY(G4EmLowEPPhysics)
static G4AntiProton * AntiProton()
Definition: G4AntiProton.cc:93
static G4PionMinus * PionMinusDefinition()
Definition: G4PionMinus.cc:93
#define aParticleIterator
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)
const G4String & GetPhysicsName() const
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)
static G4He3 * He3()
Definition: G4He3.cc:94
void SetAtomDeexcitation(G4VAtomDeexcitation *)
void SetFluo(G4bool val)