Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
TestEm15/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 #if G4VERSION_NUMBER >= 1040
111  param->SetLateralDisplacementAlg96(false);
112 #endif
113  param->SetFluo(true);
115 }
116 
117 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
118 
120 {}
121 
122 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
123 
125 {
126  // gamma
127  G4Gamma::Gamma();
128 
129  // leptons
134 
135  // mesons
140 
141  // barions
144 
145  // ions
148  G4He3::He3();
149  G4Alpha::Alpha();
151 }
152 
153 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
154 
156 {
157  if(verbose > 1) {
158  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
159  }
161 
162  // muon & hadron bremsstrahlung and pair production
171 
172  // muon & hadron multiple scattering
174  mumsc->AddEmModel(0, new G4WentzelVIModel());
176 
178  pimsc->AddEmModel(0, new G4WentzelVIModel());
180 
182  kmsc->AddEmModel(0, new G4WentzelVIModel());
184 
185  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
186 
187  // high energy limit for e+- scattering models
188  G4double highEnergyLimit = 100*MeV;
189 
190  // Add standard EM Processes
191  auto myParticleIterator=GetParticleIterator();
192  myParticleIterator->reset();
193  while( (*myParticleIterator)() ){
194  G4ParticleDefinition* particle = myParticleIterator->value();
195  G4String particleName = particle->GetParticleName();
196 
197  if (particleName == "gamma") {
198 
199  // photo-effect and Compton
200  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
201  ph->RegisterProcess(new G4ComptonScattering(), particle);
202 
203  // Gamma conversion
205  G4VEmModel* theGC5DModel = new G4BetheHeitler5DModel();
206  gc->SetEmModel(theGC5DModel);
207  ph->RegisterProcess(gc, particle);
208 
209  // Rayleigh scattering
210  ph->RegisterProcess(new G4RayleighScattering(), particle);
211 
212  } else if (particleName == "e-") {
213 
215  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
216  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
217  msc1->SetHighEnergyLimit(highEnergyLimit);
218  msc2->SetLowEnergyLimit(highEnergyLimit);
219  msc->AddEmModel(0, msc1);
220  msc->AddEmModel(0, msc2);
221 
224  ss->SetEmModel(ssm, 1);
225  ss->SetMinKinEnergy(highEnergyLimit);
226  ssm->SetLowEnergyLimit(highEnergyLimit);
227  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
228 
229  ph->RegisterProcess(msc, particle);
230  ph->RegisterProcess(new G4eIonisation(), particle);
231  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
232  ph->RegisterProcess(ss, particle);
233 
234  } else if (particleName == "e+") {
235 
237  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
238  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
239  msc1->SetHighEnergyLimit(highEnergyLimit);
240  msc2->SetLowEnergyLimit(highEnergyLimit);
241  msc->AddEmModel(0, msc1);
242  msc->AddEmModel(0, msc2);
243 
246  ss->SetEmModel(ssm, 1);
247  ss->SetMinKinEnergy(highEnergyLimit);
248  ssm->SetLowEnergyLimit(highEnergyLimit);
249  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
250 
251  ph->RegisterProcess(msc, particle);
252  ph->RegisterProcess(new G4eIonisation(), particle);
253  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
254  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
255  ph->RegisterProcess(ss, particle);
256 
257  } else if (particleName == "mu+" ||
258  particleName == "mu-" ) {
259 
260  ph->RegisterProcess(mumsc, particle);
261  ph->RegisterProcess(new G4MuIonisation(), particle);
262  ph->RegisterProcess(mub, particle);
263  ph->RegisterProcess(mup, particle);
264  ph->RegisterProcess(muss, particle);
265 
266  } else if (particleName == "alpha" ||
267  particleName == "He3") {
268 
269  ph->RegisterProcess(new G4hMultipleScattering(), particle);
270  ph->RegisterProcess(new G4ionIonisation(), particle);
271 
272  } else if (particleName == "GenericIon") {
273 
274  ph->RegisterProcess(hmsc, particle);
275  ph->RegisterProcess(new G4ionIonisation(), particle);
276 
277  } else if (particleName == "pi+" ||
278  particleName == "pi-" ) {
279 
280  ph->RegisterProcess(pimsc, particle);
281  ph->RegisterProcess(new G4hIonisation(), particle);
282  ph->RegisterProcess(pib, particle);
283  ph->RegisterProcess(pip, particle);
284  ph->RegisterProcess(piss, particle);
285 
286  } else if (particleName == "kaon+" ||
287  particleName == "kaon-" ) {
288 
289  ph->RegisterProcess(kmsc, particle);
290  ph->RegisterProcess(new G4hIonisation(), particle);
291  ph->RegisterProcess(kb, particle);
292  ph->RegisterProcess(kp, particle);
293  ph->RegisterProcess(kss, particle);
294 
295  } else if (particleName == "proton" ||
296  particleName == "anti_proton") {
297 
299  pmsc->SetEmModel(new G4WentzelVIModel());
300  G4hIonisation* hIoni = new G4hIonisation();
301  hIoni->SetStepFunction(0.1, 10*um);
302 
303  ph->RegisterProcess(pmsc, particle);
304  ph->RegisterProcess(hIoni, particle);
305  ph->RegisterProcess(pb, particle);
306  ph->RegisterProcess(pp, particle);
307  ph->RegisterProcess(new G4CoulombScattering(), particle);
308 
309  } else if (particleName == "B+" ||
310  particleName == "B-" ||
311  particleName == "D+" ||
312  particleName == "D-" ||
313  particleName == "Ds+" ||
314  particleName == "Ds-" ||
315  particleName == "anti_He3" ||
316  particleName == "anti_alpha" ||
317  particleName == "anti_deuteron" ||
318  particleName == "anti_lambda_c+" ||
319  particleName == "anti_omega-" ||
320  particleName == "anti_sigma_c+" ||
321  particleName == "anti_sigma_c++" ||
322  particleName == "anti_sigma+" ||
323  particleName == "anti_sigma-" ||
324  particleName == "anti_triton" ||
325  particleName == "anti_xi_c+" ||
326  particleName == "anti_xi-" ||
327  particleName == "deuteron" ||
328  particleName == "lambda_c+" ||
329  particleName == "omega-" ||
330  particleName == "sigma_c+" ||
331  particleName == "sigma_c++" ||
332  particleName == "sigma+" ||
333  particleName == "sigma-" ||
334  particleName == "tau+" ||
335  particleName == "tau-" ||
336  particleName == "triton" ||
337  particleName == "xi_c+" ||
338  particleName == "xi-" ) {
339 
340  ph->RegisterProcess(hmsc, particle);
341  ph->RegisterProcess(new G4hIonisation(), particle);
342  }
343  }
344 
345  // Deexcitation
346  //
349 }
350 
351 //....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()