Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4EmStandardPhysics_option4_channeling.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_option4_channeling.cc 99938 2016-10-12 08:06:52Z gcosmo $
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName: G4EmStandardPhysics_option4_channeling
31 //
32 // Author: V.Ivanchenko 28.09.2012 from Option3 physics constructor
33 //
34 // Modified:
35 //
36 //----------------------------------------------------------------------------
37 //
38 
40 
41 #include "G4SystemOfUnits.hh"
42 #include "G4ParticleDefinition.hh"
43 #include "G4LossTableManager.hh"
44 #include "G4EmParameters.hh"
45 
46 #include "G4ComptonScattering.hh"
47 #include "G4GammaConversion.hh"
48 #include "G4PhotoElectricEffect.hh"
49 #include "G4RayleighScattering.hh"
50 #include "G4PEEffectFluoModel.hh"
51 #include "G4KleinNishinaModel.hh"
52 #include "G4LowEPComptonModel.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"
65 
66 #include "G4eIonisation.hh"
67 #include "G4eBremsstrahlung.hh"
68 #include "G4Generator2BS.hh"
69 #include "G4Generator2BN.hh"
70 #include "G4SeltzerBergerModel.hh"
73 
74 #include "G4eplusAnnihilation.hh"
75 #include "G4UAtomicDeexcitation.hh"
76 
77 #include "G4MuIonisation.hh"
78 #include "G4MuBremsstrahlung.hh"
79 #include "G4MuPairProduction.hh"
80 #include "G4hBremsstrahlung.hh"
81 #include "G4hPairProduction.hh"
82 #include "G4ePairProduction.hh"
83 
88 
89 #include "G4hIonisation.hh"
90 #include "G4ionIonisation.hh"
92 #include "G4NuclearStopping.hh"
93 
94 #include "G4Gamma.hh"
95 #include "G4Electron.hh"
96 #include "G4Positron.hh"
97 #include "G4MuonPlus.hh"
98 #include "G4MuonMinus.hh"
99 #include "G4PionPlus.hh"
100 #include "G4PionMinus.hh"
101 #include "G4KaonPlus.hh"
102 #include "G4KaonMinus.hh"
103 #include "G4Proton.hh"
104 #include "G4AntiProton.hh"
105 #include "G4Deuteron.hh"
106 #include "G4Triton.hh"
107 #include "G4He3.hh"
108 #include "G4Alpha.hh"
109 #include "G4GenericIon.hh"
110 
111 #include "G4PhysicsListHelper.hh"
112 #include "G4BuilderType.hh"
113 #include "G4EmModelActivator.hh"
114 
115 // factory
117 //
119 
120 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
121 
123  const G4String&)
124  : G4VPhysicsConstructor("G4EmStandard_opt4_channeling"), verbose(ver)
125 {
127  param->SetDefaults();
128  param->SetVerbose(verbose);
129  param->SetMinEnergy(100*eV);
130  param->SetMaxEnergy(10*TeV);
131  param->SetLowestElectronEnergy(10*eV);
132  param->SetNumberOfBinsPerDecade(20);
134  param->SetMscThetaLimit(0.0);
135  param->SetFluo(true);
136  param->SetAuger(true);
137  param->SetPixe(true);
139 }
140 
141 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
142 
144 {}
145 
146 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
147 
149 {
150  // gamma
151  G4Gamma::Gamma();
152 
153  // leptons
158 
159  // mesons
164 
165  // barions
168 
169  // ions
172  G4He3::He3();
173  G4Alpha::Alpha();
175 }
176 
177 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
178 
180 {
181  if(verbose > 1) {
182  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
183  }
185 
186  // muon & hadron bremsstrahlung and pair production
196 
197  // muon & hadron multiple scattering
202 
203  // energy limits for e+- scattering models
204  //G4double highEnergyLimit = 100*MeV;
205  // energy limits for e+- ionisation models
206  G4double penEnergyLimit = 1*MeV;
207 
208  // nuclear stopping
209  G4NuclearStopping* pnuc = new G4NuclearStopping();
210 
211  // Add standard EM Processes
212  auto myParticleIterator=GetParticleIterator();
213  myParticleIterator->reset();
214  while( (*myParticleIterator)() ){
215  G4ParticleDefinition* particle = myParticleIterator->value();
216  G4String particleName = particle->GetParticleName();
217 
218  if (particleName == "gamma") {
219 
220  // Photoelectric
222  G4VEmModel* theLivermorePEModel = new G4LivermorePhotoElectricModel();
223  pe->SetEmModel(theLivermorePEModel,1);
224  ph->RegisterProcess(pe, particle);
225 
226  // Compton scattering
228  cs->SetEmModel(new G4KleinNishinaModel(),1);
229  G4VEmModel* theLowEPComptonModel = new G4LowEPComptonModel();
230  theLowEPComptonModel->SetHighEnergyLimit(20*MeV);
231  cs->AddEmModel(0, theLowEPComptonModel);
232  ph->RegisterProcess(cs, particle);
233 
234  // Gamma conversion
236  G4VEmModel* thePenelopeGCModel = new G4PenelopeGammaConversionModel();
237  thePenelopeGCModel->SetHighEnergyLimit(1*GeV);
238  gc->SetEmModel(thePenelopeGCModel,1);
239  ph->RegisterProcess(gc, particle);
240 
241  // Rayleigh scattering
242  ph->RegisterProcess(new G4RayleighScattering(), particle);
243 
244  } else if (particleName == "e-") {
245 
246  // multiple scattering
249  ss->SetEmModel(ssm, 1);
250 
251  // ionisation
252  G4eIonisation* eIoni = new G4eIonisation();
253  eIoni->SetStepFunction(0.2, 100*um);
255  pen->SetHighEnergyLimit(penEnergyLimit);
256  eIoni->AddEmModel(0, pen, new G4UniversalFluctuation());
257 
258  // bremsstrahlung
259  G4eBremsstrahlung* brem = new G4eBremsstrahlung();
264  brem->SetEmModel(br1,1);
265  brem->SetEmModel(br2,2);
266  br2->SetLowEnergyLimit(GeV);
267 
268  // register processes
269  ph->RegisterProcess(eIoni, particle);
270  ph->RegisterProcess(brem, particle);
271  ph->RegisterProcess(ee, particle);
272  ph->RegisterProcess(ss, particle);
273 
274  } else if (particleName == "e+") {
275 
276  // multiple scattering
279  ss->SetEmModel(ssm, 1);
280 
281  // ionisation
282  G4eIonisation* eIoni = new G4eIonisation();
283  eIoni->SetStepFunction(0.2, 100*um);
285  pen->SetHighEnergyLimit(penEnergyLimit);
286  eIoni->AddEmModel(0, pen, new G4UniversalFluctuation());
287 
288  // bremsstrahlung
289  G4eBremsstrahlung* brem = new G4eBremsstrahlung();
294  brem->SetEmModel(br1,1);
295  brem->SetEmModel(br2,2);
296  br2->SetLowEnergyLimit(GeV);
297 
298  // register processes
299  ph->RegisterProcess(eIoni, particle);
300  ph->RegisterProcess(brem, particle);
301  ph->RegisterProcess(ee, particle);
302  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
303  ph->RegisterProcess(ss, particle);
304 
305  } else if (particleName == "mu+" ||
306  particleName == "mu-" ) {
307 
308  G4MuIonisation* muIoni = new G4MuIonisation();
309  muIoni->SetStepFunction(0.2, 50*um);
310 
311  ph->RegisterProcess(muIoni, particle);
312  ph->RegisterProcess(mub, particle);
313  ph->RegisterProcess(mup, particle);
314  ph->RegisterProcess(muss, particle);
315 
316  } else if (particleName == "alpha" ||
317  particleName == "He3") {
318 
319  G4ionIonisation* ionIoni = new G4ionIonisation();
320  ionIoni->SetStepFunction(0.1, 10*um);
321 
322  ph->RegisterProcess(new G4CoulombScattering(), particle);
323  ph->RegisterProcess(ionIoni, particle);
324  //ph->RegisterProcess(pnuc, particle);
325 
326  } else if (particleName == "GenericIon") {
327 
328  G4ionIonisation* ionIoni = new G4ionIonisation();
329  ionIoni->SetEmModel(new G4IonParametrisedLossModel());
330  ionIoni->SetStepFunction(0.1, 1*um);
331 
332  ph->RegisterProcess(new G4CoulombScattering(), particle);
333  ph->RegisterProcess(ionIoni, particle);
334  //ph->RegisterProcess(pnuc, particle);
335 
336  } else if (particleName == "pi+" ||
337  particleName == "pi-" ) {
338 
339  //G4hMultipleScattering* pimsc = new G4hMultipleScattering();
340  G4hIonisation* hIoni = new G4hIonisation();
341  hIoni->SetStepFunction(0.2, 50*um);
342 
343  ph->RegisterProcess(hIoni, particle);
344  ph->RegisterProcess(pib, particle);
345  ph->RegisterProcess(pip, particle);
346  ph->RegisterProcess(piss, particle);
347 
348  } else if (particleName == "kaon+" ||
349  particleName == "kaon-" ) {
350 
351  //G4hMultipleScattering* kmsc = new G4hMultipleScattering();
352  G4hIonisation* hIoni = new G4hIonisation();
353  hIoni->SetStepFunction(0.2, 50*um);
354 
355  ph->RegisterProcess(hIoni, particle);
356  ph->RegisterProcess(kb, particle);
357  ph->RegisterProcess(kp, particle);
358  ph->RegisterProcess(kss, particle);
359 
360  } else if (particleName == "proton" ||
361  particleName == "anti_proton") {
362 
363  G4hIonisation* hIoni = new G4hIonisation();
364  hIoni->SetStepFunction(0.1, 20*um);
365 
366  ph->RegisterProcess(hIoni, particle);
367  ph->RegisterProcess(pb, particle);
368  ph->RegisterProcess(pp, particle);
369  ph->RegisterProcess(pss, particle);
370  //ph->RegisterProcess(pnuc, particle);
371 
372  } else if (particleName == "B+" ||
373  particleName == "B-" ||
374  particleName == "D+" ||
375  particleName == "D-" ||
376  particleName == "Ds+" ||
377  particleName == "Ds-" ||
378  particleName == "anti_He3" ||
379  particleName == "anti_alpha" ||
380  particleName == "anti_deuteron" ||
381  particleName == "anti_lambda_c+" ||
382  particleName == "anti_omega-" ||
383  particleName == "anti_sigma_c+" ||
384  particleName == "anti_sigma_c++" ||
385  particleName == "anti_sigma+" ||
386  particleName == "anti_sigma-" ||
387  particleName == "anti_triton" ||
388  particleName == "anti_xi_c+" ||
389  particleName == "anti_xi-" ||
390  particleName == "deuteron" ||
391  particleName == "lambda_c+" ||
392  particleName == "omega-" ||
393  particleName == "sigma_c+" ||
394  particleName == "sigma_c++" ||
395  particleName == "sigma+" ||
396  particleName == "sigma-" ||
397  particleName == "tau+" ||
398  particleName == "tau-" ||
399  particleName == "triton" ||
400  particleName == "xi_c+" ||
401  particleName == "xi-" ) {
402 
403  ph->RegisterProcess(new G4CoulombScattering(), particle);
404  ph->RegisterProcess(new G4hIonisation(), particle);
405  //ph->RegisterProcess(pnuc, particle);
406  }
407  }
408 
409  // Nuclear stopping
410  pnuc->SetMaxKinEnergy(MeV);
411 
412  // Deexcitation
415 
417 }
418 
419 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void SetMaxEnergy(G4double val)
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)
static G4He3 * He3()
Definition: G4He3.cc:94
void SetStepFunction(G4double v1, G4double v2, G4bool lock=true)
void SetEmModel(G4VEmModel *, G4int index=0)
static constexpr double MeV
Definition: G4SIunits.hh:214
void SetMaxKinEnergy(G4double e)
void SetHighEnergyLimit(G4double)
Definition: G4VEmModel.hh:707
#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
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)
static constexpr double TeV
Definition: G4SIunits.hh:218
double G4double
Definition: G4Types.hh:76
void SetMscThetaLimit(G4double val)
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 SetPixe(G4bool val)
void SetAngularDistribution(G4VEmAngularDistribution *)
Definition: G4VEmModel.hh:582
void SetAuger(G4bool val)
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
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 *)
G4ParticleTable::G4PTblDicIterator * GetParticleIterator() const
void AddEmModel(G4int, G4VEmModel *, const G4Region *region=nullptr)
static G4KaonPlus * KaonPlusDefinition()
Definition: G4KaonPlus.cc:108
G4EmStandardPhysics_option4_channeling(G4int ver=1, const G4String &name="")
static constexpr double GeV
Definition: G4SIunits.hh:217
static G4EmParameters * Instance()