Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
TestEm13/src/PhysListEmPenelope.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 //
28 //
29 //
30 // $Id: PhysListEmPenelope.cc 108103 2017-12-22 12:38:12Z gcosmo $
31 //
32 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
33 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
34 
35 #include "PhysListEmPenelope.hh"
36 #include "G4BuilderType.hh"
37 #include "G4ParticleDefinition.hh"
38 #include "G4ProcessManager.hh"
39 #include "G4PhysicsListHelper.hh"
40 
41 // gamma
42 
43 #include "G4PhotoElectricEffect.hh"
45 
46 #include "G4ComptonScattering.hh"
48 
49 #include "G4GammaConversion.hh"
51 
52 #include "G4RayleighScattering.hh"
54 
55 // e-
56 
57 #include "G4eIonisation.hh"
60 
61 #include "G4eBremsstrahlung.hh"
63 
64 // e+
65 
66 #include "G4eplusAnnihilation.hh"
68 
69 // mu
70 
71 #include "G4MuIonisation.hh"
72 #include "G4MuBremsstrahlung.hh"
73 #include "G4MuPairProduction.hh"
74 
75 // hadrons, ions
76 
77 #include "G4hIonisation.hh"
78 #include "G4ionIonisation.hh"
79 
80 // deexcitation
81 
82 #include "G4LossTableManager.hh"
83 #include "G4UAtomicDeexcitation.hh"
84 
85 #include "G4SystemOfUnits.hh"
86 
87 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
88 
90  : G4VPhysicsConstructor(name)
91 {
93  param->SetDefaults();
94  param->SetMinEnergy(10*eV);
95  param->SetMaxEnergy(10*TeV);
96  param->SetNumberOfBinsPerDecade(10);
97  param->SetBuildCSDARange(true);
98  param->SetMaxEnergyForCSDARange(10*TeV);
100 
101  param->SetVerbose(0);
102  param->Dump();
103 }
104 
105 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
106 
108 { }
109 
110 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
111 
113 {
115 
116  // Add standard EM Processes
117 
119  particleIterator->reset();
120  while( (*particleIterator)() ){
121  G4ParticleDefinition* particle = particleIterator->value();
122  G4String particleName = particle->GetParticleName();
123 
124  //Applicability range for Penelope models
125  //for higher energies, the Standard models are used
126  G4double highEnergyLimit = 1*GeV;
127 
128  if (particleName == "gamma") {
129  // gamma
130 
133  photModel = new G4PenelopePhotoElectricModel();
134  photModel->SetHighEnergyLimit(highEnergyLimit);
135  phot->AddEmModel(0, photModel);
136  list->RegisterProcess(phot, particle);
137 
140  comptModel = new G4PenelopeComptonModel();
141  comptModel->SetHighEnergyLimit(highEnergyLimit);
142  compt->AddEmModel(0, comptModel);
143  list->RegisterProcess(compt, particle);
144 
145  G4GammaConversion* conv = new G4GammaConversion();
147  convModel = new G4PenelopeGammaConversionModel();
148  convModel->SetHighEnergyLimit(highEnergyLimit);
149  conv->AddEmModel(0, convModel);
150  list->RegisterProcess(conv, particle);
151 
154  raylModel = new G4PenelopeRayleighModel();
155  raylModel->SetHighEnergyLimit(highEnergyLimit);
156  rayl->AddEmModel(0, raylModel);
157  list->RegisterProcess(rayl, particle);
158 
159  } else if (particleName == "e-") {
160  //electron
161 
162  G4eIonisation* eIoni = new G4eIonisation();
164  eIoniModel = new G4PenelopeIonisationModel();
165  eIoniModel->SetHighEnergyLimit(highEnergyLimit);
166  eIoni->AddEmModel(0, eIoniModel, new G4UniversalFluctuation() );
167  list->RegisterProcess(eIoni, particle);
168 
169  G4eBremsstrahlung* eBrem = new G4eBremsstrahlung();
171  eBremModel = new G4PenelopeBremsstrahlungModel();
172  eBremModel->SetHighEnergyLimit(highEnergyLimit);
173  eBrem->AddEmModel(0, eBremModel);
174  list->RegisterProcess(eBrem, particle);
175 
176  } else if (particleName == "e+") {
177  //positron
178  G4eIonisation* eIoni = new G4eIonisation();
180  eIoniModel = new G4PenelopeIonisationModel();
181  eIoniModel->SetHighEnergyLimit(highEnergyLimit);
182  eIoni->AddEmModel(0, eIoniModel, new G4UniversalFluctuation() );
183  list->RegisterProcess(eIoni, particle);
184 
185  G4eBremsstrahlung* eBrem = new G4eBremsstrahlung();
187  eBremModel = new G4PenelopeBremsstrahlungModel();
188  eBremModel->SetHighEnergyLimit(highEnergyLimit);
189  eBrem->AddEmModel(0, eBremModel);
190  list->RegisterProcess(eBrem, particle);
191 
194  eAnniModel = new G4PenelopeAnnihilationModel();
195  eAnniModel->SetHighEnergyLimit(highEnergyLimit);
196  eAnni->AddEmModel(0, eAnniModel);
197  list->RegisterProcess(eAnni, particle);
198 
199  } else if( particleName == "mu+" ||
200  particleName == "mu-" ) {
201  //muon
202  list->RegisterProcess(new G4MuIonisation, particle);
203  list->RegisterProcess(new G4MuBremsstrahlung, particle);
204  list->RegisterProcess(new G4MuPairProduction, particle);
205 
206  } else if( particleName == "alpha" || particleName == "GenericIon" ) {
207  list->RegisterProcess(new G4ionIonisation, particle);
208 
209  } else if ((!particle->IsShortLived()) &&
210  (particle->GetPDGCharge() != 0.0) &&
211  (particle->GetParticleName() != "chargedgeantino")) {
212  //all others charged particles except geantino
213  list->RegisterProcess(new G4hIonisation, particle);
214  }
215  }
216  // Deexcitation
217  //
220 }
221 
222 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
223 
void SetMaxEnergy(G4double val)
const XML_Char * name
Definition: expat.h:151
void SetHighEnergyLimit(G4double)
Definition: G4VEmModel.hh:707
PhysListEmPenelope(const G4String &name="penelope")
const G4String & GetParticleName() const
void SetVerbose(G4int val)
G4double GetPDGCharge() const
void SetBuildCSDARange(G4bool val)
void SetMinEnergy(G4double val)
static constexpr double TeV
Definition: G4SIunits.hh:218
double G4double
Definition: G4Types.hh:76
void AddEmModel(G4int, G4VEmModel *, G4VEmFluctuationModel *fluc=0, const G4Region *region=nullptr)
static constexpr double eV
Definition: G4SIunits.hh:215
void SetNumberOfBinsPerDecade(G4int val)
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
static G4PhysicsListHelper * GetPhysicsListHelper()
std::vector< G4InuclElementaryParticle >::iterator particleIterator
Definition: G4BigBanger.cc:65
static G4LossTableManager * Instance()
void SetAtomDeexcitation(G4VAtomDeexcitation *)
G4ParticleTable::G4PTblDicIterator * GetParticleIterator() const
void AddEmModel(G4int, G4VEmModel *, const G4Region *region=nullptr)
void SetMaxEnergyForCSDARange(G4double val)
void Dump() const
static constexpr double GeV
Definition: G4SIunits.hh:217
static G4EmParameters * Instance()