Geant4-11
G4EmStandardPhysicsSS.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: G4EmStandardPhysicsSS
30//
31// Author: V.Ivanchenko 09.11.2005
32//
33// Modified:
34// 05.12.2005 V.Ivanchenko add controlled verbosity
35// 13.11.2006 V.Ivanchenko use G4hMultipleScattering
36// 23.11.2006 V.Ivanchenko remove mscStepLimit option and improve cout
37// 13.02.2007 V.Ivanchenko use G4hMultipleScattering for muons
38// 13.02.2007 V.Ivanchenko set skin=0.0
39// 21.04.2008 V.Ivanchenko add long-lived D and B mesons
40//
41//----------------------------------------------------------------------------
42//
43
45#include "G4SystemOfUnits.hh"
47#include "G4EmParameters.hh"
48#include "G4EmBuilder.hh"
49#include "G4LossTableManager.hh"
50
52#include "G4GammaConversion.hh"
57
66
67//#include "G4eSingleCoulombScatteringModel.hh"
69
70#include "G4eIonisation.hh"
71#include "G4eBremsstrahlung.hh"
74#include "G4ePairProduction.hh"
75
76#include "G4hIonisation.hh"
77#include "G4ionIonisation.hh"
78
79#include "G4ParticleTable.hh"
80#include "G4Gamma.hh"
81#include "G4Electron.hh"
82#include "G4Positron.hh"
83#include "G4GenericIon.hh"
84
86#include "G4BuilderType.hh"
87#include "G4EmModelActivator.hh"
89
90// factory
92//
94
95//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
96
98 : G4VPhysicsConstructor("G4EmStandardSS")
99{
100 SetVerboseLevel(ver);
102 param->SetDefaults();
103 param->SetVerbose(ver);
105 param->SetMscThetaLimit(0.0);
106 param->SetUseMottCorrection(true); // use Mott-correction for e-/e+ msc gs
107 param->SetAuger(true);
108 param->SetPixe(true);
110}
111
112//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
113
115{}
116
117//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
118
120{
121 // minimal set of particles for EM physics
123}
124
125//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
126
128{
129 if(verboseLevel > 1) {
130 G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
131 }
133
136
137 // processes used by several particles
138 G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
139
140 // Add gamma EM Processes
142
143 // Photoelectric
146 pe->SetEmModel(peModel);
147 if(param->EnablePolarisation()) {
149 }
150
151 // Compton scattering
154
155 // Gamma conversion
157 G4VEmModel* conv = new G4BetheHeitler5DModel();
158 gc->SetEmModel(conv);
159
160 // default Rayleigh scattering is Livermore
162 if(param->EnablePolarisation()) {
164 }
165
166 if(param->GeneralProcessActive()) {
168 sp->AddEmProcess(pe);
169 sp->AddEmProcess(cs);
170 sp->AddEmProcess(gc);
171 sp->AddEmProcess(rl);
173 ph->RegisterProcess(sp, particle);
174 } else {
175 ph->RegisterProcess(pe, particle);
176 ph->RegisterProcess(cs, particle);
177 ph->RegisterProcess(gc, particle);
178 ph->RegisterProcess(rl, particle);
179 }
180 // e-
181 particle = G4Electron::Electron();
182
184 if(param->UseMottCorrection()) {
186 } else {
188 }
189 ph->RegisterProcess(new G4eIonisation(), particle);
190 ph->RegisterProcess(new G4eBremsstrahlung(), particle);
191
193 ph->RegisterProcess(ee, particle);
194 ph->RegisterProcess(ss, particle);
195
196 // e+
197 particle = G4Positron::Positron();
198
199 ss = new G4CoulombScattering();
200 if(param->UseMottCorrection()) {
202 } else {
204 }
205 ph->RegisterProcess(new G4eIonisation(), particle);
206 ph->RegisterProcess(new G4eBremsstrahlung(), particle);
207 ph->RegisterProcess(ee, particle);
208 ph->RegisterProcess(ss, particle);
209 ph->RegisterProcess(new G4eplusAnnihilation(), particle);
210
211 // generic ion
212 particle = G4GenericIon::GenericIon();
213 G4ionIonisation* ionIoni = new G4ionIonisation();
214 ph->RegisterProcess(ionIoni, particle);
215 ph->RegisterProcess(new G4CoulombScattering(), particle);
216
217 // muons, hadrons, ions
219
220 // extra configuration
222}
223
224//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@ bElectromagnetic
G4_DECLARE_PHYSCONSTR_FACTORY(G4EmStandardPhysicsSS)
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 ConstructChargedSS(G4hMultipleScattering *hmsc)
Definition: G4EmBuilder.cc:288
static void ConstructMinimalEmSet()
Definition: G4EmBuilder.cc:347
static void PrepareEMPhysics()
Definition: G4EmBuilder.cc:375
void SetLowestElectronEnergy(G4double val)
static G4EmParameters * Instance()
G4bool EnablePolarisation() const
void SetMscThetaLimit(G4double val)
G4bool UseMottCorrection() const
void SetVerbose(G4int val)
void SetPixe(G4bool val)
void SetAuger(G4bool val)
void SetUseMottCorrection(G4bool val)
G4bool GeneralProcessActive() const
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 SetAngularDistribution(G4VEmAngularDistribution *)
Definition: G4VEmModel.hh:628
void SetEmModel(G4VEmModel *, G4int index=0)
const G4String & GetPhysicsName() const
void SetVerboseLevel(G4int value)
static constexpr double eV