Geant4 9.6.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)
 
 G4EmStandardPhysics_option1 (G4int ver, const G4String &name)
 
virtual ~G4EmStandardPhysics_option1 ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
- 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
 

Additional Inherited Members

- Protected Member Functions inherited from G4VPhysicsConstructor
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
 
- Protected Attributes inherited from G4VPhysicsConstructor
G4int verboseLevel
 
G4String namePhysics
 
G4int typePhysics
 
G4ParticleTabletheParticleTable
 
G4ParticleTable::G4PTblDicIteratortheParticleIterator
 
G4PhysicsListHelperthePLHelper
 

Detailed Description

Definition at line 54 of file G4EmStandardPhysics_option1.hh.

Constructor & Destructor Documentation

◆ G4EmStandardPhysics_option1() [1/2]

G4EmStandardPhysics_option1::G4EmStandardPhysics_option1 ( G4int  ver = 1)

Definition at line 115 of file G4EmStandardPhysics_option1.cc.

116 : G4VPhysicsConstructor("G4EmStandard_opt1"), verbose(ver)
117{
120}
@ bElectromagnetic
static G4LossTableManager * Instance()

◆ G4EmStandardPhysics_option1() [2/2]

G4EmStandardPhysics_option1::G4EmStandardPhysics_option1 ( G4int  ver,
const G4String name 
)

Definition at line 124 of file G4EmStandardPhysics_option1.cc.

125 : G4VPhysicsConstructor("G4EmStandard_opt1"), verbose(ver)
126{
129}

◆ ~G4EmStandardPhysics_option1()

G4EmStandardPhysics_option1::~G4EmStandardPhysics_option1 ( )
virtual

Definition at line 133 of file G4EmStandardPhysics_option1.cc.

134{}

Member Function Documentation

◆ ConstructParticle()

void G4EmStandardPhysics_option1::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 138 of file G4EmStandardPhysics_option1.cc.

139{
140// gamma
142
143// leptons
148
149// mesons
154
155// barions
158
159// ions
162 G4He3::He3();
165}
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
static G4AntiProton * AntiProton()
Definition: G4AntiProton.cc:93
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
static G4Electron * Electron()
Definition: G4Electron.cc:94
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
static G4GenericIon * GenericIonDefinition()
Definition: G4GenericIon.cc:87
static G4He3 * He3()
Definition: G4He3.cc:94
static G4KaonMinus * KaonMinusDefinition()
Definition: G4KaonMinus.cc:108
static G4KaonPlus * KaonPlusDefinition()
Definition: G4KaonPlus.cc:108
static G4MuonMinus * MuonMinus()
Definition: G4MuonMinus.cc:100
static G4MuonPlus * MuonPlus()
Definition: G4MuonPlus.cc:99
static G4PionMinus * PionMinusDefinition()
Definition: G4PionMinus.cc:93
static G4PionPlus * PionPlusDefinition()
Definition: G4PionPlus.cc:93
static G4Positron * Positron()
Definition: G4Positron.cc:94
static G4Proton * Proton()
Definition: G4Proton.cc:93
static G4Triton * Triton()
Definition: G4Triton.cc:95

◆ ConstructProcess()

void G4EmStandardPhysics_option1::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 169 of file G4EmStandardPhysics_option1.cc.

