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

#include <G4EmStandardPhysics.hh>

+ Inheritance diagram for G4EmStandardPhysics:

Public Member Functions

 G4EmStandardPhysics (G4int ver=0, const G4String &name="")
 
 ~G4EmStandardPhysics () 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
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 
G4int GetInstanceID () const
 
virtual void TerminateWorker ()
 

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
 
G4String namePhysics
 
G4int typePhysics
 
G4ParticleTabletheParticleTable
 
G4int g4vpcInstanceID
 
- Static Protected Attributes inherited from G4VPhysicsConstructor
static G4RUN_DLL G4VPCManager subInstanceManager
 

Detailed Description

Definition at line 51 of file G4EmStandardPhysics.hh.

Constructor & Destructor Documentation

◆ G4EmStandardPhysics()

G4EmStandardPhysics::G4EmStandardPhysics ( G4int  ver = 0,
const G4String name = "" 
)
explicit

Definition at line 82 of file G4EmStandardPhysics.cc.

83 : G4VPhysicsConstructor("G4EmStandard"), verbose(ver)
84{
86 param->SetDefaults();
87 param->SetVerbose(verbose);
89}
@ bElectromagnetic
static G4EmParameters * Instance()
void SetVerbose(G4int val)

◆ ~G4EmStandardPhysics()

G4EmStandardPhysics::~G4EmStandardPhysics ( )
override

Definition at line 93 of file G4EmStandardPhysics.cc.

94{}

Member Function Documentation

◆ ConstructParticle()

void G4EmStandardPhysics::ConstructParticle ( )
overridevirtual

Implements G4VPhysicsConstructor.

Definition at line 98 of file G4EmStandardPhysics.cc.

99{
100 // minimal set of particles for EM physics
102}
static void ConstructMinimalEmSet()
Definition: G4EmBuilder.cc:234

◆ ConstructProcess()

void G4EmStandardPhysics::ConstructProcess ( )
overridevirtual

Implements G4VPhysicsConstructor.

Definition at line 106 of file G4EmStandardPhysics.cc.

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}
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:170
static void PrepareEMPhysics()
Definition: G4EmBuilder.cc:259
G4double MscEnergyLimit() 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 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

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