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

#include <G4StepLimiterBuilder.hh>

+ Inheritance diagram for G4StepLimiterBuilder:

Public Member Functions

 G4StepLimiterBuilder (const G4String &name="stepLimiter")
 
virtual ~G4StepLimiterBuilder ()
 
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 43 of file G4StepLimiterBuilder.hh.

Constructor & Destructor Documentation

◆ G4StepLimiterBuilder()

G4StepLimiterBuilder::G4StepLimiterBuilder ( const G4String name = "stepLimiter")

Definition at line 57 of file G4StepLimiterBuilder.cc.

59{
60 fStepLimiter = new G4StepLimiter();
61 fUserSpecialCuts = new G4UserSpecialCuts();
62}

◆ ~G4StepLimiterBuilder()

G4StepLimiterBuilder::~G4StepLimiterBuilder ( )
virtual

Definition at line 66 of file G4StepLimiterBuilder.cc.

67{
68 delete fStepLimiter;
69 delete fUserSpecialCuts;
70}

Member Function Documentation

◆ ConstructParticle()

void G4StepLimiterBuilder::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 74 of file G4StepLimiterBuilder.cc.

75{}

◆ ConstructProcess()

void G4StepLimiterBuilder::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 79 of file G4StepLimiterBuilder.cc.

80{
82
83 while ((*theParticleIterator)()) {
85 G4ProcessManager* pmanager = particle->GetProcessManager();
86 G4double charge = particle->GetPDGCharge();
87
88 if(!particle->IsShortLived()) {
89 if (charge != 0.0) {
90 // All charged particles should have a step limiter
91 // to make sure that the steps do not get too long.
92 pmanager->AddDiscreteProcess(fStepLimiter);
93 pmanager->AddDiscreteProcess(fUserSpecialCuts);
94 } else {
95 // Energy cuts for all other neutral particles
96 pmanager->AddDiscreteProcess(fUserSpecialCuts);
97 }
98 }
99 }
100}
double G4double
Definition: G4Types.hh:64
G4ProcessManager * GetProcessManager() const
G4double GetPDGCharge() const
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
G4ParticleTable::G4PTblDicIterator * theParticleIterator

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