Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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
46#include "G4GammaConversion.hh"
50
55#include "G4WentzelVIModel.hh"
56#include "G4UrbanMscModel.hh"
57
58#include "G4eIonisation.hh"
59#include "G4eBremsstrahlung.hh"
61
62#include "G4hIonisation.hh"
63#include "G4ionIonisation.hh"
64
65#include "G4Gamma.hh"
66#include "G4Electron.hh"
67#include "G4Positron.hh"
68#include "G4GenericIon.hh"
69
71#include "G4BuilderType.hh"
72#include "G4EmModelActivator.hh"
74
75// factory
77//
79
80//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
81
83 : G4VPhysicsConstructor("G4EmStandard"), verbose(ver)
84{
86 param->SetDefaults();
87 param->SetVerbose(verbose);
89}
90
91//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
92
94{}
95
96//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
97
99{
100 // minimal set of particles for EM physics
102}
103
104//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
105
107{
108 if(verbose > 1) {
109 G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
110 }
112
114
115 // processes used by several particles
116 G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
117 G4NuclearStopping* pnuc(nullptr);
118
119 // high energy limit for e+- scattering models and bremsstrahlung
120 G4double highEnergyLimit = G4EmParameters::Instance()->MscEnergyLimit();
121
122 // Add gamma EM Processes
124
127
128 if(G4EmParameters::Instance()->GeneralProcessActive()) {
130 sp->AddEmProcess(pee);
131 sp->AddEmProcess(new G4ComptonScattering());
132 sp->AddEmProcess(new G4GammaConversion());
133 sp->AddEmProcess(new G4RayleighScattering());
135 ph->RegisterProcess(sp, particle);
136
137 } else {
138 ph->RegisterProcess(pee, particle);
139 ph->RegisterProcess(new G4ComptonScattering(), particle);
140 ph->RegisterProcess(new G4GammaConversion(), particle);
141 ph->RegisterProcess(new G4RayleighScattering(), particle);
142 }
143
144 // e-
145 particle = G4Electron::Electron();
146
148 G4UrbanMscModel* msc1 = new G4UrbanMscModel();
150 msc1->SetHighEnergyLimit(highEnergyLimit);
151 msc2->SetLowEnergyLimit(highEnergyLimit);
152 msc->SetEmModel(msc1);
153 msc->SetEmModel(msc2);
154
157 ss->SetEmModel(ssm);
158 ss->SetMinKinEnergy(highEnergyLimit);
159 ssm->SetLowEnergyLimit(highEnergyLimit);
160 ssm->SetActivationLowEnergyLimit(highEnergyLimit);
161
162 ph->RegisterProcess(msc, particle);
163 ph->RegisterProcess(new G4eIonisation(), particle);
164 ph->RegisterProcess(new G4eBremsstrahlung(), particle);
165 ph->RegisterProcess(ss, particle);
166
167 // e+
168 particle = G4Positron::Positron();
169
170 msc = new G4eMultipleScattering;
171 msc1 = new G4UrbanMscModel();
172 msc2 = new G4WentzelVIModel();
173 msc1->SetHighEnergyLimit(highEnergyLimit);
174 msc2->SetLowEnergyLimit(highEnergyLimit);
175 msc->SetEmModel(msc1);
176 msc->SetEmModel(msc2);
177
178 ssm = new G4eCoulombScatteringModel();
179 ss = new G4CoulombScattering();
180 ss->SetEmModel(ssm);
181 ss->SetMinKinEnergy(highEnergyLimit);
182 ssm->SetLowEnergyLimit(highEnergyLimit);
183 ssm->SetActivationLowEnergyLimit(highEnergyLimit);
184
185 ph->RegisterProcess(msc, particle);
186 ph->RegisterProcess(new G4eIonisation(), particle);
187 ph->RegisterProcess(new G4eBremsstrahlung(), particle);
188 ph->RegisterProcess(new G4eplusAnnihilation(), particle);
189 ph->RegisterProcess(ss, particle);
190
191 // generic ion
192 particle = G4GenericIon::GenericIon();
193 G4ionIonisation* ionIoni = new G4ionIonisation();
194 ph->RegisterProcess(hmsc, particle);
195 ph->RegisterProcess(ionIoni, particle);
196
197 // muons, hadrons ions
199
200 // extra configuration
202}
203
204//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@ bElectromagnetic
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)
double G4double
Definition: G4Types.hh:83
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:170
static void ConstructMinimalEmSet()
Definition: G4EmBuilder.cc:234
static void PrepareEMPhysics()
Definition: G4EmBuilder.cc:259
static G4EmParameters * Instance()
G4double MscEnergyLimit() const
void SetVerbose(G4int val)
G4EmStandardPhysics(G4int ver=0, 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:757
void SetActivationLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:778
void SetLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:764
void SetMinKinEnergy(G4double e)
void SetEmModel(G4VEmModel *, G4int index=0)
void SetEmModel(G4VMscModel *, size_t index=0)
const G4String & GetPhysicsName() const