Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4EmStandardPhysics_option3.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_option3.cc 109526 2018-04-30 07:11:52Z gcosmo $
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName: G4EmStandardPhysics_option3
31 //
32 // Author: V.Ivanchenko 13.03.2008
33 //
34 // Modified:
35 // 21.04.2008 V.Ivanchenko add long-lived D and B mesons; use spline
36 // 28.05.2008 V.Ivanchenko linLossLimit=0.01 for ions 0.001 for others
37 //
38 //----------------------------------------------------------------------------
39 //
40 
42 
43 #include "G4SystemOfUnits.hh"
44 #include "G4ParticleDefinition.hh"
45 #include "G4LossTableManager.hh"
46 #include "G4EmParameters.hh"
47 
48 #include "G4ComptonScattering.hh"
49 #include "G4GammaConversion.hh"
50 #include "G4PhotoElectricEffect.hh"
51 #include "G4RayleighScattering.hh"
52 #include "G4PEEffectFluoModel.hh"
53 #include "G4KleinNishinaModel.hh"
55 
56 #include "G4eMultipleScattering.hh"
58 #include "G4hMultipleScattering.hh"
59 #include "G4MscStepLimitType.hh"
60 #include "G4UrbanMscModel.hh"
61 #include "G4DummyModel.hh"
62 #include "G4WentzelVIModel.hh"
63 #include "G4CoulombScattering.hh"
64 
65 #include "G4eIonisation.hh"
66 #include "G4eBremsstrahlung.hh"
67 #include "G4Generator2BS.hh"
68 #include "G4SeltzerBergerModel.hh"
69 
70 #include "G4eplusAnnihilation.hh"
71 #include "G4UAtomicDeexcitation.hh"
72 
73 #include "G4MuIonisation.hh"
74 #include "G4MuBremsstrahlung.hh"
75 #include "G4MuPairProduction.hh"
76 #include "G4hBremsstrahlung.hh"
77 #include "G4hPairProduction.hh"
78 #include "G4ePairProduction.hh"
79 
84 
85 #include "G4hIonisation.hh"
86 #include "G4ionIonisation.hh"
88 #include "G4NuclearStopping.hh"
89 
90 #include "G4ParticleTable.hh"
91 #include "G4Gamma.hh"
92 #include "G4Electron.hh"
93 #include "G4Positron.hh"
94 #include "G4MuonPlus.hh"
95 #include "G4MuonMinus.hh"
96 #include "G4PionPlus.hh"
97 #include "G4PionMinus.hh"
98 #include "G4KaonPlus.hh"
99 #include "G4KaonMinus.hh"
100 #include "G4Proton.hh"
101 #include "G4AntiProton.hh"
102 #include "G4Deuteron.hh"
103 #include "G4Triton.hh"
104 #include "G4He3.hh"
105 #include "G4Alpha.hh"
106 #include "G4GenericIon.hh"
107 
108 #include "G4PhysicsListHelper.hh"
109 #include "G4BuilderType.hh"
110 #include "G4EmModelActivator.hh"
111 
112 // factory
114 //
116 
117 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
118 
120  const G4String&)
121  : G4VPhysicsConstructor("G4EmStandard_opt3"), verbose(ver)
122 {
124  param->SetDefaults();
125  param->SetVerbose(verbose);
126  param->SetMinEnergy(10*eV);
127  param->SetLowestElectronEnergy(100*eV);
128  param->SetNumberOfBinsPerDecade(20);
130  param->SetMuHadLateralDisplacement(true);
131  //param->SetLateralDisplacementAlg96(false);
132  param->SetFluo(true);
134 }
135 
136 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
137 
139 {}
140 
141 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
142 
144 {
145  // gamma
146  G4Gamma::Gamma();
147 
148  // leptons
153 
154  // mesons
159 
160  // barions
163 
164  // ions
167  G4He3::He3();
168  G4Alpha::Alpha();
170 }
171 
172 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
173 
175 {
176  if(verbose > 1) {
177  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
178  }
180 
181  // muon & hadron bremsstrahlung and pair production
191 
192  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
193 
194  // nuclear stopping
195  G4NuclearStopping* pnuc = new G4NuclearStopping();
196 
197  // Add standard EM Processes
199  for(const auto& particleName : partList.PartNames()) {
200  G4ParticleDefinition* particle = table->FindParticle(particleName);
201  if (!particle) { continue; }
202  if (particleName == "gamma") {
203 
206  ph->RegisterProcess(pee, particle);
207 
209  cs->SetEmModel(new G4KleinNishinaModel());
210  ph->RegisterProcess(cs, particle);
211 
212  ph->RegisterProcess(new G4GammaConversion(), particle);
213  ph->RegisterProcess(new G4RayleighScattering(), particle);
214 
215  } else if (particleName == "e-") {
216 
218 
219  G4eIonisation* eIoni = new G4eIonisation();
220  eIoni->SetStepFunction(0.2, 100*um);
221 
222  G4eBremsstrahlung* brem = new G4eBremsstrahlung();
227  brem->SetEmModel(br1);
228  brem->SetEmModel(br2);
229  br2->SetLowEnergyLimit(GeV);
230 
231  // register processes
232  ph->RegisterProcess(msc, particle);
233  ph->RegisterProcess(eIoni, particle);
234  ph->RegisterProcess(brem, particle);
235  ph->RegisterProcess(ee, particle);
236 
237  } else if (particleName == "e+") {
238 
240 
241  G4eIonisation* eIoni = new G4eIonisation();
242  eIoni->SetStepFunction(0.2, 100*um);
243 
244  G4eBremsstrahlung* brem = new G4eBremsstrahlung();
249  brem->SetEmModel(br1);
250  brem->SetEmModel(br2);
251  br2->SetLowEnergyLimit(GeV);
252 
253  // register processes
254  ph->RegisterProcess(msc, particle);
255  ph->RegisterProcess(eIoni, particle);
256  ph->RegisterProcess(brem, particle);
257  ph->RegisterProcess(ee, particle);
258  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
259 
260  } else if (particleName == "mu+" ||
261  particleName == "mu-" ) {
262 
264  G4MuIonisation* muIoni = new G4MuIonisation();
265  muIoni->SetStepFunction(0.2, 50*um);
266 
267  ph->RegisterProcess(mumsc, particle);
268  ph->RegisterProcess(muIoni, particle);
269  ph->RegisterProcess(mub, particle);
270  ph->RegisterProcess(mup, particle);
271 
272  } else if (particleName == "alpha" ||
273  particleName == "He3") {
274 
276  G4ionIonisation* ionIoni = new G4ionIonisation();
277  ionIoni->SetStepFunction(0.1, 10*um);
278 
279  ph->RegisterProcess(msc, particle);
280  ph->RegisterProcess(ionIoni, particle);
281  ph->RegisterProcess(pnuc, particle);
282 
283  } else if (particleName == "GenericIon") {
284 
285  G4ionIonisation* ionIoni = new G4ionIonisation();
286  ionIoni->SetEmModel(new G4IonParametrisedLossModel());
287  ionIoni->SetStepFunction(0.1, 1*um);
288 
289  ph->RegisterProcess(hmsc, particle);
290  ph->RegisterProcess(ionIoni, particle);
291  ph->RegisterProcess(pnuc, particle);
292 
293  } else if (particleName == "pi+" ||
294  particleName == "pi-" ) {
295 
297  G4hIonisation* hIoni = new G4hIonisation();
298  hIoni->SetStepFunction(0.2, 50*um);
299 
300  ph->RegisterProcess(pimsc, particle);
301  ph->RegisterProcess(hIoni, particle);
302  ph->RegisterProcess(pib, particle);
303  ph->RegisterProcess(pip, particle);
304 
305  } else if (particleName == "kaon+" ||
306  particleName == "kaon-" ) {
307 
309  G4hIonisation* hIoni = new G4hIonisation();
310  hIoni->SetStepFunction(0.2, 50*um);
311 
312  ph->RegisterProcess(kmsc, particle);
313  ph->RegisterProcess(hIoni, particle);
314  ph->RegisterProcess(kb, particle);
315  ph->RegisterProcess(kp, particle);
316 
317  } else if (particleName == "proton" ||
318  particleName == "anti_proton") {
319 
321  G4hIonisation* hIoni = new G4hIonisation();
322  hIoni->SetStepFunction(0.2, 50*um);
323 
324  ph->RegisterProcess(pmsc, particle);
325  ph->RegisterProcess(hIoni, particle);
326  ph->RegisterProcess(pb, particle);
327  ph->RegisterProcess(pp, particle);
328  ph->RegisterProcess(pnuc, particle);
329 
330  } else if (particleName == "B+" ||
331  particleName == "B-" ||
332  particleName == "D+" ||
333  particleName == "D-" ||
334  particleName == "Ds+" ||
335  particleName == "Ds-" ||
336  particleName == "anti_He3" ||
337  particleName == "anti_alpha" ||
338  particleName == "anti_deuteron" ||
339  particleName == "anti_lambda_c+" ||
340  particleName == "anti_omega-" ||
341  particleName == "anti_sigma_c+" ||
342  particleName == "anti_sigma_c++" ||
343  particleName == "anti_sigma+" ||
344  particleName == "anti_sigma-" ||
345  particleName == "anti_triton" ||
346  particleName == "anti_xi_c+" ||
347  particleName == "anti_xi-" ||
348  particleName == "deuteron" ||
349  particleName == "lambda_c+" ||
350  particleName == "omega-" ||
351  particleName == "sigma_c+" ||
352  particleName == "sigma_c++" ||
353  particleName == "sigma+" ||
354  particleName == "sigma-" ||
355  particleName == "tau+" ||
356  particleName == "tau-" ||
357  particleName == "triton" ||
358  particleName == "xi_c+" ||
359  particleName == "xi-" ) {
360 
361  ph->RegisterProcess(hmsc, particle);
362  ph->RegisterProcess(new G4hIonisation(), particle);
363  ph->RegisterProcess(pnuc, particle);
364  }
365  }
366 
367  // Nuclear stopping
368  pnuc->SetMaxKinEnergy(MeV);
369 
370  // Deexcitation
373 
375 }
376 
377 //....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)
#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
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 SetEmModel(G4VEmModel *, G4int index=0)
void SetLowestElectronEnergy(G4double val)
const G4String & GetPhysicsName() const
void SetFluo(G4bool val)
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)
static G4GenericIon * GenericIonDefinition()
Definition: G4GenericIon.cc:88
static G4PhysicsListHelper * GetPhysicsListHelper()
int G4int
Definition: G4Types.hh:78
static G4Triton * Triton()
Definition: G4Triton.cc:95
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
static constexpr double GeV
Definition: G4SIunits.hh:217
G4EmStandardPhysics_option3(G4int ver=1, const G4String &name="")
static G4EmParameters * Instance()