Geant4  10.01.p03
G4EmLivermorePhysics.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: G4EmLivermorePhysics.cc 86233 2014-11-07 17:21:03Z gcosmo $
27 
28 #include "G4EmLivermorePhysics.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"
40 
41 #include "G4GammaConversion.hh"
43 
44 #include "G4RayleighScattering.hh"
46 
47 // e+-
48 #include "G4eMultipleScattering.hh"
50 
51 #include "G4eIonisation.hh"
53 
54 #include "G4eBremsstrahlung.hh"
56 #include "G4Generator2BS.hh"
57 
58 // e+
59 #include "G4eplusAnnihilation.hh"
60 
61 // mu+-
63 #include "G4MuIonisation.hh"
64 #include "G4MuBremsstrahlung.hh"
65 #include "G4MuPairProduction.hh"
66 
71 
72 // hadrons
73 #include "G4hMultipleScattering.hh"
74 #include "G4MscStepLimitType.hh"
75 
76 #include "G4hBremsstrahlung.hh"
77 #include "G4hPairProduction.hh"
78 
79 #include "G4hIonisation.hh"
80 #include "G4ionIonisation.hh"
81 #include "G4alphaIonisation.hh"
83 #include "G4NuclearStopping.hh"
84 
85 // msc models
86 #include "G4UrbanMscModel.hh"
87 #include "G4WentzelVIModel.hh"
89 #include "G4CoulombScattering.hh"
91 
92 // interfaces
93 #include "G4LossTableManager.hh"
94 #include "G4UAtomicDeexcitation.hh"
95 #include "G4EmParameters.hh"
96 
97 // particles
98 
99 #include "G4Gamma.hh"
100 #include "G4Electron.hh"
101 #include "G4Positron.hh"
102 #include "G4MuonPlus.hh"
103 #include "G4MuonMinus.hh"
104 #include "G4PionPlus.hh"
105 #include "G4PionMinus.hh"
106 #include "G4KaonPlus.hh"
107 #include "G4KaonMinus.hh"
108 #include "G4Proton.hh"
109 #include "G4AntiProton.hh"
110 #include "G4Deuteron.hh"
111 #include "G4Triton.hh"
112 #include "G4He3.hh"
113 #include "G4Alpha.hh"
114 #include "G4GenericIon.hh"
115 
116 //
117 #include "G4PhysicsListHelper.hh"
118 #include "G4BuilderType.hh"
119 
120 // factory
122 //
124 
125 
126 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
127 
129  : G4VPhysicsConstructor("G4EmLivermorePhysics"), verbose(ver)
130 {
132  param->SetVerbose(verbose);
133  param->SetMinEnergy(100*eV);
134  param->SetMaxEnergy(10*TeV);
135  param->SetNumberOfBinsPerDecade(20);
138 }
139 
140 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
141 
143  : G4VPhysicsConstructor("G4EmLivermorePhysics"), verbose(ver)
144 {
146  param->SetVerbose(verbose);
147  param->SetMinEnergy(100*eV);
148  param->SetMaxEnergy(10*TeV);
149  param->SetNumberOfBinsPerDecade(20);
152 }
153 
154 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
155 
157 {}
158 
159 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
160 
162 {
163 // gamma
164  G4Gamma::Gamma();
165 
166 // leptons
171 
172 // mesons
177 
178 // baryons
181 
182 // ions
185  G4He3::He3();
186  G4Alpha::Alpha();
188 }
189 
190 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
191 
193 {
194  if(verbose > 1) {
195  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
196  }
198 
199  // muon & hadron bremsstrahlung and pair production
208 
209  // muon & hadron multiple scattering
211  mumsc->AddEmModel(0, new G4WentzelVIModel());
212  //G4hMultipleScattering* pimsc = new G4hMultipleScattering();
213  //pimsc->AddEmModel(0, new G4WentzelVIModel());
214  //G4hMultipleScattering* kmsc = new G4hMultipleScattering();
215  //kmsc->AddEmModel(0, new G4WentzelVIModel());
216  //G4hMultipleScattering* pmsc = new G4hMultipleScattering();
217  //pmsc->AddEmModel(0, new G4WentzelVIModel());
218  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
219 
220  // high energy limit for e+- scattering models
221  G4double highEnergyLimit = 100*MeV;
222 
223  // nuclear stopping
224  G4NuclearStopping* pnuc = new G4NuclearStopping();
225 
226  // Add Livermore EM Processes
227  aParticleIterator->reset();
228 
229  while( (*aParticleIterator)() ){
230 
231  G4ParticleDefinition* particle = aParticleIterator->value();
232  G4String particleName = particle->GetParticleName();
233 
234  if (particleName == "gamma") {
235 
236  // photoelectric effect - Livermore model only
237  G4PhotoElectricEffect* thePhotoElectricEffect = new G4PhotoElectricEffect();
238  thePhotoElectricEffect->SetEmModel(new G4LivermorePhotoElectricModel(), 1);
239  ph->RegisterProcess(thePhotoElectricEffect, particle);
240 
241  // Compton scattering - Livermore model only
242  G4ComptonScattering* theComptonScattering = new G4ComptonScattering();
243  theComptonScattering->SetEmModel(new G4LivermoreComptonModel(),1);
244  ph->RegisterProcess(theComptonScattering, particle);
245 
246  // gamma conversion - Livermore model below 80 GeV
247  G4GammaConversion* theGammaConversion = new G4GammaConversion();
248  theGammaConversion->SetEmModel(new G4LivermoreGammaConversionModel(),1);
249  ph->RegisterProcess(theGammaConversion, particle);
250 
251  // default Rayleigh scattering is Livermore
252  G4RayleighScattering* theRayleigh = new G4RayleighScattering();
253  ph->RegisterProcess(theRayleigh, particle);
254 
255  } else if (particleName == "e-") {
256 
257  // multiple scattering
260  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
261  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
262  msc1->SetHighEnergyLimit(highEnergyLimit);
263  msc2->SetLowEnergyLimit(highEnergyLimit);
264  msc->SetRangeFactor(0.01);
265  msc->AddEmModel(0, msc1);
266  msc->AddEmModel(0, msc2);
267 
270  ss->SetEmModel(ssm, 1);
271  ss->SetMinKinEnergy(highEnergyLimit);
272  ssm->SetLowEnergyLimit(highEnergyLimit);
273  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
274 
275  // Ionisation - Livermore should be used only for low energies
276  G4eIonisation* eIoni = new G4eIonisation();
277  G4LivermoreIonisationModel* theIoniLivermore = new
279  theIoniLivermore->SetHighEnergyLimit(0.1*MeV);
280  eIoni->AddEmModel(0, theIoniLivermore, new G4UniversalFluctuation() );
281  eIoni->SetStepFunction(0.2, 100*um); //
282 
283  // Bremsstrahlung
284  G4eBremsstrahlung* eBrem = new G4eBremsstrahlung();
285  G4VEmModel* theBremLivermore = new G4LivermoreBremsstrahlungModel();
286  theBremLivermore->SetHighEnergyLimit(1*GeV);
287  theBremLivermore->SetAngularDistribution(new G4Generator2BS());
288  eBrem->SetEmModel(theBremLivermore,1);
289 
290  // register processes
291  ph->RegisterProcess(msc, particle);
292  ph->RegisterProcess(eIoni, particle);
293  ph->RegisterProcess(eBrem, particle);
294  ph->RegisterProcess(ss, particle);
295 
296  } else if (particleName == "e+") {
297 
298  // multiple scattering
301  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
302  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
303  msc1->SetHighEnergyLimit(highEnergyLimit);
304  msc2->SetLowEnergyLimit(highEnergyLimit);
305  msc->SetRangeFactor(0.01);
306  msc->AddEmModel(0, msc1);
307  msc->AddEmModel(0, msc2);
308 
311  ss->SetEmModel(ssm, 1);
312  ss->SetMinKinEnergy(highEnergyLimit);
313  ssm->SetLowEnergyLimit(highEnergyLimit);
314  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
315 
316  // ionisation
317  G4eIonisation* eIoni = new G4eIonisation();
318  eIoni->SetStepFunction(0.2, 100*um);
319 
320  // register processes
321  ph->RegisterProcess(msc, particle);
322  ph->RegisterProcess(eIoni, particle);
323  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
324  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
325  ph->RegisterProcess(ss, particle);
326 
327  } else if (particleName == "mu+" ||
328  particleName == "mu-" ) {
329 
330  G4MuIonisation* muIoni = new G4MuIonisation();
331  muIoni->SetStepFunction(0.2, 50*um);
332 
333  ph->RegisterProcess(mumsc, particle);
334  ph->RegisterProcess(muIoni, particle);
335  ph->RegisterProcess(mub, particle);
336  ph->RegisterProcess(mup, particle);
337  ph->RegisterProcess(new G4CoulombScattering(), particle);
338 
339  } else if (particleName == "alpha" ||
340  particleName == "He3" ) {
341 
343  G4ionIonisation* ionIoni = new G4ionIonisation();
344  ionIoni->SetStepFunction(0.1, 10*um);
345 
346  ph->RegisterProcess(msc, particle);
347  ph->RegisterProcess(ionIoni, particle);
348  ph->RegisterProcess(pnuc, particle);
349 
350  } else if (particleName == "GenericIon") {
351 
352  G4ionIonisation* ionIoni = new G4ionIonisation();
353  ionIoni->SetEmModel(new G4IonParametrisedLossModel());
354  ionIoni->SetStepFunction(0.1, 1*um);
355 
356  ph->RegisterProcess(hmsc, particle);
357  ph->RegisterProcess(ionIoni, particle);
358  ph->RegisterProcess(pnuc, particle);
359 
360  } else if (particleName == "pi+" ||
361  particleName == "pi-" ) {
362 
364  G4hIonisation* hIoni = new G4hIonisation();
365  hIoni->SetStepFunction(0.2, 50*um);
366 
367  ph->RegisterProcess(pimsc, particle);
368  ph->RegisterProcess(hIoni, particle);
369  ph->RegisterProcess(pib, particle);
370  ph->RegisterProcess(pip, particle);
371 
372  } else if (particleName == "kaon+" ||
373  particleName == "kaon-" ) {
374 
376  G4hIonisation* hIoni = new G4hIonisation();
377  hIoni->SetStepFunction(0.2, 50*um);
378 
379  ph->RegisterProcess(kmsc, particle);
380  ph->RegisterProcess(hIoni, particle);
381  ph->RegisterProcess(kb, particle);
382  ph->RegisterProcess(kp, particle);
383 
384  } else if (particleName == "proton" ||
385  particleName == "anti_proton") {
386 
388  G4hIonisation* hIoni = new G4hIonisation();
389  hIoni->SetStepFunction(0.2, 50*um);
390 
391  ph->RegisterProcess(pmsc, particle);
392  ph->RegisterProcess(hIoni, particle);
393  ph->RegisterProcess(pb, particle);
394  ph->RegisterProcess(pp, particle);
395  ph->RegisterProcess(pnuc, particle);
396 
397  } else if (particleName == "B+" ||
398  particleName == "B-" ||
399  particleName == "D+" ||
400  particleName == "D-" ||
401  particleName == "Ds+" ||
402  particleName == "Ds-" ||
403  particleName == "anti_He3" ||
404  particleName == "anti_alpha" ||
405  particleName == "anti_deuteron" ||
406  particleName == "anti_lambda_c+" ||
407  particleName == "anti_omega-" ||
408  particleName == "anti_sigma_c+" ||
409  particleName == "anti_sigma_c++" ||
410  particleName == "anti_sigma+" ||
411  particleName == "anti_sigma-" ||
412  particleName == "anti_triton" ||
413  particleName == "anti_xi_c+" ||
414  particleName == "anti_xi-" ||
415  particleName == "deuteron" ||
416  particleName == "lambda_c+" ||
417  particleName == "omega-" ||
418  particleName == "sigma_c+" ||
419  particleName == "sigma_c++" ||
420  particleName == "sigma+" ||
421  particleName == "sigma-" ||
422  particleName == "tau+" ||
423  particleName == "tau-" ||
424  particleName == "triton" ||
425  particleName == "xi_c+" ||
426  particleName == "xi-" ) {
427 
428  ph->RegisterProcess(hmsc, particle);
429  ph->RegisterProcess(new G4hIonisation(), particle);
430  ph->RegisterProcess(pnuc, particle);
431  }
432  }
433 
434  // Nuclear stopping
435  pnuc->SetMaxKinEnergy(MeV);
436 
437  // Deexcitation
438  //
441  de->SetFluo(true);
442 }
443 
444 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
G4_DECLARE_PHYSCONSTR_FACTORY(G4EmLivermorePhysics)
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)
virtual void ConstructParticle()
static G4LossTableManager * Instance()
static G4KaonMinus * KaonMinusDefinition()
Definition: G4KaonMinus.cc:108
void SetStepFunction(G4double v1, G4double v2)
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
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
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
void SetActivationLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:728
static const double eV
Definition: G4SIunits.hh:194
static G4Positron * Positron()
Definition: G4Positron.cc:94
void SetMaxKinEnergy(G4double e)
void SetMinEnergy(G4double val)
void AddEmModel(G4int order, G4VEmModel *, const G4Region *region=0)
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
void SetMinKinEnergy(G4double e)
double G4double
Definition: G4Types.hh:76
void SetLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:714
void SetRangeFactor(G4double val)
static G4He3 * He3()
Definition: G4He3.cc:94
void SetAtomDeexcitation(G4VAtomDeexcitation *)
void SetStepLimitType(G4MscStepLimitType val)