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

#include <G4EmStandardPhysics_option1.hh>

+ Inheritance diagram for G4EmStandardPhysics_option1:

Public Member Functions

 G4EmStandardPhysics_option1 (G4int ver=1, const G4String &name="")
 
 ~G4EmStandardPhysics_option1 () 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 53 of file G4EmStandardPhysics_option1.hh.

Constructor & Destructor Documentation

◆ G4EmStandardPhysics_option1()

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

Definition at line 82 of file G4EmStandardPhysics_option1.cc.

84 : G4VPhysicsConstructor("G4EmStandard_opt1")
85{
86 SetVerboseLevel(ver);
88 param->SetDefaults();
89 param->SetVerbose(ver);
90 param->SetApplyCuts(true);
91 param->SetGeneralProcessActive(true);
92 // Enable the combined G4TransportationWithMsc, but not the internal stepping.
93 param->SetTransportationWithMsc(G4TransportationWithMscType::fEnabled);
94 param->SetStepFunction(0.8, 1*CLHEP::mm);
95 param->SetMscRangeFactor(0.2);
98}
@ bElectromagnetic
@ fMinimal
static G4EmParameters * Instance()
void SetGeneralProcessActive(G4bool val)
void SetStepFunction(G4double v1, G4double v2)
void SetVerbose(G4int val)
void SetApplyCuts(G4bool val)
void SetMscStepLimitType(G4MscStepLimitType val)
void SetTransportationWithMsc(G4TransportationWithMscType val)
void SetMscRangeFactor(G4double val)
void SetVerboseLevel(G4int value)

◆ ~G4EmStandardPhysics_option1()

G4EmStandardPhysics_option1::~G4EmStandardPhysics_option1 ( )
override

Definition at line 102 of file G4EmStandardPhysics_option1.cc.

103{}

Member Function Documentation

◆ ConstructParticle()

void G4EmStandardPhysics_option1::ConstructParticle ( )
overridevirtual

Implements G4VPhysicsConstructor.

Definition at line 107 of file G4EmStandardPhysics_option1.cc.

108{
109 // minimal set of particles for EM physics
111}
static void ConstructMinimalEmSet()
Definition: G4EmBuilder.cc:360

◆ ConstructProcess()

void G4EmStandardPhysics_option1::ConstructProcess ( )
overridevirtual

Implements G4VPhysicsConstructor.

Definition at line 115 of file G4EmStandardPhysics_option1.cc.

116{
117 if(verboseLevel > 1) {
118 G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
119 }
121
123
124 // processes used by several particles
125 G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
126 G4NuclearStopping* pnuc(nullptr);
127
128 // high energy limit for e+- scattering models and bremsstrahlung
129 G4double highEnergyLimit = G4EmParameters::Instance()->MscEnergyLimit();
130
131 // Add gamma EM Processes
133
136
137 if(G4EmParameters::Instance()->GeneralProcessActive()) {
139 sp->AddEmProcess(pee);
140 sp->AddEmProcess(new G4ComptonScattering());
141 sp->AddEmProcess(new G4GammaConversion());
143 ph->RegisterProcess(sp, particle);
144
145 } else {
146 ph->RegisterProcess(pee, particle);
147 ph->RegisterProcess(new G4ComptonScattering(), particle);
148 ph->RegisterProcess(new G4GammaConversion(), particle);
149 }
150
151 // e-
152 particle = G4Electron::Electron();
153
154 G4eIonisation* eioni = new G4eIonisation();
155
156 G4UrbanMscModel* msc1 = new G4UrbanMscModel();
158 msc1->SetHighEnergyLimit(highEnergyLimit);
159 msc2->SetLowEnergyLimit(highEnergyLimit);
160 G4EmBuilder::ConstructElectronMscProcess(msc1, msc2, particle);
161
164 ss->SetEmModel(ssm);
165 ss->SetMinKinEnergy(highEnergyLimit);
166 ssm->SetLowEnergyLimit(highEnergyLimit);
167 ssm->SetActivationLowEnergyLimit(highEnergyLimit);
168
169 ph->RegisterProcess(eioni, particle);
170 ph->RegisterProcess(new G4eBremsstrahlung(), particle);
171 ph->RegisterProcess(ss, particle);
172
173 // e+
174 particle = G4Positron::Positron();
175 eioni = new G4eIonisation();
176
177 msc1 = new G4UrbanMscModel();
178 msc2 = new G4WentzelVIModel();
179 msc1->SetHighEnergyLimit(highEnergyLimit);
180 msc2->SetLowEnergyLimit(highEnergyLimit);
181 G4EmBuilder::ConstructElectronMscProcess(msc1, msc2, particle);
182
183 ssm = new G4eCoulombScatteringModel();
184 ss = new G4CoulombScattering();
185 ss->SetEmModel(ssm);
186 ss->SetMinKinEnergy(highEnergyLimit);
187 ssm->SetLowEnergyLimit(highEnergyLimit);
188 ssm->SetActivationLowEnergyLimit(highEnergyLimit);
189
190 ph->RegisterProcess(eioni, particle);
191 ph->RegisterProcess(new G4eBremsstrahlung(), particle);
192 ph->RegisterProcess(new G4eplusAnnihilation(), particle);
193 ph->RegisterProcess(ss, particle);
194
195 // generic ion
196 particle = G4GenericIon::GenericIon();
197 G4ionIonisation* ionIoni = new G4ionIonisation();
198 ph->RegisterProcess(hmsc, particle);
199 ph->RegisterProcess(ionIoni, particle);
200
201 // muons, hadrons ions
203
204 // extra configuration
206}
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 ConstructElectronMscProcess(G4VMscModel *msc1, G4VMscModel *msc2, G4ParticleDefinition *particle)
Definition: G4EmBuilder.cc:409
static void PrepareEMPhysics()
Definition: G4EmBuilder.cc:399
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: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)
const G4String & GetPhysicsName() const

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