Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4EmStandardPhysicsGS.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: G4EmStandardPhysicsGS
30//
31// Author: V.Ivanchenko 05.06.2015
32//
33// Modified:
34//
35// Class Description:
36//
37// Standard EM physics constructor for HEP applications with the Goudsmit
38// -Saunderson MSC model for e-/e+ Coulomb scattering below 100 [MeV] (instead
39// of the Urban model). Note, that the Goudsmit-Saunderson MSC model used here
40// with its HEP settings (i.e. less accurate). The Goudsmit-Saunderson MSC
41// model with its most accurate settings is used in the G4EmStandard_opt4
42// physics constructor for e-/e+ Coulomb scattering.
43//
44//----------------------------------------------------------------------------
45//
46
48#include "G4SystemOfUnits.hh"
50#include "G4EmParameters.hh"
51#include "G4EmBuilder.hh"
52#include "G4LossTableManager.hh"
53
55#include "G4GammaConversion.hh"
59
64#include "G4WentzelVIModel.hh"
65#include "G4UrbanMscModel.hh"
67
68#include "G4eIonisation.hh"
69#include "G4eBremsstrahlung.hh"
71
72#include "G4hIonisation.hh"
73#include "G4ionIonisation.hh"
74
75#include "G4Gamma.hh"
76#include "G4Electron.hh"
77#include "G4Positron.hh"
78#include "G4GenericIon.hh"
79
81#include "G4BuilderType.hh"
82#include "G4EmModelActivator.hh"
83
84// factory
86//
88
89//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
90
92 : G4VPhysicsConstructor("G4EmStandardGS"), verbose(ver)
93{
95 param->SetDefaults();
96 param->SetVerbose(verbose);
97 param->SetMscRangeFactor(0.06);
98 // param->SetMscStepLimitType(fUseSafetyPlus); // corresponds to the error-free stepping
99 // param->SetFluo(true);
101}
102
103//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
104
106{}
107
108//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
109
111{
112 // minimal set of particles for EM physics
114}
115
116//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
117
119{
120 if(verbose > 1) {
121 G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
122 }
125
126 // processes used by several particles
127 G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
128 G4NuclearStopping* pnuc(nullptr);
129
130 // high energy limit for e+- scattering models and bremsstrahlung
131 G4double highEnergyLimit = G4EmParameters::Instance()->MscEnergyLimit();
132
133 // Add gamma EM processes
135
138 ph->RegisterProcess(pee, particle);
139
140 ph->RegisterProcess(new G4ComptonScattering(), particle);
141 ph->RegisterProcess(new G4GammaConversion(), particle);
142 ph->RegisterProcess(new G4RayleighScattering(), particle);
143
144 // e-
145 particle = G4Electron::Electron();
146
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 G4GoudsmitSaundersonMscModel();
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)
void SetMscRangeFactor(G4double val)
G4EmStandardPhysicsGS(G4int ver=0, const G4String &name="")
static G4Gamma * Gamma()
Definition: G4Gamma.cc:85
static G4GenericIon * GenericIon()
Definition: G4GenericIon.cc:92
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