Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4EmStandardPhysicsGS Class Reference

#include <G4EmStandardPhysicsGS.hh>

+ Inheritance diagram for G4EmStandardPhysicsGS:

Public Member Functions

 G4EmStandardPhysicsGS (G4int ver=1, const G4String &name="")
 
 ~G4EmStandardPhysicsGS () override
 
void ConstructParticle () override
 
void ConstructProcess () override
 
- Public Member Functions inherited from G4VPhysicsConstructor
 G4VPhysicsConstructor (const G4String &="")
 
 G4VPhysicsConstructor (const G4String &name, G4int physics_type)
 
virtual ~G4VPhysicsConstructor ()
 
virtual void ConstructParticle ()=0
 
virtual void ConstructProcess ()=0
 
void SetPhysicsName (const G4String &="")
 
const G4StringGetPhysicsName () const
 
void SetPhysicsType (G4int)
 
G4int GetPhysicsType () const
 
G4int GetInstanceID () const
 
virtual void TerminateWorker ()
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VPhysicsConstructor
static const G4VPCManagerGetSubInstanceManager ()
 
- Protected Types inherited from G4VPhysicsConstructor
using PhysicsBuilder_V = G4VPCData::PhysicsBuilders_V
 
- Protected Member Functions inherited from G4VPhysicsConstructor
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
 
G4ParticleTable::G4PTblDicIteratorGetParticleIterator () const
 
PhysicsBuilder_V GetBuilders () const
 
void AddBuilder (G4PhysicsBuilderInterface *bld)
 
- Protected Attributes inherited from G4VPhysicsConstructor
G4int verboseLevel = 0
 
G4String namePhysics = ""
 
G4int typePhysics = 0
 
G4ParticleTabletheParticleTable = nullptr
 
G4int g4vpcInstanceID = 0
 
- Static Protected Attributes inherited from G4VPhysicsConstructor
static G4RUN_DLL G4VPCManager subInstanceManager
 

Detailed Description

Definition at line 51 of file G4EmStandardPhysicsGS.hh.

Constructor & Destructor Documentation

◆ G4EmStandardPhysicsGS()

G4EmStandardPhysicsGS::G4EmStandardPhysicsGS ( G4int  ver = 1,
const G4String name = "" 
)
explicit

Definition at line 91 of file G4EmStandardPhysicsGS.cc.

92 : G4VPhysicsConstructor("G4EmStandardGS")
93{
94 SetVerboseLevel(ver);
96 param->SetDefaults();
97 param->SetVerbose(ver);
98 param->SetMscRangeFactor(0.06);
99 // param->SetMscStepLimitType(fUseSafetyPlus); // corresponds to the error-free stepping
100 // param->SetFluo(true);
102}
@ bElectromagnetic
static G4EmParameters * Instance()
void SetVerbose(G4int val)
void SetMscRangeFactor(G4double val)
void SetVerboseLevel(G4int value)

◆ ~G4EmStandardPhysicsGS()

G4EmStandardPhysicsGS::~G4EmStandardPhysicsGS ( )
override

Definition at line 106 of file G4EmStandardPhysicsGS.cc.

107{}

Member Function Documentation

◆ ConstructParticle()

void G4EmStandardPhysicsGS::ConstructParticle ( )
overridevirtual

Implements G4VPhysicsConstructor.

Definition at line 111 of file G4EmStandardPhysicsGS.cc.

112{
113 // minimal set of particles for EM physics
115}
static void ConstructMinimalEmSet()
Definition: G4EmBuilder.cc:360

◆ ConstructProcess()

void G4EmStandardPhysicsGS::ConstructProcess ( )
overridevirtual

Implements G4VPhysicsConstructor.

Definition at line 119 of file G4EmStandardPhysicsGS.cc.

120{
121 if(verboseLevel > 1) {
122 G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
123 }
126
127 // processes used by several particles
128 G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
129 G4NuclearStopping* pnuc(nullptr);
130
131 // high energy limit for e+- scattering models and bremsstrahlung
132 G4double highEnergyLimit = G4EmParameters::Instance()->MscEnergyLimit();
133
134 // Add gamma EM processes
136
139 ph->RegisterProcess(pee, particle);
140
141 ph->RegisterProcess(new G4ComptonScattering(), particle);
142 ph->RegisterProcess(new G4GammaConversion(), particle);
143 ph->RegisterProcess(new G4RayleighScattering(), particle);
144
145 // e-
146 particle = G4Electron::Electron();
147
151 msc1->SetHighEnergyLimit(highEnergyLimit);
152 msc2->SetLowEnergyLimit(highEnergyLimit);
153 msc->SetEmModel(msc1);
154 msc->SetEmModel(msc2);
155
158 ss->SetEmModel(ssm);
159 ss->SetMinKinEnergy(highEnergyLimit);
160 ssm->SetLowEnergyLimit(highEnergyLimit);
161 ssm->SetActivationLowEnergyLimit(highEnergyLimit);
162
163 ph->RegisterProcess(msc, particle);
164 ph->RegisterProcess(new G4eIonisation(), particle);
165 ph->RegisterProcess(new G4eBremsstrahlung(), particle);
166 ph->RegisterProcess(ss, particle);
167
168 // e+
169 particle = G4Positron::Positron();
170
171 msc = new G4eMultipleScattering;
172 msc1 = new G4GoudsmitSaundersonMscModel();
173 msc2 = new G4WentzelVIModel();
174 msc1->SetHighEnergyLimit(highEnergyLimit);
175 msc2->SetLowEnergyLimit(highEnergyLimit);
176 msc->SetEmModel(msc1);
177 msc->SetEmModel(msc2);
178
179 ssm = new G4eCoulombScatteringModel();
180 ss = new G4CoulombScattering();
181 ss->SetEmModel(ssm);
182 ss->SetMinKinEnergy(highEnergyLimit);
183 ssm->SetLowEnergyLimit(highEnergyLimit);
184 ssm->SetActivationLowEnergyLimit(highEnergyLimit);
185
186 ph->RegisterProcess(msc, particle);
187 ph->RegisterProcess(new G4eIonisation(), particle);
188 ph->RegisterProcess(new G4eBremsstrahlung(), particle);
189 ph->RegisterProcess(new G4eplusAnnihilation(), particle);
190 ph->RegisterProcess(ss, particle);
191
192 // generic ion
193 particle = G4GenericIon::GenericIon();
194 G4ionIonisation* ionIoni = new G4ionIonisation();
195 ph->RegisterProcess(hmsc, particle);
196 ph->RegisterProcess(ionIoni, particle);
197
198 // muons, hadrons, ions
200
201 // extra configuration
203}
double G4double
Definition: G4Types.hh:83
#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:232
static void PrepareEMPhysics()
Definition: G4EmBuilder.cc:399
G4double MscEnergyLimit() const
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:746
void SetActivationLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:767
void SetLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:753
void SetMinKinEnergy(G4double e)
void SetEmModel(G4VEmModel *, G4int index=0)
void SetEmModel(G4VMscModel *, G4int idx=0)
const G4String & GetPhysicsName() const

The documentation for this class was generated from the following files: