Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
TestEm13/src/PhysListEmLivermore.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: PhysListEmLivermore.cc 108103 2017-12-22 12:38:12Z gcosmo $
31 //
32 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
33 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
34 
35 #include "PhysListEmLivermore.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"
67 
68 // mu
69 
70 #include "G4MuIonisation.hh"
71 #include "G4MuBremsstrahlung.hh"
72 #include "G4MuPairProduction.hh"
73 
74 // hadrons, ions
75 
76 #include "G4hIonisation.hh"
77 #include "G4ionIonisation.hh"
78 
79 // deexcitation
80 
81 #include "G4LossTableManager.hh"
82 #include "G4UAtomicDeexcitation.hh"
83 
84 #include "G4SystemOfUnits.hh"
85 
86 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
87 
89  : G4VPhysicsConstructor(name)
90 {
92  param->SetDefaults();
93  param->SetMinEnergy(10*eV);
94  param->SetMaxEnergy(10*TeV);
95  param->SetNumberOfBinsPerDecade(10);
96  param->SetBuildCSDARange(true);
97  param->SetMaxEnergyForCSDARange(10*TeV);
99 
100  param->SetVerbose(0);
101  param->Dump();
102  }
103 
104 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
105 
107 { }
108 
109 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
110 
112 {
114 
115  // Add Livermore EM Processes
116 
118  particleIterator->reset();
119  while( (*particleIterator)() ){
120  G4ParticleDefinition* particle = particleIterator->value();
121  G4String particleName = particle->GetParticleName();
122 
123  //Applicability range for Livermore models
124  //for higher energies, the Standard models are used
125  G4double highEnergyLimit = 1*GeV;
126 
127  if (particleName == "gamma") {
128  // gamma
129 
132  photModel = new G4LivermorePhotoElectricModel();
133  photModel->SetHighEnergyLimit(highEnergyLimit);
134  phot->AddEmModel(0, photModel);
135  list->RegisterProcess(phot, particle);
136 
139  comptModel = new G4LivermoreComptonModel();
140  comptModel->SetHighEnergyLimit(highEnergyLimit);
141  compt->AddEmModel(0, comptModel);
142  list->RegisterProcess(compt, particle);
143 
144  G4GammaConversion* conv = new G4GammaConversion();
146  convModel = new G4LivermoreGammaConversionModel();
147  convModel->SetHighEnergyLimit(highEnergyLimit);
148  conv->AddEmModel(0, convModel);
149  list->RegisterProcess(conv, particle);
150 
153  raylModel = new G4LivermoreRayleighModel();
154  raylModel->SetHighEnergyLimit(highEnergyLimit);
155  rayl->AddEmModel(0, raylModel);
156  list->RegisterProcess(rayl, particle);
157 
158  } else if (particleName == "e-") {
159  //electron
160 
161  G4eIonisation* eIoni = new G4eIonisation();
163  eIoniModel = new G4LivermoreIonisationModel();
164  eIoniModel->SetHighEnergyLimit(highEnergyLimit);
165  eIoni->AddEmModel(0, eIoniModel, new G4UniversalFluctuation() );
166  list->RegisterProcess(eIoni, particle);
167 
168  G4eBremsstrahlung* eBrem = new G4eBremsstrahlung();
170  eBremModel = new G4LivermoreBremsstrahlungModel();
171  eBremModel->SetHighEnergyLimit(highEnergyLimit);
172  eBrem->AddEmModel(0, eBremModel);
173  list->RegisterProcess(eBrem, particle);
174 
175  } else if (particleName == "e+") {
176  //positron
177  list->RegisterProcess(new G4eIonisation, particle);
178  list->RegisterProcess(new G4eBremsstrahlung, particle);
179  list->RegisterProcess(new G4eplusAnnihilation, particle);
180 
181  } else if( particleName == "mu+" ||
182  particleName == "mu-" ) {
183  //muon
184  list->RegisterProcess(new G4MuIonisation, particle);
185  list->RegisterProcess(new G4MuBremsstrahlung, particle);
186  list->RegisterProcess(new G4MuPairProduction, particle);
187 
188  } else if( particleName == "alpha" || particleName == "GenericIon" ) {
189  list->RegisterProcess(new G4ionIonisation, particle);
190 
191  } else if ((!particle->IsShortLived()) &&
192  (particle->GetPDGCharge() != 0.0) &&
193  (particle->GetParticleName() != "chargedgeantino")) {
194  //all others charged particles except geantino
195  list->RegisterProcess(new G4hIonisation, particle);
196  }
197  }
198  // Deexcitation
199  //
202 }
203 
204 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
205 
void SetMaxEnergy(G4double val)
const XML_Char * name
Definition: expat.h:151
void SetHighEnergyLimit(G4double)
Definition: G4VEmModel.hh:707
PhysListEmLivermore(const G4String &name="livermore")
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()