Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4EmLivermorePolarizedPhysics.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: G4EmLivermorePolarizedPhysics.cc 109526 2018-04-30 07:11:52Z gcosmo $
27 
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"
41 
42 #include "G4GammaConversion.hh"
44 
45 #include "G4RayleighScattering.hh"
49 
50 // e+-
51 #include "G4eMultipleScattering.hh"
53 
54 #include "G4eIonisation.hh"
56 
57 #include "G4eBremsstrahlung.hh"
59 #include "G4Generator2BS.hh"
60 #include "G4SeltzerBergerModel.hh"
61 
62 // e+
63 #include "G4eplusAnnihilation.hh"
64 
65 // mu+-
67 #include "G4MuIonisation.hh"
68 #include "G4MuBremsstrahlung.hh"
69 #include "G4MuPairProduction.hh"
70 
75 
76 // hadrons
77 #include "G4hMultipleScattering.hh"
78 #include "G4MscStepLimitType.hh"
79 
80 #include "G4hBremsstrahlung.hh"
81 #include "G4hPairProduction.hh"
82 
83 #include "G4hIonisation.hh"
84 #include "G4ionIonisation.hh"
85 #include "G4alphaIonisation.hh"
87 #include "G4NuclearStopping.hh"
88 
89 // msc models
90 #include "G4UrbanMscModel.hh"
91 #include "G4WentzelVIModel.hh"
93 #include "G4CoulombScattering.hh"
95 
96 // interfaces
97 #include "G4LossTableManager.hh"
98 #include "G4EmParameters.hh"
99 #include "G4UAtomicDeexcitation.hh"
100 
101 // particles
102 #include "G4Gamma.hh"
103 #include "G4Electron.hh"
104 #include "G4Positron.hh"
105 #include "G4MuonPlus.hh"
106 #include "G4MuonMinus.hh"
107 #include "G4PionPlus.hh"
108 #include "G4PionMinus.hh"
109 #include "G4KaonPlus.hh"
110 #include "G4KaonMinus.hh"
111 #include "G4Proton.hh"
112 #include "G4AntiProton.hh"
113 #include "G4Deuteron.hh"
114 #include "G4Triton.hh"
115 #include "G4He3.hh"
116 #include "G4Alpha.hh"
117 #include "G4GenericIon.hh"
118 
119 //
120 #include "G4PhysicsListHelper.hh"
121 #include "G4BuilderType.hh"
122 #include "G4EmModelActivator.hh"
123 
124 // factory
126 //
128 
129 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
130 
132  const G4String&)
133  : G4VPhysicsConstructor("G4EmLivermorePolarized"), verbose(ver)
134 {
136  param->SetDefaults();
137  param->SetVerbose(verbose);
138  param->SetMinEnergy(100*eV);
139  param->SetLowestElectronEnergy(100*eV);
140  param->SetNumberOfBinsPerDecade(20);
142  param->SetMscRangeFactor(0.02);
143  param->SetMuHadLateralDisplacement(true);
145  param->SetFluo(true);
147 }
148 
149 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
150 
152 {}
153 
154 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
155 
157 {
158  // gamma
159  G4Gamma::Gamma();
160 
161  // leptons
166 
167  // mesons
172 
173  // baryons
176 
177  // ions
180  G4He3::He3();
181  G4Alpha::Alpha();
183 }
184 
185 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
186 
188 {
189  if(verbose > 1) {
190  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
191  }
193 
194  // muon & hadron bremsstrahlung and pair production
203 
204  // muon & hadron multiple scattering
206  mumsc->SetEmModel(new G4WentzelVIModel());
208  pimsc->SetEmModel(new G4WentzelVIModel());
210  kmsc->SetEmModel(new G4WentzelVIModel());
211 
212  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
213 
214  // high energy limit for e+- scattering models
215  G4double highEnergyLimit = G4EmParameters::Instance()->MscEnergyLimit();
216 
217  // nuclear stopping
218  G4NuclearStopping* pnuc = new G4NuclearStopping();
219 
220  // Add Livermore EM Processes
222  for(const auto& particleName : partList.PartNames()) {
223  G4ParticleDefinition* particle = table->FindParticle(particleName);
224  if (!particle) { continue; }
225  if (particleName == "gamma") {
226 
227  G4PhotoElectricEffect* thePhotoElectricEffect = new G4PhotoElectricEffect();
230  thePhotoElectricEffect->SetEmModel(mod);
231  ph->RegisterProcess(thePhotoElectricEffect, particle);
232 
233  G4ComptonScattering* theComptonScattering = new G4ComptonScattering();
234  theComptonScattering->SetEmModel(new G4LivermorePolarizedComptonModel());
235  ph->RegisterProcess(theComptonScattering, particle);
236 
237  G4GammaConversion* theGammaConversion = new G4GammaConversion();
238  theGammaConversion->SetEmModel(new G4LivermorePolarizedGammaConversionModel());
239  ph->RegisterProcess(theGammaConversion, particle);
240 
241  G4RayleighScattering* theRayleigh = new G4RayleighScattering();
242  theRayleigh->SetEmModel(new G4LivermorePolarizedRayleighModel());
243  ph->RegisterProcess(theRayleigh, particle);
244 
245  } else if (particleName == "e-") {
246 
247  // multiple and single scattering
250  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
251  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
252  msc1->SetHighEnergyLimit(highEnergyLimit);
253  msc2->SetLowEnergyLimit(highEnergyLimit);
254  msc->SetEmModel(msc1);
255  msc->SetEmModel(msc2);
256 
259  ss->SetEmModel(ssm);
260  ss->SetMinKinEnergy(highEnergyLimit);
261  ssm->SetLowEnergyLimit(highEnergyLimit);
262  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
263 
264  // Ionisation
265  G4eIonisation* eIoni = new G4eIonisation();
266  G4LivermoreIonisationModel* theIoniLivermore = new
268  theIoniLivermore->SetHighEnergyLimit(0.1*MeV);
269  eIoni->AddEmModel(0, theIoniLivermore, new G4UniversalFluctuation() );
270  eIoni->SetStepFunction(0.2, 100*um); //
271 
272  // Bremsstrahlung from standard
273  G4eBremsstrahlung* eBrem = new G4eBremsstrahlung();
274  G4VEmModel* mod = new G4SeltzerBergerModel();
276  eBrem->SetEmModel(mod);
277 
278  // register processes
279  ph->RegisterProcess(msc, particle);
280  ph->RegisterProcess(eIoni, particle);
281  ph->RegisterProcess(eBrem, particle);
282  ph->RegisterProcess(ss, particle);
283 
284  } else if (particleName == "e+") {
285 
286  // multiple scattering
289  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
290  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
291  msc1->SetHighEnergyLimit(highEnergyLimit);
292  msc2->SetLowEnergyLimit(highEnergyLimit);
293  msc->SetEmModel(msc1);
294  msc->SetEmModel(msc2);
295 
298  ss->SetEmModel(ssm);
299  ss->SetMinKinEnergy(highEnergyLimit);
300  ssm->SetLowEnergyLimit(highEnergyLimit);
301  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
302 
303  // Ionisation
304  G4eIonisation* eIoni = new G4eIonisation();
305  eIoni->SetStepFunction(0.2, 100*um);
306 
307  // Bremsstrahlung from standard
308  G4eBremsstrahlung* eBrem = new G4eBremsstrahlung();
309  G4VEmModel* mod = new G4SeltzerBergerModel();
311  eBrem->SetEmModel(mod);
312 
313  ph->RegisterProcess(msc, particle);
314  ph->RegisterProcess(eIoni, particle);
315  ph->RegisterProcess(eBrem, particle);
316  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
317  ph->RegisterProcess(ss, particle);
318 
319  } else if (particleName == "mu+" ||
320  particleName == "mu-" ) {
321 
322  G4MuIonisation* muIoni = new G4MuIonisation();
323  muIoni->SetStepFunction(0.2, 50*um);
324 
325  ph->RegisterProcess(mumsc, particle);
326  ph->RegisterProcess(muIoni, particle);
327  ph->RegisterProcess(mub, particle);
328  ph->RegisterProcess(mup, particle);
329  ph->RegisterProcess(new G4CoulombScattering(), particle);
330 
331  } else if (particleName == "alpha" ||
332  particleName == "He3" ) {
333 
335  G4ionIonisation* ionIoni = new G4ionIonisation();
336  ionIoni->SetStepFunction(0.1, 10*um);
337 
338  ph->RegisterProcess(msc, particle);
339  ph->RegisterProcess(ionIoni, particle);
340  ph->RegisterProcess(pnuc, particle);
341 
342  } else if (particleName == "GenericIon") {
343 
344  G4ionIonisation* ionIoni = new G4ionIonisation();
345  ionIoni->SetEmModel(new G4IonParametrisedLossModel());
346  ionIoni->SetStepFunction(0.1, 1*um);
347 
348  ph->RegisterProcess(hmsc, particle);
349  ph->RegisterProcess(ionIoni, particle);
350  ph->RegisterProcess(pnuc, particle);
351 
352  } else if (particleName == "pi+" ||
353  particleName == "pi-" ) {
354 
355  G4hIonisation* hIoni = new G4hIonisation();
356  hIoni->SetStepFunction(0.2, 50*um);
357 
358  ph->RegisterProcess(pimsc, particle);
359  ph->RegisterProcess(hIoni, particle);
360  ph->RegisterProcess(pib, particle);
361  ph->RegisterProcess(pip, particle);
362  ph->RegisterProcess(new G4CoulombScattering(), particle);
363 
364  } else if (particleName == "kaon+" ||
365  particleName == "kaon-" ) {
366 
367  G4hIonisation* hIoni = new G4hIonisation();
368  hIoni->SetStepFunction(0.2, 50*um);
369 
370  ph->RegisterProcess(kmsc, particle);
371  ph->RegisterProcess(hIoni, particle);
372  ph->RegisterProcess(kb, particle);
373  ph->RegisterProcess(kp, particle);
374  ph->RegisterProcess(new G4CoulombScattering(), particle);
375 
376  } else if (particleName == "proton" ||
377  particleName == "anti_proton") {
378 
380  pmsc->SetEmModel(new G4WentzelVIModel());
381 
382  G4hIonisation* hIoni = new G4hIonisation();
383  hIoni->SetStepFunction(0.2, 50*um);
384 
385  ph->RegisterProcess(pmsc, particle);
386  ph->RegisterProcess(hIoni, particle);
387  ph->RegisterProcess(pb, particle);
388  ph->RegisterProcess(pp, particle);
389  ph->RegisterProcess(pnuc, particle);
390  ph->RegisterProcess(new G4CoulombScattering(), particle);
391 
392  } else if (particleName == "B+" ||
393  particleName == "B-" ||
394  particleName == "D+" ||
395  particleName == "D-" ||
396  particleName == "Ds+" ||
397  particleName == "Ds-" ||
398  particleName == "anti_He3" ||
399  particleName == "anti_alpha" ||
400  particleName == "anti_deuteron" ||
401  particleName == "anti_lambda_c+" ||
402  particleName == "anti_omega-" ||
403  particleName == "anti_sigma_c+" ||
404  particleName == "anti_sigma_c++" ||
405  particleName == "anti_sigma+" ||
406  particleName == "anti_sigma-" ||
407  particleName == "anti_triton" ||
408  particleName == "anti_xi_c+" ||
409  particleName == "anti_xi-" ||
410  particleName == "deuteron" ||
411  particleName == "lambda_c+" ||
412  particleName == "omega-" ||
413  particleName == "sigma_c+" ||
414  particleName == "sigma_c++" ||
415  particleName == "sigma+" ||
416  particleName == "sigma-" ||
417  particleName == "tau+" ||
418  particleName == "tau-" ||
419  particleName == "triton" ||
420  particleName == "xi_c+" ||
421  particleName == "xi-" ) {
422  ph->RegisterProcess(hmsc, particle);
423  ph->RegisterProcess(new G4hIonisation(), particle);
424  ph->RegisterProcess(pnuc, particle);
425  }
426  }
427 
428  // Nuclear stopping
429  pnuc->SetMaxKinEnergy(MeV);
430 
431  // Deexcitation
432  //
435 
437 }
438 
439 //....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)
void SetHighEnergyLimit(G4double)
Definition: G4VEmModel.hh:707
void SetMinKinEnergy(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
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)
double G4double
Definition: G4Types.hh:76
G4EmLivermorePolarizedPhysics(G4int ver=1, const G4String &name="")
void SetActivationLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:728
void SetEmModel(G4VEmModel *, G4int index=0)
void SetLowestElectronEnergy(G4double val)
void SetMscRangeFactor(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
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
void SetStepLimitType(G4MscStepLimitType val)
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 G4EmParameters * Instance()