Geant4  10.01.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 86233 2014-11-07 17:21:03Z 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 
68 //#include "G4MuBremsstrahlungModel.hh"
69 //#include "G4MuPairProductionModel.hh"
70 //#include "G4hBremsstrahlungModel.hh"
71 //#include "G4hPairProductionModel.hh"
72 #include "G4SeltzerBergerModel.hh"
73 
74 // hadrons
75 #include "G4hMultipleScattering.hh"
76 #include "G4MscStepLimitType.hh"
77 
78 #include "G4hBremsstrahlung.hh"
79 #include "G4hPairProduction.hh"
80 
81 #include "G4hIonisation.hh"
82 #include "G4ionIonisation.hh"
83 #include "G4alphaIonisation.hh"
85 #include "G4NuclearStopping.hh"
86 
87 // msc models
88 #include "G4UrbanMscModel.hh"
89 #include "G4WentzelVIModel.hh"
90 #include "G4LowEWentzelVIModel.hh"
93 #include "G4CoulombScattering.hh"
94 
95 // interfaces
96 #include "G4LossTableManager.hh"
97 #include "G4UAtomicDeexcitation.hh"
98 #include "G4EmParameters.hh"
99 
100 // particles
101 
102 #include "G4Gamma.hh"
103 #include "G4Electron.hh"
104 #include "G4Positron.hh"
105 #include "G4MuonPlus.hh"
106 #include "G4MuonMinus.hh"
107 #include "G4PionPlus.hh"
108 #include "G4PionMinus.hh"
109 #include "G4KaonPlus.hh"
110 #include "G4KaonMinus.hh"
111 #include "G4Proton.hh"
112 #include "G4AntiProton.hh"
113 #include "G4Deuteron.hh"
114 #include "G4Triton.hh"
115 #include "G4He3.hh"
116 #include "G4Alpha.hh"
117 #include "G4GenericIon.hh"
118 
119 //
120 #include "G4PhysicsListHelper.hh"
121 #include "G4BuilderType.hh"
122 
123 // factory
125 //
127 
128 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
129 
131  : G4VPhysicsConstructor("G4EmLowEPPhysics"), verbose(ver)
132 {
134  param->SetVerbose(verbose);
135  param->SetMinEnergy(100*eV);
136  param->SetMaxEnergy(10*TeV);
137  param->SetNumberOfBinsPerDecade(20);
140 }
141 
142 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
143 
145  : G4VPhysicsConstructor("G4EmLowEPPhysics"), verbose(ver)
146 {
148  param->SetVerbose(verbose);
149  param->SetMinEnergy(100*eV);
150  param->SetMaxEnergy(10*TeV);
151  param->SetNumberOfBinsPerDecade(20);
154 }
155 
156 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
157 
159 {}
160 
161 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
162 
164 {
165 // gamma
166  G4Gamma::Gamma();
167 
168 // leptons
173 
174 // mesons
179 
180 // baryons
183 
184 // ions
187  G4He3::He3();
188  G4Alpha::Alpha();
190 }
191 
192 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
193 
195 {
197 
198  // muon & hadron bremsstrahlung and pair production
207 
208  // muon & hadron multiple scattering
210  mumsc->SetEmModel(new G4LowEWentzelVIModel());
213  pmsc->SetEmModel(new G4LowEWentzelVIModel());
216 
217  // nuclear stopping
218  G4NuclearStopping* ionnuc = new G4NuclearStopping();
219  G4NuclearStopping* pnuc = new G4NuclearStopping();
220 
221  // Add Livermore EM Processes
222  aParticleIterator->reset();
223 
224  while( (*aParticleIterator)() ){
225 
226  G4ParticleDefinition* particle = aParticleIterator->value();
227  G4String particleName = particle->GetParticleName();
228 
229  if(verbose > 1)
230  G4cout << "### " << GetPhysicsName() << " instantiates for "
231  << particleName << G4endl;
232 
233  if (particleName == "gamma") {
234 
235  // Photoelectric effect - Livermore model only
236  G4PhotoElectricEffect* thePhotoElectricEffect = new G4PhotoElectricEffect();
237  thePhotoElectricEffect->SetEmModel(new G4LivermorePhotoElectricModel(), 1);
238  ph->RegisterProcess(thePhotoElectricEffect, particle);
239 
240  // Compton scattering - Livermore model above 20 MeV, Monarsh's model below
241  G4ComptonScattering* theComptonScattering = new G4ComptonScattering();
242  theComptonScattering->SetEmModel(new G4LivermoreComptonModel(),1);
243  G4LowEPComptonModel* theLowEPComptonModel =
244  new G4LowEPComptonModel();
245  theLowEPComptonModel->SetHighEnergyLimit(20*MeV);
246  theComptonScattering->AddEmModel(0, theLowEPComptonModel);
247  ph->RegisterProcess(theComptonScattering, particle);
248 
249  // gamma conversion - Livermore model below 80 GeV
250  G4GammaConversion* theGammaConversion = new G4GammaConversion();
251  theGammaConversion->SetEmModel(new G4LivermoreGammaConversionModel(),1);
252  ph->RegisterProcess(theGammaConversion, particle);
253 
254  // default Rayleigh scattering is Livermore
255  G4RayleighScattering* theRayleigh = new G4RayleighScattering();
256  ph->RegisterProcess(theRayleigh, particle);
257 
258  } else if (particleName == "e-") {
259 
260  // multiple scattering
262  msc->SetRangeFactor(0.01);
263  msc->SetEmModel(new G4LowEWentzelVIModel(), 1);
264 
265  // Ionisation - Livermore should be used only for low energies
266  G4eIonisation* eIoni = new G4eIonisation();
267  G4LivermoreIonisationModel* theIoniLivermore = new
269  theIoniLivermore->SetHighEnergyLimit(0.1*MeV);
270  eIoni->AddEmModel(0, theIoniLivermore, new G4UniversalFluctuation() );
271  eIoni->SetStepFunction(0.2, 100*um); //
272 
273  // Bremsstrahlung
274  G4eBremsstrahlung* eBrem = new G4eBremsstrahlung();
275  G4VEmModel* theBrem = new G4SeltzerBergerModel();
276  theBrem->SetHighEnergyLimit(1*GeV);
277  theBrem->SetAngularDistribution(new G4Generator2BS());
278  eBrem->SetEmModel(theBrem, 1);
279 
280  // register processes
281  ph->RegisterProcess(msc, particle);
282  ph->RegisterProcess(eIoni, particle);
283  ph->RegisterProcess(eBrem, particle);
284 
285  } else if (particleName == "e+") {
286 
287  // multiple scattering
289  msc->SetRangeFactor(0.01);
290  msc->SetEmModel(new G4LowEWentzelVIModel(), 1);
291 
292  // Standard ionisation
293  G4eIonisation* eIoni = new G4eIonisation();
294  eIoni->SetStepFunction(0.2, 100*um);
295 
296  // Bremsstrahlung
297  G4eBremsstrahlung* eBrem = new G4eBremsstrahlung();
298  G4VEmModel* theBrem = new G4SeltzerBergerModel();
299  theBrem->SetHighEnergyLimit(1*GeV);
300  theBrem->SetAngularDistribution(new G4Generator2BS());
301  eBrem->SetEmModel(theBrem, 1);
302 
303  // register processes
304  ph->RegisterProcess(msc, particle);
305  ph->RegisterProcess(eIoni, particle);
306  ph->RegisterProcess(eBrem, particle);
307  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
308 
309  } else if (particleName == "mu+" ||
310  particleName == "mu-" ) {
311 
312  G4MuIonisation* muIoni = new G4MuIonisation();
313  muIoni->SetStepFunction(0.2, 50*um);
314 
315  ph->RegisterProcess(mumsc, particle);
316  ph->RegisterProcess(muIoni, particle);
317  ph->RegisterProcess(mub, particle);
318  ph->RegisterProcess(mup, particle);
319  //ph->RegisterProcess(new G4CoulombScattering(), particle);
320 
321  } else if (particleName == "alpha" ||
322  particleName == "He3" ) {
323 
324  G4ionIonisation* ionIoni = new G4ionIonisation();
325  ionIoni->SetStepFunction(0.1, 10*um);
326 
327  ph->RegisterProcess(hmsc, particle);
328  ph->RegisterProcess(ionIoni, particle);
329  ph->RegisterProcess(ionnuc, particle);
330 
331  } else if (particleName == "GenericIon") {
332 
333  G4ionIonisation* ionIoni = new G4ionIonisation();
334  ionIoni->SetEmModel(new G4IonParametrisedLossModel());
335  ionIoni->SetStepFunction(0.1, 1*um);
336 
337  ph->RegisterProcess(hmsc, particle);
338  ph->RegisterProcess(ionIoni, particle);
339  ph->RegisterProcess(ionnuc, particle);
340 
341  } else if (particleName == "pi+" ||
342  particleName == "pi-" ) {
343 
344  G4hIonisation* hIoni = new G4hIonisation();
345  hIoni->SetStepFunction(0.2, 50*um);
346 
347  ph->RegisterProcess(pimsc, particle);
348  ph->RegisterProcess(hIoni, particle);
349  ph->RegisterProcess(pib, particle);
350  ph->RegisterProcess(pip, particle);
351 
352  } else if (particleName == "kaon+" ||
353  particleName == "kaon-" ) {
354 
355  G4hIonisation* hIoni = new G4hIonisation();
356  hIoni->SetStepFunction(0.2, 50*um);
357 
358  ph->RegisterProcess(kmsc, particle);
359  ph->RegisterProcess(hIoni, particle);
360  ph->RegisterProcess(kb, particle);
361  ph->RegisterProcess(kp, particle);
362 
363  } else if (particleName == "proton" ||
364  particleName == "anti_proton") {
365 
366  G4hIonisation* hIoni = new G4hIonisation();
367  hIoni->SetStepFunction(0.2, 50*um);
368 
369  ph->RegisterProcess(pmsc, particle);
370  ph->RegisterProcess(hIoni, particle);
371  ph->RegisterProcess(pb, particle);
372  ph->RegisterProcess(pp, particle);
373  ph->RegisterProcess(pnuc, particle);
374 
375  } else if (particleName == "B+" ||
376  particleName == "B-" ||
377  particleName == "D+" ||
378  particleName == "D-" ||
379  particleName == "Ds+" ||
380  particleName == "Ds-" ||
381  particleName == "anti_He3" ||
382  particleName == "anti_alpha" ||
383  particleName == "anti_deuteron" ||
384  particleName == "anti_lambda_c+" ||
385  particleName == "anti_omega-" ||
386  particleName == "anti_sigma_c+" ||
387  particleName == "anti_sigma_c++" ||
388  particleName == "anti_sigma+" ||
389  particleName == "anti_sigma-" ||
390  particleName == "anti_triton" ||
391  particleName == "anti_xi_c+" ||
392  particleName == "anti_xi-" ||
393  particleName == "deuteron" ||
394  particleName == "lambda_c+" ||
395  particleName == "omega-" ||
396  particleName == "sigma_c+" ||
397  particleName == "sigma_c++" ||
398  particleName == "sigma+" ||
399  particleName == "sigma-" ||
400  particleName == "tau+" ||
401  particleName == "tau-" ||
402  particleName == "triton" ||
403  particleName == "xi_c+" ||
404  particleName == "xi-" ) {
405 
406  ph->RegisterProcess(hmsc, particle);
407  ph->RegisterProcess(new G4hIonisation(), particle);
408  }
409  }
410 
411  // Nuclear stopping
412  pnuc->SetMaxKinEnergy(MeV);
413 
414  // Deexcitation
415  //
418  de->SetFluo(true);
419 }
420 
421 //....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:193
void SetVerbose(G4int val)
static G4LossTableManager * Instance()
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:707
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:196
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:194
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:606
static G4PhysicsListHelper * GetPhysicsListHelper()
static G4EmParameters * Instance()
void SetEmModel(G4VEmModel *, G4int index=1)
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:197
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
G4EmLowEPPhysics(G4int ver=1)
void SetRangeFactor(G4double val)
static G4He3 * He3()
Definition: G4He3.cc:94
void SetAtomDeexcitation(G4VAtomDeexcitation *)