Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4EmStandardPhysicsWVI.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: G4EmStandardPhysicsWVI
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"
55
61#include "G4WentzelVIModel.hh"
64
65#include "G4eIonisation.hh"
66#include "G4eBremsstrahlung.hh"
69
70#include "G4hIonisation.hh"
71#include "G4ionIonisation.hh"
75#include "G4BraggIonModel.hh"
76#include "G4NuclearStopping.hh"
78
79#include "G4Gamma.hh"
80#include "G4Electron.hh"
81#include "G4Positron.hh"
82#include "G4GenericIon.hh"
83
85#include "G4BuilderType.hh"
86#include "G4EmModelActivator.hh"
87
88// factory
90//
92
93//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
94
96 : G4VPhysicsConstructor("G4EmStandardWVI"), verbose(ver)
97{
99 param->SetDefaults();
100 param->SetVerbose(verbose);
101 param->SetMinEnergy(10*CLHEP::eV);
102 param->SetLowestElectronEnergy(10*CLHEP::eV);
103 param->SetNumberOfBinsPerDecade(20);
105 param->SetStepFunction(0.2, 100*CLHEP::um);
106 param->SetStepFunctionMuHad(0.2, 50*CLHEP::um);
107 param->SetStepFunctionLightIons(0.1, 20*CLHEP::um);
108 param->SetStepFunctionIons(0.1, 1*CLHEP::um);
109 param->SetUseMottCorrection(true);
110 param->SetMuHadLateralDisplacement(true);
111 param->SetMscThetaLimit(0.15);
112 param->SetFluo(true);
114}
115
116//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
117
119{}
120
121//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
122
124{
125 // minimal set of particles for EM physics
127}
128
129//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
130
132{
133 if(verbose > 1) {
134 G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
135 }
138
139 // common processes
140 G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
141 G4NuclearStopping* pnuc(nullptr);
142
143 // Add gamma EM processes
145
148
151
152 ph->RegisterProcess(pee, particle);
153 ph->RegisterProcess(cs, particle);
154 ph->RegisterProcess(new G4GammaConversion(), particle);
155 ph->RegisterProcess(new G4RayleighScattering(), particle);
156
157 // e-
158 particle = G4Electron::Electron();
159
161 msc->SetEmModel(new G4WentzelVIModel());
163
164 ph->RegisterProcess(msc, particle);
165 ph->RegisterProcess(new G4eIonisation(), particle);
166 ph->RegisterProcess(new G4eBremsstrahlung(), particle);
167 ph->RegisterProcess(ss, particle);
168
169 // e+
170 particle = G4Positron::Positron();
171
172 msc = new G4eMultipleScattering;
173 msc->SetEmModel(new G4WentzelVIModel());
174 ss = new G4CoulombScattering();
175
178
179 ph->RegisterProcess(msc, particle);
180 ph->RegisterProcess(new G4eIonisation(), particle);
181 ph->RegisterProcess(new G4eBremsstrahlung(), particle);
182 ph->RegisterProcess(ann, particle);
183 ph->RegisterProcess(ss, particle);
184
185 // generic ion
186 particle = G4GenericIon::GenericIon();
187 G4ionIonisation* ionIoni = new G4ionIonisation();
188 ionIoni->SetEmModel(new G4BraggIonModel(),0);
189 ionIoni->SetEmModel(new G4AtimaEnergyLossModel(),1);
190 ionIoni->SetFluctModel(new G4AtimaFluctuations());
191 ph->RegisterProcess(hmsc, particle);
192 ph->RegisterProcess(ionIoni, particle);
193
194 // muons, hadrons, ions
196
197 // extra configuration
199}
200
201//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@ bElectromagnetic
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)
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
void SetMinEnergy(G4double val)
void SetLowestElectronEnergy(G4double val)
void SetStepFunctionLightIons(G4double v1, G4double v2)
void SetNumberOfBinsPerDecade(G4int val)
static G4EmParameters * Instance()
void SetMscThetaLimit(G4double val)
void SetMuHadLateralDisplacement(G4bool val)
void ActivateAngularGeneratorForIonisation(G4bool val)
void SetStepFunction(G4double v1, G4double v2)
void SetFluo(G4bool val)
void SetStepFunctionMuHad(G4double v1, G4double v2)
void SetVerbose(G4int val)
void SetStepFunctionIons(G4double v1, G4double v2)
void SetUseMottCorrection(G4bool val)
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 SetEmModel(G4VEmModel *, G4int index=0)
void SetFluctModel(G4VEmFluctuationModel *)
void SetEmModel(G4VEmModel *, G4int index=0)
void SetEmModel(G4VMscModel *, size_t index=0)
const G4String & GetPhysicsName() const