Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4EmStandardPhysics_option2.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_option2.cc 109526 2018-04-30 07:11:52Z gcosmo $
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName: G4EmStandardPhysics_option2
31 //
32 // Author: V.Ivanchenko 09.11.2005
33 //
34 // Modified:
35 // 19.12.2005 V.Ivanchenko rename 71 -> 72
36 // 15.06.2006 V.Ivanchenko use this class as a constructor of fast EM physics
37 // 13.11.2006 V.Ivanchenko use G4hMultipleScattering
38 // 14.11.2006 V.Ivanchenko use sub-cutoff option for all particles
39 // 13.02.2007 V.Ivanchenko use default msc
40 // 15.05.2007 V.Ivanchenko rename to _option2
41 // 13.03.2008 V.Ivanchenko use G4eMultipleScattering
42 // 21.04.2008 V.Ivanchenko add long-lived D and B mesons; use spline
43 // 28.05.2008 V.Ivanchenko linLossLimit=0.01; added hBrem and hPairProd processes
44 //
45 //----------------------------------------------------------------------------
46 //
47 
49 
50 #include "G4SystemOfUnits.hh"
51 #include "G4ParticleDefinition.hh"
52 #include "G4LossTableManager.hh"
53 #include "G4EmParameters.hh"
54 
55 #include "G4ComptonScattering.hh"
56 #include "G4GammaConversion.hh"
57 #include "G4PhotoElectricEffect.hh"
59 #include "G4KleinNishinaModel.hh"
60 #include "G4RayleighScattering.hh"
61 
62 #include "G4eMultipleScattering.hh"
63 #include "G4hMultipleScattering.hh"
65 #include "G4CoulombScattering.hh"
67 #include "G4UrbanMscModel.hh"
68 #include "G4WentzelVIModel.hh"
69 
70 #include "G4eIonisation.hh"
71 #include "G4eBremsstrahlung.hh"
73 #include "G4eplusAnnihilation.hh"
74 #include "G4Generator2BS.hh"
75 #include "G4SeltzerBergerModel.hh"
76 #include "G4UAtomicDeexcitation.hh"
77 
78 #include "G4MuIonisation.hh"
79 #include "G4MuBremsstrahlung.hh"
80 #include "G4MuPairProduction.hh"
81 #include "G4hBremsstrahlung.hh"
82 #include "G4hPairProduction.hh"
83 
88 
89 #include "G4hIonisation.hh"
90 #include "G4ionIonisation.hh"
91 #include "G4alphaIonisation.hh"
92 
93 #include "G4ParticleTable.hh"
94 #include "G4Gamma.hh"
95 #include "G4Electron.hh"
96 #include "G4Positron.hh"
97 #include "G4MuonPlus.hh"
98 #include "G4MuonMinus.hh"
99 #include "G4PionPlus.hh"
100 #include "G4PionMinus.hh"
101 #include "G4KaonPlus.hh"
102 #include "G4KaonMinus.hh"
103 #include "G4Proton.hh"
104 #include "G4AntiProton.hh"
105 #include "G4Deuteron.hh"
106 #include "G4Triton.hh"
107 #include "G4He3.hh"
108 #include "G4Alpha.hh"
109 #include "G4GenericIon.hh"
110 
111 #include "G4PhysicsListHelper.hh"
112 #include "G4BuilderType.hh"
113 #include "G4EmModelActivator.hh"
114 
115 // factory
117 //
119 
120 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
121 
123  const G4String&)
124  : G4VPhysicsConstructor("G4EmStandard_opt2"), verbose(ver)
125 {
127  param->SetDefaults();
128  param->SetVerbose(verbose);
129  param->SetApplyCuts(false);
130  param->SetMscRangeFactor(0.2);
133 }
134 
135 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
136 
138 {}
139 
140 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
141 
143 {
144  // gamma
145  G4Gamma::Gamma();
146 
147  // leptons
152 
153  // mesons
158 
159  // barions
162 
163  // ions
166  G4He3::He3();
167  G4Alpha::Alpha();
169 }
170 
171 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
172 
174 {
175  if(verbose > 1) {
176  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
177  }
179 
180  // muon & hadron bremsstrahlung and pair production
189 
190  // muon & hadron multiple scattering
192  mumsc->SetEmModel(new G4WentzelVIModel());
194 
196  pimsc->SetEmModel(new G4WentzelVIModel());
198 
200  kmsc->SetEmModel(new G4WentzelVIModel());
202 
203  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
204 
205  // high energy limit for e+- scattering models and bremsstrahlung
206  G4double highEnergyLimit = G4EmParameters::Instance()->MscEnergyLimit();
207 
208  // Add standard EM Processes
210  for(const auto& particleName : partList.PartNames()) {
211  G4ParticleDefinition* particle = table->FindParticle(particleName);
212  if (!particle) { continue; }
213  if (particleName == "gamma") {
214 
217  ph->RegisterProcess(pee, particle);
218 
219  ph->RegisterProcess(new G4ComptonScattering(), particle);
220  ph->RegisterProcess(new G4GammaConversion(), particle);
221  ph->RegisterProcess(new G4RayleighScattering(), particle);
222 
223  } else if (particleName == "e-") {
224 
225  G4eIonisation* eioni = new G4eIonisation();
226  eioni->SetStepFunction(0.8, 1.0*mm);
227 
229  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
230  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
231  msc1->SetHighEnergyLimit(highEnergyLimit);
232  msc2->SetLowEnergyLimit(highEnergyLimit);
233  msc->SetEmModel(msc1);
234  msc->SetEmModel(msc2);
235 
238  ss->SetEmModel(ssm);
239  ss->SetMinKinEnergy(highEnergyLimit);
240  ssm->SetLowEnergyLimit(highEnergyLimit);
241  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
242 
243  G4eBremsstrahlung* brem = new G4eBremsstrahlung();
248  brem->SetEmModel(br1);
249  brem->SetEmModel(br2);
250  br2->SetLowEnergyLimit(GeV);
251 
252  ph->RegisterProcess(msc, particle);
253  ph->RegisterProcess(eioni, particle);
254  ph->RegisterProcess(brem, particle);
255  ph->RegisterProcess(ss, particle);
256 
257  } else if (particleName == "e+") {
258 
259  G4eIonisation* eioni = new G4eIonisation();
260  eioni->SetStepFunction(0.8, 1.0*mm);
261 
263  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
264  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
265  msc1->SetHighEnergyLimit(highEnergyLimit);
266  msc2->SetLowEnergyLimit(highEnergyLimit);
267  msc->SetEmModel(msc1);
268  msc->SetEmModel(msc2);
269 
272  ss->SetEmModel(ssm, 1);
273  ss->SetMinKinEnergy(highEnergyLimit);
274  ssm->SetLowEnergyLimit(highEnergyLimit);
275  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
276 
277  G4eBremsstrahlung* brem = new G4eBremsstrahlung();
282  brem->SetEmModel(br1);
283  brem->SetEmModel(br2);
284  br2->SetLowEnergyLimit(GeV);
285 
286  ph->RegisterProcess(msc, particle);
287  ph->RegisterProcess(eioni, particle);
288  ph->RegisterProcess(brem, particle);
289  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
290  ph->RegisterProcess(ss, particle);
291 
292  } else if (particleName == "mu+" ||
293  particleName == "mu-" ) {
294 
295  ph->RegisterProcess(mumsc, particle);
296  ph->RegisterProcess(new G4MuIonisation(), particle);
297  ph->RegisterProcess(mub, particle);
298  ph->RegisterProcess(mup, particle);
299  ph->RegisterProcess(muss, particle);
300 
301  } else if (particleName == "alpha" ||
302  particleName == "He3") {
303 
304  ph->RegisterProcess(new G4hMultipleScattering(), particle);
305  ph->RegisterProcess(new G4ionIonisation(), particle);
306 
307  } else if (particleName == "GenericIon") {
308 
309  G4ionIonisation* ionIoni = new G4ionIonisation();
310  //ionIoni->SetEmModel(new G4IonParametrisedLossModel());
311  //ionIoni->SetStepFunction(0.1, 20*um);
312 
313  ph->RegisterProcess(hmsc, particle);
314  ph->RegisterProcess(ionIoni, particle);
315 
316  } else if (particleName == "pi+" ||
317  particleName == "pi-" ) {
318 
319  ph->RegisterProcess(pimsc, particle);
320  ph->RegisterProcess(new G4hIonisation(), particle);
321  ph->RegisterProcess(pib, particle);
322  ph->RegisterProcess(pip, particle);
323  ph->RegisterProcess(piss, particle);
324 
325  } else if (particleName == "kaon+" ||
326  particleName == "kaon-" ) {
327 
328  ph->RegisterProcess(kmsc, particle);
329  ph->RegisterProcess(new G4hIonisation(), particle);
330  ph->RegisterProcess(kb, particle);
331  ph->RegisterProcess(kp, particle);
332  ph->RegisterProcess(kss, particle);
333 
334  } else if (particleName == "proton" ||
335  particleName == "anti_proton") {
336 
338  pmsc->SetEmModel(new G4WentzelVIModel());
339 
340  ph->RegisterProcess(new G4hIonisation(), particle);
341  ph->RegisterProcess(pb, particle);
342  ph->RegisterProcess(pp, particle);
343  ph->RegisterProcess(new G4CoulombScattering(), particle);
344 
345  } else if (particleName == "B+" ||
346  particleName == "B-" ||
347  particleName == "D+" ||
348  particleName == "D-" ||
349  particleName == "Ds+" ||
350  particleName == "Ds-" ||
351  particleName == "anti_He3" ||
352  particleName == "anti_alpha" ||
353  particleName == "anti_deuteron" ||
354  particleName == "anti_lambda_c+" ||
355  particleName == "anti_omega-" ||
356  particleName == "anti_sigma_c+" ||
357  particleName == "anti_sigma_c++" ||
358  particleName == "anti_sigma+" ||
359  particleName == "anti_sigma-" ||
360  particleName == "anti_triton" ||
361  particleName == "anti_xi_c+" ||
362  particleName == "anti_xi-" ||
363  particleName == "deuteron" ||
364  particleName == "lambda_c+" ||
365  particleName == "omega-" ||
366  particleName == "sigma_c+" ||
367  particleName == "sigma_c++" ||
368  particleName == "sigma+" ||
369  particleName == "sigma-" ||
370  particleName == "tau+" ||
371  particleName == "tau-" ||
372  particleName == "triton" ||
373  particleName == "xi_c+" ||
374  particleName == "xi-" ) {
375 
376  ph->RegisterProcess(hmsc, particle);
377  ph->RegisterProcess(new G4hIonisation(), particle);
378  }
379  }
380 
381  // Deexcitation
382  //
385 
387 }
388 
389 //....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()
void SetHighEnergyLimit(G4double)
Definition: G4VEmModel.hh:707
void SetMinKinEnergy(G4double e)
static constexpr double mm
Definition: G4SIunits.hh:115
#define G4endl
Definition: G4ios.hh:61
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
G4EmStandardPhysics_option2(G4int ver=1, const G4String &name="")
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
double G4double
Definition: G4Types.hh:76
void SetActivationLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:728
void SetEmModel(G4VEmModel *, G4int index=0)
void SetMscRangeFactor(G4double val)
const G4String & GetPhysicsName() const
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
static G4Positron * Positron()
Definition: G4Positron.cc:94
void SetAngularDistribution(G4VEmAngularDistribution *)
Definition: G4VEmModel.hh:582
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)
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
static G4LossTableManager * Instance()
void SetAtomDeexcitation(G4VAtomDeexcitation *)
static G4KaonPlus * KaonPlusDefinition()
Definition: G4KaonPlus.cc:108
G4double MscEnergyLimit() const
static constexpr double GeV
Definition: G4SIunits.hh:217
static G4EmParameters * Instance()
void SetApplyCuts(G4bool val)