Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
TestEm2/src/PhysListEm5DStandard.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: $
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName: PhysListEm5DStandard
31 //
32 // Author: IgS 07.11.2017
33 //
34 // Modified:
35 // 17.11.2017 Created using PhysListEm5DStandard from V.Ivanchenko
36 //
37 //----------------------------------------------------------------------------
38 //
39 
40 #include "PhysListEm5DStandard.hh"
41 #include "G4SystemOfUnits.hh"
42 #include "G4ParticleDefinition.hh"
43 #include "G4EmParameters.hh"
44 #include "G4LossTableManager.hh"
45 
46 #include "G4ComptonScattering.hh"
47 #include "G4GammaConversion.hh"
48 #include "G4PhotoElectricEffect.hh"
49 #include "G4RayleighScattering.hh"
50 #include "G4BetheHeitler5DModel.hh"
51 
52 #include "G4eMultipleScattering.hh"
54 #include "G4hMultipleScattering.hh"
55 #include "G4CoulombScattering.hh"
57 #include "G4WentzelVIModel.hh"
58 #include "G4UrbanMscModel.hh"
59 
64 
65 #include "G4eIonisation.hh"
66 #include "G4eBremsstrahlung.hh"
67 #include "G4eplusAnnihilation.hh"
68 #include "G4UAtomicDeexcitation.hh"
69 
70 #include "G4MuIonisation.hh"
71 #include "G4MuBremsstrahlung.hh"
72 #include "G4MuPairProduction.hh"
73 #include "G4hBremsstrahlung.hh"
74 #include "G4hPairProduction.hh"
75 
76 #include "G4hIonisation.hh"
77 #include "G4ionIonisation.hh"
78 #include "G4alphaIonisation.hh"
79 
80 #include "G4Gamma.hh"
81 #include "G4Electron.hh"
82 #include "G4Positron.hh"
83 #include "G4MuonPlus.hh"
84 #include "G4MuonMinus.hh"
85 #include "G4PionPlus.hh"
86 #include "G4PionMinus.hh"
87 #include "G4KaonPlus.hh"
88 #include "G4KaonMinus.hh"
89 #include "G4Proton.hh"
90 #include "G4AntiProton.hh"
91 #include "G4Deuteron.hh"
92 #include "G4Triton.hh"
93 #include "G4He3.hh"
94 #include "G4Alpha.hh"
95 #include "G4GenericIon.hh"
96 
97 #include "G4PhysicsListHelper.hh"
98 #include "G4BuilderType.hh"
99 
100 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
101 
103  : G4VPhysicsConstructor("G4EmStandard_5D"), verbose(ver)
104 {
106  param->SetDefaults();
107  param->SetVerbose(verbose);
108  param->SetNumberOfBinsPerDecade(10);
110  param->SetLateralDisplacementAlg96(false);
111  param->SetFluo(true);
113 }
114 
115 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
116 
118 {}
119 
120 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
121 
123 {
124  // gamma
125  G4Gamma::Gamma();
126 
127  // leptons
132 
133  // mesons
138 
139  // barions
142 
143  // ions
146  G4He3::He3();
147  G4Alpha::Alpha();
149 }
150 
151 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
152 
154 {
155  if(verbose > 1) {
156  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
157  }
159 
160  // muon & hadron bremsstrahlung and pair production
169 
170  // muon & hadron multiple scattering
172  mumsc->AddEmModel(0, new G4WentzelVIModel());
174 
176  pimsc->AddEmModel(0, new G4WentzelVIModel());
178 
180  kmsc->AddEmModel(0, new G4WentzelVIModel());
182 
183  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
184 
185  // high energy limit for e+- scattering models
186  G4double highEnergyLimit = 100*MeV;
187 
188  // Add standard EM Processes
189  auto myParticleIterator=GetParticleIterator();
190  myParticleIterator->reset();
191  while( (*myParticleIterator)() ){
192  G4ParticleDefinition* particle = myParticleIterator->value();
193  G4String particleName = particle->GetParticleName();
194 
195  if (particleName == "gamma") {
196 
197  // photo-effect and Compton
198  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
199  ph->RegisterProcess(new G4ComptonScattering(), particle);
200 
201  // Gamma conversion
203  G4VEmModel* theGC5DModel = new G4BetheHeitler5DModel();
204  gc->SetEmModel(theGC5DModel);
205  ph->RegisterProcess(gc, particle);
206 
207  // Rayleigh scattering
208  ph->RegisterProcess(new G4RayleighScattering(), particle);
209 
210  } else if (particleName == "e-") {
211 
213  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
214  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
215  msc1->SetHighEnergyLimit(highEnergyLimit);
216  msc2->SetLowEnergyLimit(highEnergyLimit);
217  msc->AddEmModel(0, msc1);
218  msc->AddEmModel(0, msc2);
219 
222  ss->SetEmModel(ssm, 1);
223  ss->SetMinKinEnergy(highEnergyLimit);
224  ssm->SetLowEnergyLimit(highEnergyLimit);
225  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
226 
227  ph->RegisterProcess(msc, particle);
228  ph->RegisterProcess(new G4eIonisation(), particle);
229  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
230  ph->RegisterProcess(ss, particle);
231 
232  } else if (particleName == "e+") {
233 
235  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
236  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
237  msc1->SetHighEnergyLimit(highEnergyLimit);
238  msc2->SetLowEnergyLimit(highEnergyLimit);
239  msc->AddEmModel(0, msc1);
240  msc->AddEmModel(0, msc2);
241 
244  ss->SetEmModel(ssm, 1);
245  ss->SetMinKinEnergy(highEnergyLimit);
246  ssm->SetLowEnergyLimit(highEnergyLimit);
247  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
248 
249  ph->RegisterProcess(msc, particle);
250  ph->RegisterProcess(new G4eIonisation(), particle);
251  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
252  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
253  ph->RegisterProcess(ss, particle);
254 
255  } else if (particleName == "mu+" ||
256  particleName == "mu-" ) {
257 
258  ph->RegisterProcess(mumsc, particle);
259  ph->RegisterProcess(new G4MuIonisation(), particle);
260  ph->RegisterProcess(mub, particle);
261  ph->RegisterProcess(mup, particle);
262  ph->RegisterProcess(muss, particle);
263 
264  } else if (particleName == "alpha" ||
265  particleName == "He3") {
266 
267  ph->RegisterProcess(new G4hMultipleScattering(), particle);
268  ph->RegisterProcess(new G4ionIonisation(), particle);
269 
270  } else if (particleName == "GenericIon") {
271 
272  ph->RegisterProcess(hmsc, particle);
273  ph->RegisterProcess(new G4ionIonisation(), particle);
274 
275  } else if (particleName == "pi+" ||
276  particleName == "pi-" ) {
277 
278  ph->RegisterProcess(pimsc, particle);
279  ph->RegisterProcess(new G4hIonisation(), particle);
280  ph->RegisterProcess(pib, particle);
281  ph->RegisterProcess(pip, particle);
282  ph->RegisterProcess(piss, particle);
283 
284  } else if (particleName == "kaon+" ||
285  particleName == "kaon-" ) {
286 
287  ph->RegisterProcess(kmsc, particle);
288  ph->RegisterProcess(new G4hIonisation(), particle);
289  ph->RegisterProcess(kb, particle);
290  ph->RegisterProcess(kp, particle);
291  ph->RegisterProcess(kss, particle);
292 
293  } else if (particleName == "proton" ||
294  particleName == "anti_proton") {
295 
297  pmsc->SetEmModel(new G4WentzelVIModel());
298  G4hIonisation* hIoni = new G4hIonisation();
299  hIoni->SetStepFunction(0.1, 10*um);
300 
301  ph->RegisterProcess(pmsc, particle);
302  ph->RegisterProcess(hIoni, particle);
303  ph->RegisterProcess(pb, particle);
304  ph->RegisterProcess(pp, particle);
305  ph->RegisterProcess(new G4CoulombScattering(), particle);
306 
307  } else if (particleName == "B+" ||
308  particleName == "B-" ||
309  particleName == "D+" ||
310  particleName == "D-" ||
311  particleName == "Ds+" ||
312  particleName == "Ds-" ||
313  particleName == "anti_He3" ||
314  particleName == "anti_alpha" ||
315  particleName == "anti_deuteron" ||
316  particleName == "anti_lambda_c+" ||
317  particleName == "anti_omega-" ||
318  particleName == "anti_sigma_c+" ||
319  particleName == "anti_sigma_c++" ||
320  particleName == "anti_sigma+" ||
321  particleName == "anti_sigma-" ||
322  particleName == "anti_triton" ||
323  particleName == "anti_xi_c+" ||
324  particleName == "anti_xi-" ||
325  particleName == "deuteron" ||
326  particleName == "lambda_c+" ||
327  particleName == "omega-" ||
328  particleName == "sigma_c+" ||
329  particleName == "sigma_c++" ||
330  particleName == "sigma+" ||
331  particleName == "sigma-" ||
332  particleName == "tau+" ||
333  particleName == "tau-" ||
334  particleName == "triton" ||
335  particleName == "xi_c+" ||
336  particleName == "xi-" ) {
337 
338  ph->RegisterProcess(hmsc, particle);
339  ph->RegisterProcess(new G4hIonisation(), particle);
340  }
341  }
342 
343  // Deexcitation
344  //
347 }
348 
349 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
static G4He3 * He3()
Definition: G4He3.cc:94
void SetStepFunction(G4double v1, G4double v2, G4bool lock=true)
static constexpr double MeV
Definition: G4SIunits.hh:214
void SetHighEnergyLimit(G4double)
Definition: G4VEmModel.hh:707
void SetMinKinEnergy(G4double e)
#define G4endl
Definition: G4ios.hh:61
static G4AntiProton * AntiProton()
Definition: G4AntiProton.cc:93
const G4String & GetParticleName() const
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
PhysListEm5DStandard(G4int ver=0, const G4String &name="")
static constexpr double um
Definition: G4SIunits.hh:113
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)
const G4String & GetPhysicsName() const
void SetFluo(G4bool val)
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
static G4Positron * Positron()
Definition: G4Positron.cc:94
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 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 *)
G4ParticleTable::G4PTblDicIterator * GetParticleIterator() const
void AddEmModel(G4int order, G4VEmModel *, const G4Region *region=nullptr)
static G4KaonPlus * KaonPlusDefinition()
Definition: G4KaonPlus.cc:108
void SetLateralDisplacementAlg96(G4bool val)
static G4EmParameters * Instance()