Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4EmPenelopePhysics.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: G4EmPenelopePhysics.cc 99938 2016-10-12 08:06:52Z gcosmo $
27 
28 #include "G4EmPenelopePhysics.hh"
29 #include "G4ParticleDefinition.hh"
30 #include "G4SystemOfUnits.hh"
31 
32 // *** Processes and models
33 
34 // gamma
35 
36 #include "G4PhotoElectricEffect.hh"
38 
39 #include "G4ComptonScattering.hh"
41 
42 #include "G4GammaConversion.hh"
44 
45 #include "G4RayleighScattering.hh"
47 
48 // e- and e+
49 
50 #include "G4eMultipleScattering.hh"
52 
53 #include "G4eIonisation.hh"
55 
56 #include "G4eBremsstrahlung.hh"
58 
59 // e+ only
60 
61 #include "G4eplusAnnihilation.hh"
63 
64 // mu
65 
67 #include "G4MuIonisation.hh"
68 #include "G4MuBremsstrahlung.hh"
69 #include "G4MuPairProduction.hh"
70 
75 
76 // hadrons
77 
78 #include "G4hMultipleScattering.hh"
79 #include "G4MscStepLimitType.hh"
80 
81 #include "G4hBremsstrahlung.hh"
82 #include "G4hPairProduction.hh"
83 
84 #include "G4hIonisation.hh"
85 #include "G4ionIonisation.hh"
86 #include "G4alphaIonisation.hh"
88 #include "G4NuclearStopping.hh"
89 
90 // msc models
91 #include "G4UrbanMscModel.hh"
93 #include "G4WentzelVIModel.hh"
94 #include "G4CoulombScattering.hh"
96 //
97 
98 #include "G4LossTableManager.hh"
99 #include "G4VAtomDeexcitation.hh"
100 #include "G4UAtomicDeexcitation.hh"
101 
102 // particles
103 
104 #include "G4Gamma.hh"
105 #include "G4Electron.hh"
106 #include "G4Positron.hh"
107 #include "G4MuonPlus.hh"
108 #include "G4MuonMinus.hh"
109 #include "G4PionPlus.hh"
110 #include "G4PionMinus.hh"
111 #include "G4KaonPlus.hh"
112 #include "G4KaonMinus.hh"
113 #include "G4Proton.hh"
114 #include "G4AntiProton.hh"
115 #include "G4Deuteron.hh"
116 #include "G4Triton.hh"
117 #include "G4He3.hh"
118 #include "G4Alpha.hh"
119 #include "G4GenericIon.hh"
120 
121 //
122 #include "G4PhysicsListHelper.hh"
123 #include "G4BuilderType.hh"
124 #include "G4EmModelActivator.hh"
125 
126 // factory
128 //
130 
131 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
132 
134  : G4VPhysicsConstructor("G4EmPenelope"), verbose(ver)
135 {
137  param->SetDefaults();
138  param->SetVerbose(verbose);
139  param->SetMinEnergy(100*eV);
140  param->SetMaxEnergy(10*TeV);
141  param->SetLowestElectronEnergy(100*eV);
142  param->SetNumberOfBinsPerDecade(20);
143  param->SetMscRangeFactor(0.02);
145  param->SetMuHadLateralDisplacement(true);
146  param->SetFluo(true);
147  param->SetPIXEElectronCrossSectionModel("Penelope");
149 }
150 
151 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
152 
154 {}
155 
156 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
157 
159 {
160  // gamma
161  G4Gamma::Gamma();
162 
163  // leptons
168 
169  // mesons
174 
175  // baryons
178 
179  // ions
182  G4He3::He3();
183  G4Alpha::Alpha();
185 }
186 
187 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
188 
190 {
191  if(verbose > 1) {
192  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
193  }
195 
196  // muon & hadron bremsstrahlung and pair production
205 
206  // muon & hadron multiple scattering
208  mumsc->AddEmModel(0, new G4WentzelVIModel());
209  //G4MuMultipleScattering* pimsc = new G4MuMultipleScattering();
210  //pimsc->AddEmModel(0, new G4WentzelVIModel());
211  //G4MuMultipleScattering* kmsc = new G4MuMultipleScattering();
212  //kmsc->AddEmModel(0, new G4WentzelVIModel());
213  //G4MuMultipleScattering* pmsc = new G4MuMultipleScattering();
214  //pmsc->AddEmModel(0, new G4WentzelVIModel());
215  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
216 
217  // high energy limit for e+- scattering models
218  G4double highEnergyLimit = 100*MeV;
219 
220  // nuclear stopping
221  G4NuclearStopping* pnuc = new G4NuclearStopping();
222 
223  // Add Penelope EM Processes
224  auto myParticleIterator=GetParticleIterator();
225  myParticleIterator->reset();
226 
227  while( (*myParticleIterator)() ){
228 
229  G4ParticleDefinition* particle = myParticleIterator->value();
230  G4String particleName = particle->GetParticleName();
231 
232  //Applicability range for Penelope models
233  //for higher energies, the Standard models are used
234  G4double PenelopeHighEnergyLimit = 1.0*GeV;
235 
236  if (particleName == "gamma") {
237 
238  //Photo-electric effect
239  G4PhotoElectricEffect* thePhotoElectricEffect = new G4PhotoElectricEffect();
240  G4PenelopePhotoElectricModel* thePEPenelopeModel = new
242  thePEPenelopeModel->SetHighEnergyLimit(PenelopeHighEnergyLimit);
243  thePhotoElectricEffect->SetEmModel(thePEPenelopeModel, 1);
244  ph->RegisterProcess(thePhotoElectricEffect, particle);
245 
246  //Compton scattering
247  G4ComptonScattering* theComptonScattering = new G4ComptonScattering();
248  G4PenelopeComptonModel* theComptonPenelopeModel =
250  theComptonPenelopeModel->SetHighEnergyLimit(PenelopeHighEnergyLimit);
251  theComptonScattering->SetEmModel(theComptonPenelopeModel, 1);
252  ph->RegisterProcess(theComptonScattering, particle);
253 
254  //Gamma conversion
255  G4GammaConversion* theGammaConversion = new G4GammaConversion();
256  G4PenelopeGammaConversionModel* theGCPenelopeModel =
258  theGammaConversion->SetEmModel(theGCPenelopeModel,1);
259  ph->RegisterProcess(theGammaConversion, particle);
260 
261  //Rayleigh scattering
262  G4RayleighScattering* theRayleigh = new G4RayleighScattering();
263  G4PenelopeRayleighModel* theRayleighPenelopeModel =
265  //theRayleighPenelopeModel->SetHighEnergyLimit(PenelopeHighEnergyLimit);
266  theRayleigh->SetEmModel(theRayleighPenelopeModel, 1);
267  ph->RegisterProcess(theRayleigh, particle);
268 
269  } else if (particleName == "e-") {
270 
271  // multiple scattering
273  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
274  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
275  msc1->SetHighEnergyLimit(highEnergyLimit);
276  msc2->SetLowEnergyLimit(highEnergyLimit);
277  msc->AddEmModel(0, msc1);
278  msc->AddEmModel(0, msc2);
279 
282  ss->SetEmModel(ssm, 1);
283  ss->SetMinKinEnergy(highEnergyLimit);
284  ssm->SetLowEnergyLimit(highEnergyLimit);
285  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
286 
287  //Ionisation
288  G4eIonisation* eIoni = new G4eIonisation();
289  G4PenelopeIonisationModel* theIoniPenelope =
291  theIoniPenelope->SetHighEnergyLimit(PenelopeHighEnergyLimit);
292  eIoni->AddEmModel(0,theIoniPenelope,new G4UniversalFluctuation());
293  eIoni->SetStepFunction(0.2, 100*um); //
294 
295  //Bremsstrahlung
296  G4eBremsstrahlung* eBrem = new G4eBremsstrahlung();
297  G4PenelopeBremsstrahlungModel* theBremPenelope = new
299  theBremPenelope->SetHighEnergyLimit(PenelopeHighEnergyLimit);
300  eBrem->AddEmModel(0,theBremPenelope);
301 
302  // register processes
303  ph->RegisterProcess(msc, particle);
304  ph->RegisterProcess(eIoni, particle);
305  ph->RegisterProcess(eBrem, particle);
306  ph->RegisterProcess(ss, particle);
307 
308  } else if (particleName == "e+") {
309 
310  // multiple scattering
312  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
313  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
314  msc1->SetHighEnergyLimit(highEnergyLimit);
315  msc2->SetLowEnergyLimit(highEnergyLimit);
316  msc->AddEmModel(0, msc1);
317  msc->AddEmModel(0, msc2);
318 
321  ss->SetEmModel(ssm, 1);
322  ss->SetMinKinEnergy(highEnergyLimit);
323  ssm->SetLowEnergyLimit(highEnergyLimit);
324  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
325 
326  //Ionisation
327  G4eIonisation* eIoni = new G4eIonisation();
328  G4PenelopeIonisationModel* theIoniPenelope =
330  theIoniPenelope->SetHighEnergyLimit(PenelopeHighEnergyLimit);
331  eIoni->AddEmModel(0,theIoniPenelope,new G4UniversalFluctuation());
332  eIoni->SetStepFunction(0.2, 100*um); //
333 
334  //Bremsstrahlung
335  G4eBremsstrahlung* eBrem = new G4eBremsstrahlung();
336  G4PenelopeBremsstrahlungModel* theBremPenelope = new
338  theBremPenelope->SetHighEnergyLimit(PenelopeHighEnergyLimit);
339  eBrem->AddEmModel(0,theBremPenelope);
340 
341  //Annihilation
343  G4PenelopeAnnihilationModel* theAnnPenelope = new
345  theAnnPenelope->SetHighEnergyLimit(PenelopeHighEnergyLimit);
346  eAnni->AddEmModel(0,theAnnPenelope);
347 
348  // register processes
349  ph->RegisterProcess(msc, particle);
350  ph->RegisterProcess(eIoni, particle);
351  ph->RegisterProcess(eBrem, particle);
352  ph->RegisterProcess(eAnni, particle);
353  ph->RegisterProcess(ss, particle);
354 
355  } else if (particleName == "mu+" ||
356  particleName == "mu-" ) {
357 
358  G4MuIonisation* muIoni = new G4MuIonisation();
359  muIoni->SetStepFunction(0.2, 50*um);
360 
361  ph->RegisterProcess(mumsc, particle);
362  ph->RegisterProcess(muIoni, particle);
363  ph->RegisterProcess(mub, particle);
364  ph->RegisterProcess(mup, particle);
365  ph->RegisterProcess(new G4CoulombScattering(), particle);
366 
367  } else if (particleName == "alpha" ||
368  particleName == "He3" ) {
369 
371  G4ionIonisation* ionIoni = new G4ionIonisation();
372  ionIoni->SetStepFunction(0.1, 10*um);
373 
374  ph->RegisterProcess(msc, particle);
375  ph->RegisterProcess(ionIoni, particle);
376  ph->RegisterProcess(pnuc, particle);
377 
378  } else if (particleName == "GenericIon") {
379 
380  G4ionIonisation* ionIoni = new G4ionIonisation();
381  ionIoni->SetEmModel(new G4IonParametrisedLossModel());
382  ionIoni->SetStepFunction(0.1, 1*um);
383 
384  ph->RegisterProcess(hmsc, particle);
385  ph->RegisterProcess(ionIoni, particle);
386  ph->RegisterProcess(pnuc, particle);
387 
388  } else if (particleName == "pi+" ||
389  particleName == "pi-" ) {
390 
392  G4hIonisation* hIoni = new G4hIonisation();
393  hIoni->SetStepFunction(0.2, 50*um);
394 
395  ph->RegisterProcess(pimsc, particle);
396  ph->RegisterProcess(hIoni, particle);
397  ph->RegisterProcess(pib, particle);
398  ph->RegisterProcess(pip, particle);
399 
400  } else if (particleName == "kaon+" ||
401  particleName == "kaon-" ) {
402 
404  G4hIonisation* hIoni = new G4hIonisation();
405  hIoni->SetStepFunction(0.2, 50*um);
406 
407  ph->RegisterProcess(kmsc, particle);
408  ph->RegisterProcess(hIoni, particle);
409  ph->RegisterProcess(kb, particle);
410  ph->RegisterProcess(kp, particle);
411 
412  } else if (particleName == "proton" ||
413  particleName == "anti_proton") {
414 
416  G4hIonisation* hIoni = new G4hIonisation();
417  hIoni->SetStepFunction(0.2, 50*um);
418 
419  ph->RegisterProcess(pmsc, particle);
420  ph->RegisterProcess(hIoni, particle);
421  ph->RegisterProcess(pb, particle);
422  ph->RegisterProcess(pp, particle);
423  ph->RegisterProcess(pnuc, particle);
424 
425  } else if (particleName == "B+" ||
426  particleName == "B-" ||
427  particleName == "D+" ||
428  particleName == "D-" ||
429  particleName == "Ds+" ||
430  particleName == "Ds-" ||
431  particleName == "anti_He3" ||
432  particleName == "anti_alpha" ||
433  particleName == "anti_deuteron" ||
434  particleName == "anti_lambda_c+" ||
435  particleName == "anti_omega-" ||
436  particleName == "anti_sigma_c+" ||
437  particleName == "anti_sigma_c++" ||
438  particleName == "anti_sigma+" ||
439  particleName == "anti_sigma-" ||
440  particleName == "anti_triton" ||
441  particleName == "anti_xi_c+" ||
442  particleName == "anti_xi-" ||
443  particleName == "deuteron" ||
444  particleName == "lambda_c+" ||
445  particleName == "omega-" ||
446  particleName == "sigma_c+" ||
447  particleName == "sigma_c++" ||
448  particleName == "sigma+" ||
449  particleName == "sigma-" ||
450  particleName == "tau+" ||
451  particleName == "tau-" ||
452  particleName == "triton" ||
453  particleName == "xi_c+" ||
454  particleName == "xi-" ) {
455 
456  ph->RegisterProcess(hmsc, particle);
457  ph->RegisterProcess(new G4hIonisation(), particle);
458  }
459  }
460 
461  // Nuclear stopping
462  pnuc->SetMaxKinEnergy(MeV);
463 
464  // Deexcitation
465  //
466  G4VAtomDeexcitation* deexcitation = new G4UAtomicDeexcitation();
468 
470 }
471 
472 //....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)
void SetMscStepLimitType(G4MscStepLimitType val)
static G4KaonMinus * KaonMinusDefinition()
Definition: G4KaonMinus.cc:108
virtual void ConstructProcess()
void SetPIXEElectronCrossSectionModel(const G4String &)
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
void SetMscRangeFactor(G4double val)
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
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
void SetActivationLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:745
void AddEmModel(G4int, G4VEmModel *, const G4Region *region=nullptr)
static G4Positron * Positron()
Definition: G4Positron.cc:94
void SetMaxKinEnergy(G4double e)
void SetMuHadLateralDisplacement(G4bool val)
void SetMinEnergy(G4double val)
static G4PhysicsListHelper * GetPhysicsListHelper()
static G4EmParameters * Instance()
void SetEmModel(G4VEmModel *, G4int index=1)
static constexpr double GeV
Definition: G4SIunits.hh:217
void AddEmModel(G4int order, G4VEmModel *, const G4Region *region=nullptr)
static G4MuonMinus * MuonMinus()
Definition: G4MuonMinus.cc:100
static G4Electron * Electron()
Definition: G4Electron.cc:94
#define G4endl
Definition: G4ios.hh:61
virtual void ConstructParticle()
static constexpr double MeV
Definition: G4SIunits.hh:214
G4EmPenelopePhysics(G4int ver=1, const G4String &name="")
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
void SetMinKinEnergy(G4double e)
double G4double
Definition: G4Types.hh:76
void SetLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:731
static G4He3 * He3()
Definition: G4He3.cc:94
void SetAtomDeexcitation(G4VAtomDeexcitation *)
void SetFluo(G4bool val)
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)