Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4EmLowEPPhysics.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: G4EmLowEPPhysics.cc 109526 2018-04-30 07:11:52Z gcosmo $
27 
28 #include "G4EmLowEPPhysics.hh"
29 #include "G4ParticleDefinition.hh"
30 #include "G4SystemOfUnits.hh"
31 #include "G4ParticleTable.hh"
32 
33 // *** Processes and models
34 
35 // gamma
36 #include "G4PhotoElectricEffect.hh"
38 
39 #include "G4ComptonScattering.hh"
40 #include "G4LowEPComptonModel.hh"
42 
43 #include "G4GammaConversion.hh"
45 
46 #include "G4RayleighScattering.hh"
48 
49 // e+-
50 #include "G4eMultipleScattering.hh"
52 
53 #include "G4eIonisation.hh"
55 
56 #include "G4eBremsstrahlung.hh"
58 #include "G4Generator2BS.hh"
59 #include "G4BetheHeitler5DModel.hh"
60 
61 // e+
62 #include "G4eplusAnnihilation.hh"
63 
64 // mu+-
66 #include "G4MuIonisation.hh"
67 #include "G4MuBremsstrahlung.hh"
68 #include "G4MuPairProduction.hh"
69 #include "G4SeltzerBergerModel.hh"
70 
71 // hadrons
72 #include "G4hMultipleScattering.hh"
73 #include "G4MscStepLimitType.hh"
74 
75 #include "G4hBremsstrahlung.hh"
76 #include "G4hPairProduction.hh"
77 
78 #include "G4hIonisation.hh"
79 #include "G4ionIonisation.hh"
80 #include "G4alphaIonisation.hh"
83 #include "G4NuclearStopping.hh"
84 
85 // msc models
86 #include "G4UrbanMscModel.hh"
87 #include "G4WentzelVIModel.hh"
88 #include "G4LowEWentzelVIModel.hh"
91 #include "G4CoulombScattering.hh"
92 
93 // interfaces
94 #include "G4LossTableManager.hh"
95 #include "G4UAtomicDeexcitation.hh"
96 #include "G4EmParameters.hh"
97 
98 // particles
99 
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 //
118 #include "G4PhysicsListHelper.hh"
119 #include "G4BuilderType.hh"
120 #include "G4EmModelActivator.hh"
121 
122 // factory
124 //
126 
127 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
128 
130  : G4VPhysicsConstructor("G4EmLowEPPhysics"), 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->SetFluo(true);
141 }
142 
143 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
144 
146 {}
147 
148 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
149 
151 {
152  // gamma
153  G4Gamma::Gamma();
154 
155  // leptons
160 
161  // mesons
166 
167  // baryons
170 
171  // ions
174  G4He3::He3();
175  G4Alpha::Alpha();
177 }
178 
179 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
180 
182 {
184 
185  // muon & hadron bremsstrahlung and pair production
194 
195  // muon & hadron multiple scattering
197  mumsc->SetEmModel(new G4LowEWentzelVIModel());
199  pimsc->SetEmModel(new G4LowEWentzelVIModel());
201  kmsc->SetEmModel(new G4LowEWentzelVIModel());
202 
204  hmsc->SetEmModel(new G4LowEWentzelVIModel());
205 
206  // nuclear stopping
207  G4NuclearStopping* ionnuc = new G4NuclearStopping();
208  G4NuclearStopping* pnuc = new G4NuclearStopping();
209 
210  // Add Livermore EM Processes
212  for(const auto& particleName : partList.PartNames()) {
213  G4ParticleDefinition* particle = table->FindParticle(particleName);
214  if (!particle) { continue; }
215  if (particleName == "gamma") {
216 
217  // Photoelectric effect - Livermore model only
218  G4PhotoElectricEffect* thePhotoElectricEffect = new G4PhotoElectricEffect();
219  thePhotoElectricEffect->SetEmModel(new G4LivermorePhotoElectricModel());
220  ph->RegisterProcess(thePhotoElectricEffect, particle);
221 
222  // Compton scattering - Livermore model above 20 MeV, Monarsh's model below
223  G4ComptonScattering* theComptonScattering = new G4ComptonScattering();
224  theComptonScattering->SetEmModel(new G4LivermoreComptonModel());
225  G4LowEPComptonModel* theLowEPComptonModel =
226  new G4LowEPComptonModel();
227  theLowEPComptonModel->SetHighEnergyLimit(20*MeV);
228  theComptonScattering->AddEmModel(0, theLowEPComptonModel);
229  ph->RegisterProcess(theComptonScattering, particle);
230 
231  // gamma conversion - Livermore model below 80 GeV
232  G4GammaConversion* theGammaConversion = new G4GammaConversion();
233  theGammaConversion->SetEmModel(new G4BetheHeitler5DModel());
234  ph->RegisterProcess(theGammaConversion, particle);
235 
236  // default Rayleigh scattering is Livermore
237  G4RayleighScattering* theRayleigh = new G4RayleighScattering();
238  ph->RegisterProcess(theRayleigh, particle);
239 
240  } else if (particleName == "e-") {
241 
242  // multiple scattering
244  msc->SetEmModel(new G4LowEWentzelVIModel());
245 
246  // Ionisation - Livermore should be used only for low energies
247  G4eIonisation* eIoni = new G4eIonisation();
248  G4LivermoreIonisationModel* theIoniLivermore = new
250  theIoniLivermore->SetHighEnergyLimit(0.1*MeV);
251  eIoni->AddEmModel(0, theIoniLivermore, new G4UniversalFluctuation() );
252  eIoni->SetStepFunction(0.2, 100*um); //
253 
254  // Bremsstrahlung
255  G4eBremsstrahlung* eBrem = new G4eBremsstrahlung();
256  G4VEmModel* theBrem = new G4SeltzerBergerModel();
257  theBrem->SetHighEnergyLimit(1*GeV);
258  theBrem->SetAngularDistribution(new G4Generator2BS());
259  eBrem->SetEmModel(theBrem);
260 
261  // register processes
262  ph->RegisterProcess(msc, particle);
263  ph->RegisterProcess(eIoni, particle);
264  ph->RegisterProcess(eBrem, particle);
265 
266  } else if (particleName == "e+") {
267 
268  // multiple scattering
270  msc->SetEmModel(new G4LowEWentzelVIModel());
271 
272  // Standard ionisation
273  G4eIonisation* eIoni = new G4eIonisation();
274  eIoni->SetStepFunction(0.2, 100*um);
275 
276  // Bremsstrahlung
277  G4eBremsstrahlung* eBrem = new G4eBremsstrahlung();
278  G4VEmModel* theBrem = new G4SeltzerBergerModel();
279  theBrem->SetHighEnergyLimit(1*GeV);
280  theBrem->SetAngularDistribution(new G4Generator2BS());
281  eBrem->SetEmModel(theBrem);
282 
283  // register processes
284  ph->RegisterProcess(msc, particle);
285  ph->RegisterProcess(eIoni, particle);
286  ph->RegisterProcess(eBrem, particle);
287  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
288 
289  } else if (particleName == "mu+" ||
290  particleName == "mu-" ) {
291 
292  G4MuIonisation* muIoni = new G4MuIonisation();
293  muIoni->SetStepFunction(0.2, 50*um);
294 
295  ph->RegisterProcess(mumsc, particle);
296  ph->RegisterProcess(muIoni, particle);
297  ph->RegisterProcess(mub, particle);
298  ph->RegisterProcess(mup, particle);
299 
300  } else if (particleName == "alpha" ||
301  particleName == "He3" ) {
302 
303  G4ionIonisation* ionIoni = new G4ionIonisation();
304  ionIoni->SetStepFunction(0.1, 10*um);
305 
306  ph->RegisterProcess(hmsc, particle);
307  ph->RegisterProcess(ionIoni, particle);
308  ph->RegisterProcess(ionnuc, particle);
309 
310  } else if (particleName == "GenericIon") {
311 
312  G4ionIonisation* ionIoni = new G4ionIonisation();
315  mod1->SetHighEnergyLimit(20*MeV);
316  mod2->SetLowEnergyLimit(20*MeV);
317  ionIoni->SetEmModel(mod1);
318  ionIoni->SetEmModel(mod2);
319  ionIoni->SetStepFunction(0.1, 1*um);
320 
321  ph->RegisterProcess(hmsc, particle);
322  ph->RegisterProcess(ionIoni, particle);
323  ph->RegisterProcess(ionnuc, particle);
324 
325  } else if (particleName == "pi+" ||
326  particleName == "pi-" ) {
327 
328  G4hIonisation* hIoni = new G4hIonisation();
329  hIoni->SetStepFunction(0.2, 50*um);
330 
331  ph->RegisterProcess(pimsc, particle);
332  ph->RegisterProcess(hIoni, particle);
333  ph->RegisterProcess(pib, particle);
334  ph->RegisterProcess(pip, particle);
335 
336  } else if (particleName == "kaon+" ||
337  particleName == "kaon-" ) {
338 
339  G4hIonisation* hIoni = new G4hIonisation();
340  hIoni->SetStepFunction(0.2, 50*um);
341 
342  ph->RegisterProcess(kmsc, particle);
343  ph->RegisterProcess(hIoni, particle);
344  ph->RegisterProcess(kb, particle);
345  ph->RegisterProcess(kp, particle);
346 
347  } else if (particleName == "proton" ||
348  particleName == "anti_proton") {
349 
351  pmsc->SetEmModel(new G4LowEWentzelVIModel());
352  G4hIonisation* hIoni = new G4hIonisation();
353  hIoni->SetStepFunction(0.2, 50*um);
354 
355  ph->RegisterProcess(pmsc, particle);
356  ph->RegisterProcess(hIoni, particle);
357  ph->RegisterProcess(pb, particle);
358  ph->RegisterProcess(pp, particle);
359  ph->RegisterProcess(pnuc, particle);
360 
361  } else if (particleName == "B+" ||
362  particleName == "B-" ||
363  particleName == "D+" ||
364  particleName == "D-" ||
365  particleName == "Ds+" ||
366  particleName == "Ds-" ||
367  particleName == "anti_He3" ||
368  particleName == "anti_alpha" ||
369  particleName == "anti_deuteron" ||
370  particleName == "anti_lambda_c+" ||
371  particleName == "anti_omega-" ||
372  particleName == "anti_sigma_c+" ||
373  particleName == "anti_sigma_c++" ||
374  particleName == "anti_sigma+" ||
375  particleName == "anti_sigma-" ||
376  particleName == "anti_triton" ||
377  particleName == "anti_xi_c+" ||
378  particleName == "anti_xi-" ||
379  particleName == "deuteron" ||
380  particleName == "lambda_c+" ||
381  particleName == "omega-" ||
382  particleName == "sigma_c+" ||
383  particleName == "sigma_c++" ||
384  particleName == "sigma+" ||
385  particleName == "sigma-" ||
386  particleName == "tau+" ||
387  particleName == "tau-" ||
388  particleName == "triton" ||
389  particleName == "xi_c+" ||
390  particleName == "xi-" ) {
391 
392  ph->RegisterProcess(hmsc, particle);
393  ph->RegisterProcess(new G4hIonisation(), particle);
394  }
395  }
396 
397  // Nuclear stopping
398  pnuc->SetMaxKinEnergy(MeV);
399 
400  // Deexcitation
401  //
404 
406 }
407 
408 //....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
virtual ~G4EmLowEPPhysics()
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
virtual void ConstructParticle()
G4EmParticleList partList
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)
virtual void ConstructProcess()
void SetEmModel(G4VEmModel *, G4int index=0)
void SetLowestElectronEnergy(G4double val)
const G4String & GetPhysicsName() const
void AddEmModel(G4int, G4VEmModel *, G4VEmFluctuationModel *fluc=0, const G4Region *region=nullptr)
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
G4EmLowEPPhysics(G4int ver=1, const G4String &name="")
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
static G4KaonMinus * KaonMinusDefinition()
Definition: G4KaonMinus.cc:108
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
static G4LossTableManager * Instance()
void SetAtomDeexcitation(G4VAtomDeexcitation *)
void AddEmModel(G4int, G4VEmModel *, const G4Region *region=nullptr)
static G4KaonPlus * KaonPlusDefinition()
Definition: G4KaonPlus.cc:108
static constexpr double GeV
Definition: G4SIunits.hh:217
static G4EmParameters * Instance()