Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4EmStandardPhysics_option4.cc
이 파일의 문서화 페이지로 가기
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: G4EmStandardPhysics_option4.cc 109526 2018-04-30 07:11:52Z gcosmo $
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName: G4EmStandardPhysics_option4
31 //
32 // Author: V.Ivanchenko 28.09.2012 from Option3 physics constructor
33 //
34 // Modified:
35 //
36 // 22.09.17 M.Novak: change msc model for e-/e+ below 100 MeV from Urban+
37 // UseDistanceToBoundary stepping to GS + Mott-correction + error
38 // -free stepping.
39 //
40 //----------------------------------------------------------------------------
41 //
42 
44 
45 #include "G4SystemOfUnits.hh"
46 #include "G4ParticleDefinition.hh"
47 #include "G4LossTableManager.hh"
48 #include "G4EmParameters.hh"
49 
50 #include "G4ComptonScattering.hh"
51 #include "G4GammaConversion.hh"
52 #include "G4PhotoElectricEffect.hh"
53 #include "G4RayleighScattering.hh"
54 #include "G4PEEffectFluoModel.hh"
55 #include "G4KleinNishinaModel.hh"
56 #include "G4LowEPComptonModel.hh"
59 
60 #include "G4eMultipleScattering.hh"
62 #include "G4hMultipleScattering.hh"
63 #include "G4MscStepLimitType.hh"
64 #include "G4UrbanMscModel.hh"
66 #include "G4DummyModel.hh"
67 #include "G4WentzelVIModel.hh"
68 #include "G4CoulombScattering.hh"
70 
71 #include "G4eIonisation.hh"
72 #include "G4eBremsstrahlung.hh"
73 #include "G4Generator2BS.hh"
74 #include "G4Generator2BN.hh"
75 #include "G4SeltzerBergerModel.hh"
78 
79 #include "G4eplusAnnihilation.hh"
80 #include "G4UAtomicDeexcitation.hh"
81 
82 #include "G4MuIonisation.hh"
83 #include "G4MuBremsstrahlung.hh"
84 #include "G4MuPairProduction.hh"
85 #include "G4hBremsstrahlung.hh"
86 #include "G4hPairProduction.hh"
87 #include "G4ePairProduction.hh"
88 
93 
94 #include "G4hIonisation.hh"
95 #include "G4ionIonisation.hh"
97 #include "G4NuclearStopping.hh"
98 
99 #include "G4ParticleTable.hh"
100 #include "G4Gamma.hh"
101 #include "G4Electron.hh"
102 #include "G4Positron.hh"
103 #include "G4MuonPlus.hh"
104 #include "G4MuonMinus.hh"
105 #include "G4PionPlus.hh"
106 #include "G4PionMinus.hh"
107 #include "G4KaonPlus.hh"
108 #include "G4KaonMinus.hh"
109 #include "G4Proton.hh"
110 #include "G4AntiProton.hh"
111 #include "G4Deuteron.hh"
112 #include "G4Triton.hh"
113 #include "G4He3.hh"
114 #include "G4Alpha.hh"
115 #include "G4GenericIon.hh"
116 
117 #include "G4PhysicsListHelper.hh"
118 #include "G4BuilderType.hh"
119 #include "G4EmModelActivator.hh"
120 
121 // factory
123 //
125 
126 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
127 
129  const G4String&)
130  : G4VPhysicsConstructor("G4EmStandard_opt4"), verbose(ver)
131 {
133  param->SetDefaults();
134  param->SetVerbose(verbose);
135  param->SetMinEnergy(100*eV);
136  param->SetLowestElectronEnergy(100*eV);
137  param->SetNumberOfBinsPerDecade(20);
139  param->SetUseMottCorrection(true); // use Mott-correction for e-/e+ msc gs
140  param->SetMscStepLimitType(fUseSafetyPlus); // error-free stepping for e-/e+ msc gs
141  param->SetMscSkin(3); // error-free stepping for e-/e+ msc gs
142  param->SetMscRangeFactor(0.2); // error-free stepping for e-/e+ msc gs
143  param->SetMuHadLateralDisplacement(true);
144  param->SetAugerCascade(true);
146 }
147 
148 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
149 
151 {}
152 
153 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
154 
156 {
157  // gamma
158  G4Gamma::Gamma();
159 
160  // leptons
165 
166  // mesons
171 
172  // barions
175 
176  // ions
179  G4He3::He3();
180  G4Alpha::Alpha();
182 }
183 
184 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
185 
187 {
188  if(verbose > 1) {
189  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
190  }
192 
193  // muon & hadron bremsstrahlung and pair production
203 
204  // muon & hadron multiple scattering
206  mumsc->SetEmModel(new G4WentzelVIModel());
208 
210  pimsc->SetEmModel(new G4WentzelVIModel());
212 
214  kmsc->SetEmModel(new G4WentzelVIModel());
216 
217  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
218 
219  // energy limits for e+- scattering models
220  G4double highEnergyLimit = G4EmParameters::Instance()->MscEnergyLimit();
221  // energy limits for e+- ionisation models
222  G4double penEnergyLimit = 1*MeV;
223 
224  // nuclear stopping
225  G4NuclearStopping* pnuc = new G4NuclearStopping();
226  G4NuclearStopping* inuc = new G4NuclearStopping();
227 
228  // Add standard EM Processes
230  for(const auto& particleName : partList.PartNames()) {
231  G4ParticleDefinition* particle = table->FindParticle(particleName);
232  if (!particle) { continue; }
233  if (particleName == "gamma") {
234 
235  // Photoelectric
237  G4VEmModel* theLivermorePEModel = new G4LivermorePhotoElectricModel();
238  pe->SetEmModel(theLivermorePEModel);
239  ph->RegisterProcess(pe, particle);
240 
241  // Compton scattering
243  cs->SetEmModel(new G4KleinNishinaModel());
244  G4VEmModel* theLowEPComptonModel = new G4LowEPComptonModel();
245  theLowEPComptonModel->SetHighEnergyLimit(20*MeV);
246  cs->AddEmModel(0, theLowEPComptonModel);
247  ph->RegisterProcess(cs, particle);
248 
249  // Gamma conversion
251  G4VEmModel* thePenelopeGCModel = new G4PenelopeGammaConversionModel();
252  thePenelopeGCModel->SetHighEnergyLimit(1*GeV);
253  gc->SetEmModel(thePenelopeGCModel);
254  ph->RegisterProcess(gc, particle);
255 
256  // Rayleigh scattering
257  ph->RegisterProcess(new G4RayleighScattering(), particle);
258 
259  } else if (particleName == "e-") {
260 
261  // multiple scattering
263  // e-/e+ msc gs with Mott-correction
264  // (Mott-correction is set through G4EmParameters)
266  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
267  msc1->SetHighEnergyLimit(highEnergyLimit);
268  msc2->SetLowEnergyLimit(highEnergyLimit);
269  msc->SetEmModel(msc1);
270  msc->SetEmModel(msc2);
271 
274  ss->SetEmModel(ssm);
275  ss->SetMinKinEnergy(highEnergyLimit);
276  ssm->SetLowEnergyLimit(highEnergyLimit);
277  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
278 
279  // ionisation
280  G4eIonisation* eIoni = new G4eIonisation();
281  eIoni->SetStepFunction(0.2, 10*um);
283  pen->SetHighEnergyLimit(penEnergyLimit);
284  eIoni->AddEmModel(0, pen, new G4UniversalFluctuation());
285 
286  // bremsstrahlung
287  G4eBremsstrahlung* brem = new G4eBremsstrahlung();
292  brem->SetEmModel(br1);
293  brem->SetEmModel(br2);
294  br2->SetLowEnergyLimit(GeV);
295 
296  // register processes
297  ph->RegisterProcess(msc, particle);
298  ph->RegisterProcess(eIoni, particle);
299  ph->RegisterProcess(brem, particle);
300  ph->RegisterProcess(ee, particle);
301  ph->RegisterProcess(ss, particle);
302 
303  } else if (particleName == "e+") {
304 
305  // multiple scattering
307  // e-/e+ msc gs with Mott-correction
308  // (Mott-correction is set through G4EmParameters)
310  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
311  msc1->SetHighEnergyLimit(highEnergyLimit);
312  msc2->SetLowEnergyLimit(highEnergyLimit);
313  msc->SetEmModel(msc1);
314  msc->SetEmModel(msc2);
315 
318  ss->SetEmModel(ssm);
319  ss->SetMinKinEnergy(highEnergyLimit);
320  ssm->SetLowEnergyLimit(highEnergyLimit);
321  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
322 
323  // ionisation
324  G4eIonisation* eIoni = new G4eIonisation();
325  eIoni->SetStepFunction(0.2, 10*um);
327  pen->SetHighEnergyLimit(penEnergyLimit);
328  eIoni->AddEmModel(0, pen, new G4UniversalFluctuation());
329 
330  // bremsstrahlung
331  G4eBremsstrahlung* brem = new G4eBremsstrahlung();
336  brem->SetEmModel(br1);
337  brem->SetEmModel(br2);
338  br2->SetLowEnergyLimit(GeV);
339 
340  // register processes
341  ph->RegisterProcess(msc, particle);
342  ph->RegisterProcess(eIoni, particle);
343  ph->RegisterProcess(brem, particle);
344  ph->RegisterProcess(ee, particle);
345  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
346  ph->RegisterProcess(ss, particle);
347 
348  } else if (particleName == "mu+" ||
349  particleName == "mu-" ) {
350 
351  G4MuIonisation* muIoni = new G4MuIonisation();
352  muIoni->SetStepFunction(0.2, 10*um);
353 
354  ph->RegisterProcess(mumsc, particle);
355  ph->RegisterProcess(muIoni, particle);
356  ph->RegisterProcess(mub, particle);
357  ph->RegisterProcess(mup, particle);
358  ph->RegisterProcess(muss, particle);
359 
360  } else if (particleName == "alpha" ||
361  particleName == "He3") {
362 
364  G4ionIonisation* ionIoni = new G4ionIonisation();
365  ionIoni->SetStepFunction(0.1, 10*um);
366 
367  ph->RegisterProcess(msc, particle);
368  ph->RegisterProcess(ionIoni, particle);
369  ph->RegisterProcess(pnuc, particle);
370 
371  } else if (particleName == "GenericIon") {
372 
373  G4ionIonisation* ionIoni = new G4ionIonisation();
374  ionIoni->SetEmModel(new G4IonParametrisedLossModel());
375  ionIoni->SetStepFunction(0.1, 1*um);
376 
377  ph->RegisterProcess(hmsc, particle);
378  ph->RegisterProcess(ionIoni, particle);
379  ph->RegisterProcess(inuc, particle);
380 
381  } else if (particleName == "pi+" ||
382  particleName == "pi-" ) {
383 
384  G4hIonisation* hIoni = new G4hIonisation();
385  hIoni->SetStepFunction(0.2, 10*um);
386 
387  ph->RegisterProcess(pimsc, particle);
388  ph->RegisterProcess(hIoni, particle);
389  ph->RegisterProcess(pib, particle);
390  ph->RegisterProcess(pip, particle);
391  ph->RegisterProcess(piss, particle);
392 
393  } else if (particleName == "kaon+" ||
394  particleName == "kaon-" ) {
395 
396  G4hIonisation* hIoni = new G4hIonisation();
397  hIoni->SetStepFunction(0.2, 10*um);
398 
399  ph->RegisterProcess(kmsc, particle);
400  ph->RegisterProcess(hIoni, particle);
401  ph->RegisterProcess(kb, particle);
402  ph->RegisterProcess(kp, particle);
403  ph->RegisterProcess(kss, particle);
404 
405  } else if (particleName == "proton" ||
406  particleName == "anti_proton") {
407 
409  pmsc->SetEmModel(new G4WentzelVIModel());
410  G4hIonisation* hIoni = new G4hIonisation();
411  hIoni->SetStepFunction(0.1, 10*um);
412 
413  ph->RegisterProcess(pmsc, particle);
414  ph->RegisterProcess(hIoni, particle);
415  ph->RegisterProcess(pb, particle);
416  ph->RegisterProcess(pp, particle);
417  ph->RegisterProcess(new G4CoulombScattering(), particle);
418  ph->RegisterProcess(pnuc, particle);
419 
420  } else if (particleName == "B+" ||
421  particleName == "B-" ||
422  particleName == "D+" ||
423  particleName == "D-" ||
424  particleName == "Ds+" ||
425  particleName == "Ds-" ||
426  particleName == "anti_He3" ||
427  particleName == "anti_alpha" ||
428  particleName == "anti_deuteron" ||
429  particleName == "anti_lambda_c+" ||
430  particleName == "anti_omega-" ||
431  particleName == "anti_sigma_c+" ||
432  particleName == "anti_sigma_c++" ||
433  particleName == "anti_sigma+" ||
434  particleName == "anti_sigma-" ||
435  particleName == "anti_triton" ||
436  particleName == "anti_xi_c+" ||
437  particleName == "anti_xi-" ||
438  particleName == "deuteron" ||
439  particleName == "lambda_c+" ||
440  particleName == "omega-" ||
441  particleName == "sigma_c+" ||
442  particleName == "sigma_c++" ||
443  particleName == "sigma+" ||
444  particleName == "sigma-" ||
445  particleName == "tau+" ||
446  particleName == "tau-" ||
447  particleName == "triton" ||
448  particleName == "xi_c+" ||
449  particleName == "xi-" ) {
450 
451  ph->RegisterProcess(hmsc, particle);
452  ph->RegisterProcess(new G4hIonisation(), particle);
453  ph->RegisterProcess(pnuc, particle);
454  }
455  }
456 
457  // Nuclear stopping
458  pnuc->SetMaxKinEnergy(MeV);
459  inuc->SetMaxKinEnergy(MeV);
460 
461  // Deexcitation
464 
466 }
467 
468 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)
static G4He3 * He3()
Definition: G4He3.cc:94
const std::vector< G4String > & PartNames() const
void SetStepFunction(G4double v1, G4double v2, G4bool lock=true)
void SetEmModel(G4VEmModel *, G4int index=0)
static G4ParticleTable * GetParticleTable()
static constexpr double MeV
Definition: G4SIunits.hh:214
void SetMaxKinEnergy(G4double e)
void SetHighEnergyLimit(G4double)
Definition: G4VEmModel.hh:707
void SetMinKinEnergy(G4double e)
#define G4endl
Definition: G4ios.hh:61
void SetMuHadLateralDisplacement(G4bool val)
static G4AntiProton * AntiProton()
Definition: G4AntiProton.cc:93
void SetVerbose(G4int val)
static G4MuonMinus * MuonMinus()
Definition: G4MuonMinus.cc:100
static G4Proton * Proton()
Definition: G4Proton.cc:93
static G4PionPlus * PionPlusDefinition()
Definition: G4PionPlus.cc:93
void ActivateAngularGeneratorForIonisation(G4bool val)
static constexpr double um
Definition: G4SIunits.hh:113
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
void SetMinEnergy(G4double val)
void SetMscSkin(G4double val)
double G4double
Definition: G4Types.hh:76
void SetActivationLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:728
void SetEmModel(G4VEmModel *, G4int index=0)
void SetLowestElectronEnergy(G4double val)
void SetMscRangeFactor(G4double val)
const G4String & GetPhysicsName() const
void AddEmModel(G4int, G4VEmModel *, G4VEmFluctuationModel *fluc=0, const G4Region *region=nullptr)
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
static G4Positron * Positron()
Definition: G4Positron.cc:94
static constexpr double eV
Definition: G4SIunits.hh:215
void SetAngularDistribution(G4VEmAngularDistribution *)
Definition: G4VEmModel.hh:582
void SetNumberOfBinsPerDecade(G4int val)
static G4PionMinus * PionMinusDefinition()
Definition: G4PionMinus.cc:93
static G4Electron * Electron()
Definition: G4Electron.cc:94
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
static G4KaonMinus * KaonMinusDefinition()
Definition: G4KaonMinus.cc:108
void SetMscStepLimitType(G4MscStepLimitType val)
void SetAugerCascade(G4bool val)
static G4GenericIon * GenericIonDefinition()
Definition: G4GenericIon.cc:88
static G4PhysicsListHelper * GetPhysicsListHelper()
int G4int
Definition: G4Types.hh:78
static G4Triton * Triton()
Definition: G4Triton.cc:95
void SetEmModel(G4VMscModel *, size_t index=0)
void SetLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:714
static G4MuonPlus * MuonPlus()
Definition: G4MuonPlus.cc:99
G4GLOB_DLL std::ostream G4cout
G4EmStandardPhysics_option4(G4int ver=1, const G4String &name="")
static G4LossTableManager * Instance()
void SetAtomDeexcitation(G4VAtomDeexcitation *)
void AddEmModel(G4int, G4VEmModel *, const G4Region *region=nullptr)
static G4KaonPlus * KaonPlusDefinition()
Definition: G4KaonPlus.cc:108
G4double MscEnergyLimit() const
void SetUseMottCorrection(G4bool val)
static constexpr double GeV
Definition: G4SIunits.hh:217
static G4EmParameters * Instance()