170{
172
173 // muon & hadron bremsstrahlung and pair production
182
183 // muon & hadron multiple scattering
185 mumsc->AddEmModel(0, new G4WentzelVIModel());
187 pimsc->AddEmModel(0, new G4WentzelVIModel());
189 kmsc->AddEmModel(0, new G4WentzelVIModel());
191 pmsc->AddEmModel(0, new G4WentzelVIModel());
192 G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
193
194 // high energy limit for e+- scattering models and bremsstrahlung
195 G4double highEnergyLimit = 100*MeV;
196
197 // Add standard EM Processes
199 while( (*theParticleIterator)() ){
201 G4String particleName = particle->GetParticleName();
202 if(verbose > 1)
203 G4cout << "### " << GetPhysicsName() << " instantiates for "
204 << particleName << G4endl;
205
206 if (particleName == "gamma") {
207
208 ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
209 ph->RegisterProcess(new G4ComptonScattering(), particle);
210 ph->RegisterProcess(new G4GammaConversion(), particle);
211
212 } else if (particleName == "e-") {
213
214 G4eIonisation* eioni = new G4eIonisation();
215 eioni->SetStepFunction(0.8, 1.0*mm);
216
221 msc1->SetHighEnergyLimit(highEnergyLimit);
222 msc2->SetLowEnergyLimit(highEnergyLimit);
223 msc->AddEmModel(0, msc1);
224 msc->AddEmModel(0, msc2);
225
228 ss->SetEmModel(ssm, 1);
229 ss->SetMinKinEnergy(highEnergyLimit);
230 ssm->SetLowEnergyLimit(highEnergyLimit);
231 ssm->SetActivationLowEnergyLimit(highEnergyLimit);
232
233 ph->RegisterProcess(msc, particle);
234 ph->RegisterProcess(eioni, particle);
235 ph->RegisterProcess(new G4eBremsstrahlung(), particle);
236 ph->RegisterProcess(ss, particle);
237
238 } else if (particleName == "e+") {
239
240 G4eIonisation* eioni = new G4eIonisation();
241 eioni->SetStepFunction(0.8, 1.0*mm);
242
247 msc1->SetHighEnergyLimit(highEnergyLimit);
248 msc2->SetLowEnergyLimit(highEnergyLimit);
249 msc->AddEmModel(0, msc1);
250 msc->AddEmModel(0, msc2);
251
254 ss->SetEmModel(ssm, 1);
255 ss->SetMinKinEnergy(highEnergyLimit);
256 ssm->SetLowEnergyLimit(highEnergyLimit);
257 ssm->SetActivationLowEnergyLimit(highEnergyLimit);
258
259 ph->RegisterProcess(msc, particle);
260 ph->RegisterProcess(eioni, particle);
261 ph->RegisterProcess(new G4eBremsstrahlung(), particle);
262 ph->RegisterProcess(new G4eplusAnnihilation(), particle);
263 ph->RegisterProcess(ss, particle);
264
265 } else if (particleName == "mu+" ||
266 particleName == "mu-" ) {
267
268 ph->RegisterProcess(mumsc, particle);
269 ph->RegisterProcess(new G4MuIonisation(), particle);
270 ph->RegisterProcess(mub, particle);
271 ph->RegisterProcess(mup, particle);
272 ph->RegisterProcess(new G4CoulombScattering(), particle);
273
274 } else if (particleName == "alpha" ||
275 particleName == "He3" ) {
276
277 //ph->RegisterProcess(hmsc, particle);
278 ph->RegisterProcess(new G4hMultipleScattering(), particle);
279 ph->RegisterProcess(new G4ionIonisation(), particle);
280
281 } else if (particleName == "GenericIon") {
282
283 ph->RegisterProcess(hmsc, particle);
284 ph->RegisterProcess(new G4ionIonisation(), particle);
285
286 } else if (particleName == "pi+" ||
287 particleName == "pi-" ) {
288
289 //G4hMultipleScattering* pimsc = new G4hMultipleScattering();
290 ph->RegisterProcess(pimsc, particle);
291 ph->RegisterProcess(new G4hIonisation(), particle);
292 ph->RegisterProcess(pib, particle);
293 ph->RegisterProcess(pip, particle);
294
295 } else if (particleName == "kaon+" ||
296 particleName == "kaon-" ) {
297
298 //G4hMultipleScattering* kmsc = new G4hMultipleScattering();
299 ph->RegisterProcess(kmsc, particle);
300 ph->RegisterProcess(new G4hIonisation(), particle);
301 ph->RegisterProcess(kb, particle);
302 ph->RegisterProcess(kp, particle);
303
304 // } else if (particleName == "proton" ) {
305 } else if (particleName == "proton" ||
306 particleName == "anti_proton") {
307
308 //G4hMultipleScattering* pmsc = new G4hMultipleScattering();
309 ph->RegisterProcess(pmsc, particle);
310 ph->RegisterProcess(new G4hIonisation(), particle);
311 ph->RegisterProcess(pb, particle);
312 ph->RegisterProcess(pp, particle);
313
314 } else if (particleName == "B+" ||
315 particleName == "B-" ||
316 particleName == "D+" ||
317 particleName == "D-" ||
318 particleName == "Ds+" ||
319 particleName == "Ds-" ||
320 particleName == "anti_He3" ||
321 particleName == "anti_alpha" ||
322 particleName == "anti_deuteron" ||
323 particleName == "anti_lambda_c+" ||
324 particleName == "anti_omega-" ||
325 particleName == "anti_sigma_c+" ||
326 particleName == "anti_sigma_c++" ||
327 particleName == "anti_sigma+" ||
328 particleName == "anti_sigma-" ||
329 particleName == "anti_triton" ||
330 particleName == "anti_xi_c+" ||
331 particleName == "anti_xi-" ||
332 particleName == "deuteron" ||
333 particleName == "lambda_c+" ||
334 particleName == "omega-" ||
335 particleName == "sigma_c+" ||
336 particleName == "sigma_c++" ||
337 particleName == "sigma+" ||
338 particleName == "sigma-" ||
339 particleName == "tau+" ||
340 particleName == "tau-" ||
341 particleName == "triton" ||
342 particleName == "xi_c+" ||
343 particleName == "xi-" ) {
344
345 ph->RegisterProcess(hmsc, particle);
346 ph->RegisterProcess(new G4hIonisation(), particle);
347 }
348 }
350 opt.SetVerbose(verbose);
351 opt.SetPolarAngleLimit(CLHEP::pi);
352 opt.SetApplyCuts(true);
353
354 // Deexcitation
355 //
358}
@ fMinimal
double G4double
Definition: G4Types.hh:64
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
void SetPolarAngleLimit(G4double val)
void SetVerbose(G4int val, const G4String &name="all")
void SetApplyCuts(G4bool val)
void SetAtomDeexcitation(G4VAtomDeexcitation *)
const G4String & GetParticleName() const
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
static G4PhysicsListHelper * GetPhysicsListHelper()
void SetHighEnergyLimit(G4double)
Definition: G4VEmModel.hh:585
void SetActivationLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:606
void SetLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:592
void SetMinKinEnergy(G4double e)
void SetEmModel(G4VEmModel *, G4int index=1)
void SetStepFunction(G4double v1, G4double v2)
void AddEmModel(G4int order, G4VEmModel *, const G4Region *region=0)
void SetStepLimitType(G4MscStepLimitType val)
const G4String & GetPhysicsName() const
G4ParticleTable::G4PTblDicIterator * theParticleIterator

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