Geant4-11
G4EmStandardPhysics.cc
Go to the documentation of this file.
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//
27//---------------------------------------------------------------------------
28//
29// ClassName: G4EmStandardPhysics
30//
31// Author: V.Ivanchenko 09.11.2005
32//
33// Modified:
34//
35//----------------------------------------------------------------------------
36//
37
39#include "G4SystemOfUnits.hh"
41#include "G4EmParameters.hh"
42#include "G4EmBuilder.hh"
43#include "G4LossTableManager.hh"
44
47#include "G4GammaConversion.hh"
53
58#include "G4WentzelVIModel.hh"
59#include "G4UrbanMscModel.hh"
60
61#include "G4eIonisation.hh"
62#include "G4eBremsstrahlung.hh"
64
65#include "G4hIonisation.hh"
66#include "G4ionIonisation.hh"
67#include "G4NuclearStopping.hh"
68
69#include "G4Gamma.hh"
70#include "G4Electron.hh"
71#include "G4Positron.hh"
72#include "G4GenericIon.hh"
73
75#include "G4BuilderType.hh"
76#include "G4EmModelActivator.hh"
78
79// factory
81//
83
84//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
85
87 : G4VPhysicsConstructor("G4EmStandard")
88{
89 SetVerboseLevel(ver);
91 param->SetDefaults();
92 param->SetVerbose(ver);
94}
95
96//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
97
99{}
100
101//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
102
104{
105 // minimal set of particles for EM physics
107}
108
109//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
110
112{
113 if(verboseLevel > 1) {
114 G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
115 }
117
120
121 // processes used by several particles
122 G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
123
124 // nuclear stopping is enabled if th eenergy limit above zero
125 G4double nielEnergyLimit = param->MaxNIELEnergy();
126 G4NuclearStopping* pnuc = nullptr;
127 if(nielEnergyLimit > 0.0) {
128 pnuc = new G4NuclearStopping();
129 pnuc->SetMaxKinEnergy(nielEnergyLimit);
130 }
131
132 // high energy limit for e+- scattering models and bremsstrahlung
133 G4double highEnergyLimit = param->MscEnergyLimit();
134
135 // Add gamma EM Processes
137 G4bool polar = param->EnablePolarisation();
138
139 // Photoelectric
142 pe->SetEmModel(peModel);
143 if(polar) {
145 }
146
147 // Compton scattering
149 if(polar) {
151 }
152
153 // default Rayleigh scattering is Livermore
155 if(polar) {
157 }
158
159 if(G4EmParameters::Instance()->GeneralProcessActive()) {
161 sp->AddEmProcess(pe);
162 sp->AddEmProcess(cs);
163 sp->AddEmProcess(new G4GammaConversion());
164 sp->AddEmProcess(rl);
166 ph->RegisterProcess(sp, particle);
167
168 } else {
169 ph->RegisterProcess(pe, particle);
170 ph->RegisterProcess(cs, particle);
171 ph->RegisterProcess(new G4GammaConversion(), particle);
172 ph->RegisterProcess(rl, particle);
173 }
174
175 // e-
176 particle = G4Electron::Electron();
177
179 G4UrbanMscModel* msc1 = new G4UrbanMscModel();
181 msc1->SetHighEnergyLimit(highEnergyLimit);
182 msc2->SetLowEnergyLimit(highEnergyLimit);
183 msc->SetEmModel(msc1);
184 msc->SetEmModel(msc2);
185
188 ss->SetEmModel(ssm);
189 ss->SetMinKinEnergy(highEnergyLimit);
190 ssm->SetLowEnergyLimit(highEnergyLimit);
191 ssm->SetActivationLowEnergyLimit(highEnergyLimit);
192
193 ph->RegisterProcess(msc, particle);
194 ph->RegisterProcess(new G4eIonisation(), particle);
195 ph->RegisterProcess(new G4eBremsstrahlung(), particle);
196 ph->RegisterProcess(ss, particle);
197
198 // e+
199 particle = G4Positron::Positron();
200
201 msc = new G4eMultipleScattering;
202 msc1 = new G4UrbanMscModel();
203 msc2 = new G4WentzelVIModel();
204 msc1->SetHighEnergyLimit(highEnergyLimit);
205 msc2->SetLowEnergyLimit(highEnergyLimit);
206 msc->SetEmModel(msc1);
207 msc->SetEmModel(msc2);
208
209 ssm = new G4eCoulombScatteringModel();
210 ss = new G4CoulombScattering();
211 ss->SetEmModel(ssm);
212 ss->SetMinKinEnergy(highEnergyLimit);
213 ssm->SetLowEnergyLimit(highEnergyLimit);
214 ssm->SetActivationLowEnergyLimit(highEnergyLimit);
215
216 ph->RegisterProcess(msc, particle);
217 ph->RegisterProcess(new G4eIonisation(), particle);
218 ph->RegisterProcess(new G4eBremsstrahlung(), particle);
219 ph->RegisterProcess(new G4eplusAnnihilation(), particle);
220 ph->RegisterProcess(ss, particle);
221
222 // generic ion
223 particle = G4GenericIon::GenericIon();
224 G4ionIonisation* ionIoni = new G4ionIonisation();
225 ph->RegisterProcess(hmsc, particle);
226 ph->RegisterProcess(ionIoni, particle);
227 if(nullptr != pnuc) { ph->RegisterProcess(pnuc, particle); }
228
229 // muons, hadrons ions
231
232 // extra configuration
234}
235
236//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@ bElectromagnetic
G4_DECLARE_PHYSCONSTR_FACTORY(G4EmStandardPhysics)
double G4double
Definition: G4Types.hh:83
bool G4bool
Definition: G4Types.hh:86
int G4int
Definition: G4Types.hh:85
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
static G4Electron * Electron()
Definition: G4Electron.cc:93
static void ConstructCharged(G4hMultipleScattering *hmsc, G4NuclearStopping *nucStopping, G4bool isWVI=true)
Definition: G4EmBuilder.cc:219
static void ConstructMinimalEmSet()
Definition: G4EmBuilder.cc:347
static void PrepareEMPhysics()
Definition: G4EmBuilder.cc:375
static G4EmParameters * Instance()
G4bool EnablePolarisation() const
G4double MaxNIELEnergy() const
G4double MscEnergyLimit() const
void SetVerbose(G4int val)
G4EmStandardPhysics(G4int ver=1, const G4String &name="")
void ConstructParticle() override
void ConstructProcess() override
static G4Gamma * Gamma()
Definition: G4Gamma.cc:85
static G4GenericIon * GenericIon()
Definition: G4GenericIon.cc:92
static G4LossTableManager * Instance()
void SetGammaGeneralProcess(G4VEmProcess *)
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
static G4PhysicsListHelper * GetPhysicsListHelper()
static G4Positron * Positron()
Definition: G4Positron.cc:93
void SetHighEnergyLimit(G4double)
Definition: G4VEmModel.hh:767
void SetActivationLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:788
void SetLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:774
void SetAngularDistribution(G4VEmAngularDistribution *)
Definition: G4VEmModel.hh:628
void SetMinKinEnergy(G4double e)
void SetEmModel(G4VEmModel *, G4int index=0)
void SetMaxKinEnergy(G4double e)
void SetEmModel(G4VMscModel *, G4int idx=0)
const G4String & GetPhysicsName() const
void SetVerboseLevel(G4int value)