Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4EmDNAPhysics_stationary_option4.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 
27 
28 #include "G4SystemOfUnits.hh"
29 
31 
32 // *** Processes and models for Geant4-DNA
33 
34 #include "G4DNAElastic.hh"
36 #include "G4DNAIonElasticModel.hh"
37 
38 #include "G4DNAExcitation.hh"
39 #include "G4DNAAttachment.hh"
40 #include "G4DNAVibExcitation.hh"
41 #include "G4DNAIonisation.hh"
42 #include "G4DNAChargeDecrease.hh"
43 #include "G4DNAChargeIncrease.hh"
44 
47 
48 // particles
49 
50 #include "G4Electron.hh"
51 #include "G4Proton.hh"
52 #include "G4GenericIon.hh"
53 
54 // Warning : the following is needed in order to use EM Physics builders
55 // e+
56 #include "G4Positron.hh"
57 #include "G4eMultipleScattering.hh"
58 #include "G4eIonisation.hh"
59 #include "G4eBremsstrahlung.hh"
60 #include "G4eplusAnnihilation.hh"
61 // gamma
62 #include "G4Gamma.hh"
63 #include "G4PhotoElectricEffect.hh"
65 #include "G4ComptonScattering.hh"
67 #include "G4GammaConversion.hh"
69 #include "G4RayleighScattering.hh"
71 
72 #include "G4EmParameters.hh"
73 // end of warning
74 
75 #include "G4LossTableManager.hh"
76 #include "G4UAtomicDeexcitation.hh"
77 #include "G4PhysicsListHelper.hh"
78 #include "G4BuilderType.hh"
79 
80 // factory
82 //
84 
85 
86 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
87 
89  : G4VPhysicsConstructor("G4EmDNAPhysics_stationary_option4"), verbose(ver)
90 {
92  param->SetDefaults();
93  param->SetFluo(true);
94  param->SetAuger(true);
95  param->SetAugerCascade(true);
96  param->SetDeexcitationIgnoreCut(true);
97 
99 }
100 
101 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
102 
104 const G4String&)
105  : G4VPhysicsConstructor("G4EmDNAPhysics_stationary_option4"), verbose(ver)
106 {
108  param->SetDefaults();
109  param->SetFluo(true);
110  param->SetAuger(true);
111  param->SetAugerCascade(true);
112  param->SetDeexcitationIgnoreCut(true);
113 
115 }
116 
117 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
118 
120 {}
121 
122 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
123 
125 {
126 // bosons
127  G4Gamma::Gamma();
128 
129 // leptons
132 
133 // baryons
135 
137 
138  G4DNAGenericIonsManager * genericIonsManager;
139  genericIonsManager=G4DNAGenericIonsManager::Instance();
140  genericIonsManager->GetIon("alpha++");
141  genericIonsManager->GetIon("alpha+");
142  genericIonsManager->GetIon("helium");
143  genericIonsManager->GetIon("hydrogen");
144 
145 }
146 
147 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
148 
150 {
151  if(verbose > 1) {
152  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
153  }
155 
156  auto myParticleIterator=GetParticleIterator();
157  myParticleIterator->reset();
158  while( (*myParticleIterator)() )
159  {
160  G4ParticleDefinition* particle = myParticleIterator->value();
161  G4String particleName = particle->GetParticleName();
162 
163  if (particleName == "e-") {
164 
165  // *** Elastic scattering (two alternative models available) ***
166 
167  G4DNAElastic* theDNAElasticProcess =
168  new G4DNAElastic("e-_G4DNAElastic");
169  theDNAElasticProcess->SetEmModel(
171  ph->RegisterProcess(theDNAElasticProcess, particle);
172 
173  // *** Excitation ***
174 
175  G4DNAExcitation* theDNAExcitationProcess =
176  new G4DNAExcitation("e-_G4DNAExcitation");
177  theDNAExcitationProcess->SetEmModel(
180  (theDNAExcitationProcess->EmModel()))->SelectStationary(true);
181  ph->RegisterProcess(theDNAExcitationProcess, particle);
182 
183  // *** Ionisation ***
184 
185  G4DNAIonisation* theDNAIonisationProcess =
186  new G4DNAIonisation("e-_G4DNAIonisation");
187  theDNAIonisationProcess->SetEmModel(
190  (theDNAIonisationProcess->EmModel()))->SelectStationary(true);
191  ph->RegisterProcess(theDNAIonisationProcess, particle);
192 
193  // *** Vibrational excitation ***
194 
195  G4DNAVibExcitation* theDNAVibExcitationProcess =
196  new G4DNAVibExcitation("e-_G4DNAVibExcitation");
197  theDNAVibExcitationProcess->SetEmModel(
200  (theDNAVibExcitationProcess->EmModel()))->SelectStationary(true);
201  ph->RegisterProcess(theDNAVibExcitationProcess, particle);
202 
203  // *** Attachment ***
204 
205  G4DNAAttachment* theDNAAttachmentProcess =
206  new G4DNAAttachment("e-_G4DNAAttachment");
207  theDNAAttachmentProcess->SetEmModel(
210  (theDNAAttachmentProcess->EmModel()))->SelectStationary(true);
211  ph->RegisterProcess(theDNAAttachmentProcess, particle);
212 
213  } else if ( particleName == "proton" ) {
214 
215  // *** Elastic ***
216 
217  G4DNAElastic* theDNAElasticProcess =
218  new G4DNAElastic("proton_G4DNAElastic");
219  theDNAElasticProcess->SetEmModel(
220  new G4DNAIonElasticModel());
222  (theDNAElasticProcess->EmModel()))->SelectStationary(true);
223  ph->RegisterProcess(theDNAElasticProcess, particle);
224 
225  // *** Excitation ***
226 
227  G4DNAExcitation* theDNAExcitationProcess =
228  new G4DNAExcitation("proton_G4DNAExcitation");
229 
230  theDNAExcitationProcess->SetEmModel(
232  theDNAExcitationProcess->SetEmModel(
234 
236  (theDNAExcitationProcess->EmModel()))->SetLowEnergyLimit(10*eV);
238  (theDNAExcitationProcess->EmModel()))->SetHighEnergyLimit(500*keV);
240  (theDNAExcitationProcess->EmModel()))->SelectStationary(true);
241 
243  (theDNAExcitationProcess->EmModel(1)))->SetLowEnergyLimit(500*keV);
245  (theDNAExcitationProcess->EmModel(1)))->SetHighEnergyLimit(100*MeV);
247  (theDNAExcitationProcess->EmModel(1)))->SelectStationary(true);
248 
249  ph->RegisterProcess(theDNAExcitationProcess, particle);
250 
251  // *** Ionisation ***
252 
253  G4DNAIonisation* theDNAIonisationProcess =
254  new G4DNAIonisation("proton_G4DNAIonisation");
255 
256  theDNAIonisationProcess->SetEmModel(
258  theDNAIonisationProcess->SetEmModel(
260 
262  (theDNAIonisationProcess->EmModel()))->SetLowEnergyLimit(0*eV);
264  (theDNAIonisationProcess->EmModel()))->SetHighEnergyLimit(500*keV);
266  (theDNAIonisationProcess->EmModel()))->SelectStationary(true);
267 
269  (theDNAIonisationProcess->EmModel(1)))->SetLowEnergyLimit(500*keV);
271  (theDNAIonisationProcess->EmModel(1)))->SetHighEnergyLimit(100*MeV);
273  (theDNAIonisationProcess->EmModel(1)))->SelectStationary(true);
274  //
276  (theDNAIonisationProcess->EmModel(1)))->SelectFasterComputation(true);
277  //
278 
279  ph->RegisterProcess(theDNAIonisationProcess, particle);
280 
281  // *** Charge decrease ***
282 
283  G4DNAChargeDecrease* theDNAChargeDecreaseProcess =
284  new G4DNAChargeDecrease("proton_G4DNAChargeDecrease");
285  theDNAChargeDecreaseProcess->SetEmModel(
288  (theDNAChargeDecreaseProcess->EmModel()))->SelectStationary(true);
289  ph->RegisterProcess(theDNAChargeDecreaseProcess, particle);
290 
291  } else if ( particleName == "hydrogen" ) {
292 
293  // *** Elastic ***
294 
295  G4DNAElastic* theDNAElasticProcess =
296  new G4DNAElastic("hydrogen_G4DNAElastic");
297  theDNAElasticProcess->SetEmModel(
298  new G4DNAIonElasticModel());
300  (theDNAElasticProcess->EmModel()))->SelectStationary(true);
301  ph->RegisterProcess(theDNAElasticProcess, particle);
302 
303  // *** Excitation ***
304 
305  G4DNAExcitation* theDNAExcitationProcess =
306  new G4DNAExcitation("hydrogen_G4DNAExcitation");
307  theDNAExcitationProcess->SetEmModel(
310  (theDNAExcitationProcess->EmModel()))->SelectStationary(true);
311  ph->RegisterProcess(theDNAExcitationProcess, particle);
312 
313  // *** Ionisation ***
314 
315  G4DNAIonisation* theDNAIonisationProcess =
316  new G4DNAIonisation("hydrogen_G4DNAIonisation");
317  theDNAIonisationProcess->SetEmModel(
320  (theDNAIonisationProcess->EmModel()))->SelectStationary(true);
321  ph->RegisterProcess(theDNAIonisationProcess, particle);
322 
323  // *** Charge increase ***
324 
325  G4DNAChargeIncrease* theDNAChargeIncreaseProcess =
326  new G4DNAChargeIncrease("hydrogen_G4DNAChargeIncrease");
327  theDNAChargeIncreaseProcess->SetEmModel(
330  (theDNAChargeIncreaseProcess->EmModel()))->SelectStationary(true);
331  ph->RegisterProcess(theDNAChargeIncreaseProcess, particle);
332 
333  } else if ( particleName == "alpha" ) {
334 
335  // *** Elastic ***
336 
337  G4DNAElastic* theDNAElasticProcess =
338  new G4DNAElastic("alpha_G4DNAElastic");
339  theDNAElasticProcess->SetEmModel(
340  new G4DNAIonElasticModel());
342  (theDNAElasticProcess->EmModel()))->SelectStationary(true);
343  ph->RegisterProcess(theDNAElasticProcess, particle);
344 
345  // *** Excitation ***
346 
347  G4DNAExcitation* theDNAExcitationProcess =
348  new G4DNAExcitation("alpha_G4DNAExcitation");
349  theDNAExcitationProcess->SetEmModel(
352  (theDNAExcitationProcess->EmModel()))->SelectStationary(true);
353  ph->RegisterProcess(theDNAExcitationProcess, particle);
354 
355  // *** Ionisation ***
356 
357  G4DNAIonisation* theDNAIonisationProcess =
358  new G4DNAIonisation("alpha_G4DNAIonisation");
359  theDNAIonisationProcess->SetEmModel(
362  (theDNAIonisationProcess->EmModel()))->SelectStationary(true);
363  ph->RegisterProcess(theDNAIonisationProcess, particle);
364 
365  // *** Charge decrease ***
366 
367  G4DNAChargeDecrease* theDNAChargeDecreaseProcess =
368  new G4DNAChargeDecrease("alpha_G4DNAChargeDecrease");
369  theDNAChargeDecreaseProcess->SetEmModel(
372  (theDNAChargeDecreaseProcess->EmModel()))->SelectStationary(true);
373  ph->RegisterProcess(theDNAChargeDecreaseProcess, particle);
374 
375  } else if ( particleName == "alpha+" ) {
376 
377  // *** Elastic ***
378 
379  G4DNAElastic* theDNAElasticProcess =
380  new G4DNAElastic("alpha+_G4DNAElastic");
381  theDNAElasticProcess->SetEmModel(
382  new G4DNAIonElasticModel());
384  (theDNAElasticProcess->EmModel()))->SelectStationary(true);
385  ph->RegisterProcess(theDNAElasticProcess, particle);
386 
387  // *** Excitation ***
388 
389  G4DNAExcitation* theDNAExcitationProcess =
390  new G4DNAExcitation("alpha+_G4DNAExcitation");
391  theDNAExcitationProcess->SetEmModel(
394  (theDNAExcitationProcess->EmModel()))->SelectStationary(true);
395  ph->RegisterProcess(theDNAExcitationProcess, particle);
396 
397  // *** Ionisation ***
398 
399  G4DNAIonisation* theDNAIonisationProcess =
400  new G4DNAIonisation("alpha+_G4DNAIonisation");
401  theDNAIonisationProcess->SetEmModel(
404  (theDNAIonisationProcess->EmModel()))->SelectStationary(true);
405  ph->RegisterProcess(theDNAIonisationProcess, particle);
406 
407  // *** Charge decrease ***
408 
409  G4DNAChargeDecrease* theDNAChargeDecreaseProcess =
410  new G4DNAChargeDecrease("alpha+_G4DNAChargeDecrease");
411  theDNAChargeDecreaseProcess->SetEmModel(
414  (theDNAChargeDecreaseProcess->EmModel()))->SelectStationary(true);
415  ph->RegisterProcess(theDNAChargeDecreaseProcess, particle);
416 
417  // *** Charge increase ***
418 
419  G4DNAChargeIncrease* theDNAChargeIncreaseProcess =
420  new G4DNAChargeIncrease("alpha+_G4DNAChargeIncrease");
421  theDNAChargeIncreaseProcess->SetEmModel(
424  (theDNAChargeIncreaseProcess->EmModel()))->SelectStationary(true);
425  ph->RegisterProcess(theDNAChargeIncreaseProcess, particle);
426 
427  } else if ( particleName == "helium" ) {
428 
429  // *** Elastic ***
430 
431  G4DNAElastic* theDNAElasticProcess =
432  new G4DNAElastic("helium_G4DNAElastic");
433  theDNAElasticProcess->SetEmModel(
434  new G4DNAIonElasticModel());
436  (theDNAElasticProcess->EmModel()))->SelectStationary(true);
437  ph->RegisterProcess(theDNAElasticProcess, particle);
438 
439  // *** Excitation ***
440 
441  G4DNAExcitation* theDNAExcitationProcess =
442  new G4DNAExcitation("helium_G4DNAExcitation");
443  theDNAExcitationProcess->SetEmModel(
446  (theDNAExcitationProcess->EmModel()))->SelectStationary(true);
447  ph->RegisterProcess(theDNAExcitationProcess, particle);
448 
449  // *** Ionisation ***
450 
451  G4DNAIonisation* theDNAIonisationProcess =
452  new G4DNAIonisation("helium_G4DNAIonisation");
453  theDNAIonisationProcess->SetEmModel(
456  (theDNAIonisationProcess->EmModel()))->SelectStationary(true);
457  ph->RegisterProcess(theDNAIonisationProcess, particle);
458 
459  // *** Charge increase ***
460 
461  G4DNAChargeIncrease* theDNAChargeIncreaseProcess =
462  new G4DNAChargeIncrease("helium_G4DNAChargeIncrease");
463  theDNAChargeIncreaseProcess->SetEmModel(
466  (theDNAChargeIncreaseProcess->EmModel()))->SelectStationary(true);
467  ph->RegisterProcess(theDNAChargeIncreaseProcess, particle);
468 
469  } else if ( particleName == "GenericIon" ) {
470 
471  // *** Ionisation ***
472 
473  G4DNAIonisation* theDNAIonisationProcess =
474  new G4DNAIonisation("GenericIon_G4DNAIonisation");
475  theDNAIonisationProcess->SetEmModel(
478  (theDNAIonisationProcess->EmModel()))->SelectStationary(true);
479  ph->RegisterProcess(theDNAIonisationProcess, particle);
480 
481  }
482 
483  // Warning : the following particles and processes are needed by EM Physics
484  // builders
485  // They are taken from the default Livermore Physics list
486  // These particles are currently not handled by Geant4-DNA
487 
488  // e+
489 
490  else if (particleName == "e+") {
491 
492  // Identical to G4EmStandardPhysics_stationary
493 
496  G4eIonisation* eIoni = new G4eIonisation();
497  eIoni->SetStepFunction(0.2, 100*um);
498 
499  ph->RegisterProcess(msc, particle);
500  ph->RegisterProcess(eIoni, particle);
501  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
502  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
503 
504  } else if (particleName == "gamma") {
505 
506  // photoelectric effect - Livermore model only
507  G4PhotoElectricEffect* thePhotoElectricEffect = new G4PhotoElectricEffect();
508  thePhotoElectricEffect->SetEmModel(new G4LivermorePhotoElectricModel());
509  ph->RegisterProcess(thePhotoElectricEffect, particle);
510 
511  // Compton scattering - Livermore model only
512  G4ComptonScattering* theComptonScattering = new G4ComptonScattering();
513  theComptonScattering->SetEmModel(new G4LivermoreComptonModel());
514  ph->RegisterProcess(theComptonScattering, particle);
515 
516  // gamma conversion - Livermore model below 80 GeV
517  G4GammaConversion* theGammaConversion = new G4GammaConversion();
518  theGammaConversion->SetEmModel(new G4LivermoreGammaConversionModel());
519  ph->RegisterProcess(theGammaConversion, particle);
520 
521  // default Rayleigh scattering is Livermore
522  G4RayleighScattering* theRayleigh = new G4RayleighScattering();
523  ph->RegisterProcess(theRayleigh, particle);
524  }
525 
526  // Warning : end of particles and processes are needed by EM Physics build.
527 
528  }
529 
530  // Deexcitation
531  //
534 }
535 
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)
void SetDeexcitationIgnoreCut(G4bool val)
void SetStepFunction(G4double v1, G4double v2, G4bool lock=true)
static constexpr double MeV
Definition: G4SIunits.hh:214
static constexpr double keV
Definition: G4SIunits.hh:216
#define G4endl
Definition: G4ios.hh:61
const G4String & GetParticleName() const
G4VEmModel * EmModel(size_t index=0) const
G4DNABornExcitationModel1 G4DNABornExcitationModel
static G4Proton * Proton()
Definition: G4Proton.cc:93
static constexpr double um
Definition: G4SIunits.hh:113
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
void SetEmModel(G4VEmModel *, G4int index=0)
const G4String & GetPhysicsName() const
void SetFluo(G4bool val)
static G4Positron * Positron()
Definition: G4Positron.cc:94
static constexpr double eV
Definition: G4SIunits.hh:215
void SetAuger(G4bool val)
static G4Electron * Electron()
Definition: G4Electron.cc:94
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
void SetAugerCascade(G4bool val)
static G4GenericIon * GenericIonDefinition()
Definition: G4GenericIon.cc:88
static G4PhysicsListHelper * GetPhysicsListHelper()
int G4int
Definition: G4Types.hh:78
G4ParticleDefinition * GetIon(const G4String &name)
void SetStepLimitType(G4MscStepLimitType val)
#define G4DNABornIonisationModel
static G4DNAGenericIonsManager * Instance(void)
G4GLOB_DLL std::ostream G4cout
static G4LossTableManager * Instance()
void SetAtomDeexcitation(G4VAtomDeexcitation *)
G4ParticleTable::G4PTblDicIterator * GetParticleIterator() const
static G4EmParameters * Instance()