Belle II Software development
ExtStepLengthLimitProcess Class Reference

Defines the physics process that avoids hit invocation in sensitive volumes. More...

#include <ExtStepLengthLimitProcess.h>

Inheritance diagram for ExtStepLengthLimitProcess:

Public Member Functions

 ExtStepLengthLimitProcess (const G4String &processName="ExtStepLengthLimitProcess")
 constructor
 
 ~ExtStepLengthLimitProcess ()
 destructor
 
G4VParticleChange * PostStepDoIt (const G4Track &, const G4Step &)
 See if the particle has left the geant4e "target" volume.
 
G4double PostStepGetPhysicalInteractionLength (const G4Track &, G4double, G4ForceCondition *)
 Returns the step length after each step.
 
G4double GetMeanFreePath (const G4Track &, G4double, G4ForceCondition *)
 Returns the mean free path for this process.
 
G4double GetStepLimit () const
 Returns the step limit.
 
void SetStepLimit (G4double val)
 Sets the step limit.
 

Protected Attributes

G4double m_stepLimit
 Stores the step limit.
 

Detailed Description

Defines the physics process that avoids hit invocation in sensitive volumes.

Definition at line 26 of file ExtStepLengthLimitProcess.h.

Constructor & Destructor Documentation

◆ ExtStepLengthLimitProcess()

ExtStepLengthLimitProcess ( const G4String &  processName = "ExtStepLengthLimitProcess")
explicit

constructor

Definition at line 16 of file ExtStepLengthLimitProcess.cc.

16 :
17 G4VDiscreteProcess(processName),
18 m_stepLimit(kInfinity) // user may change this with a geant4 UI command
19{
20}

◆ ~ExtStepLengthLimitProcess()

destructor

Definition at line 22 of file ExtStepLengthLimitProcess.cc.

23{
24}

Member Function Documentation

◆ GetMeanFreePath()

G4double GetMeanFreePath ( const G4Track &  ,
G4double  ,
G4ForceCondition *   
)
inline

Returns the mean free path for this process.

Definition at line 65 of file ExtStepLengthLimitProcess.h.

66 {
67 return kInfinity;
68 }

◆ GetStepLimit()

G4double GetStepLimit ( ) const
inline

Returns the step limit.

Definition at line 46 of file ExtStepLengthLimitProcess.h.

46{ return m_stepLimit; }

◆ PostStepDoIt()

G4VParticleChange * PostStepDoIt ( const G4Track &  track,
const G4Step &   
)

See if the particle has left the geant4e "target" volume.

Definition at line 26 of file ExtStepLengthLimitProcess.cc.

27{
28 aParticleChange.Initialize(track);
29 aParticleChange.ProposeSteppingControl(AvoidHitInvocation);
30 return &aParticleChange;
31}

◆ PostStepGetPhysicalInteractionLength()

G4double PostStepGetPhysicalInteractionLength ( const G4Track &  ,
G4double  ,
G4ForceCondition *  condition 
)
inline

Returns the step length after each step.

Definition at line 58 of file ExtStepLengthLimitProcess.h.

60 {
61 *condition = Forced; // PostStepDoIt() must be called after each step
62 return m_stepLimit;
63 }

◆ SetStepLimit()

void SetStepLimit ( G4double  val)
inline

Sets the step limit.

Definition at line 49 of file ExtStepLengthLimitProcess.h.

49{ m_stepLimit = val; }

Member Data Documentation

◆ m_stepLimit

G4double m_stepLimit
protected

Stores the step limit.

Definition at line 54 of file ExtStepLengthLimitProcess.h.


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