Geant4 10.7.0
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
 
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 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 83 of file G4EmStandardPhysics_option1.cc.

85 : G4VPhysicsConstructor("G4EmStandard_opt1"), verbose(ver)
86{
88 param->SetDefaults();
89 param->SetVerbose(verbose);
90 param->SetApplyCuts(true);
91 param->SetGeneralProcessActive(true);
92 param->SetStepFunction(0.8, 1*CLHEP::mm);
93 param->SetMscRangeFactor(0.2);
96}
@ 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 SetMscRangeFactor(G4double val)

◆ ~G4EmStandardPhysics_option1()

G4EmStandardPhysics_option1::~G4EmStandardPhysics_option1 ( )
override

Definition at line 100 of file G4EmStandardPhysics_option1.cc.

101{}

Member Function Documentation

◆ ConstructParticle()

void G4EmStandardPhysics_option1::ConstructParticle ( )
overridevirtual

Implements G4VPhysicsConstructor.

Definition at line 105 of file G4EmStandardPhysics_option1.cc.

106{
107 // minimal set of particles for EM physics
109}
static void ConstructMinimalEmSet()
Definition: G4EmBuilder.cc:234

◆ ConstructProcess()

void G4EmStandardPhysics_option1::ConstructProcess ( )
overridevirtual

Implements G4VPhysicsConstructor.

Definition at line 113 of file G4EmStandardPhysics_option1.cc.

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