Geant4  10.02.p03
G4MSSteppingAction Class Reference

#include <G4MSSteppingAction.hh>

Inheritance diagram for G4MSSteppingAction:
Collaboration diagram for G4MSSteppingAction:

Public Member Functions

 G4MSSteppingAction ()
 
virtual ~G4MSSteppingAction ()
 
void Initialize (G4bool rSens, G4Region *reg)
 
virtual void UserSteppingAction (const G4Step *)
 
G4double GetTotalStepLength () const
 
G4double GetX0 () const
 
G4double GetLambda0 () const
 
- Public Member Functions inherited from G4UserSteppingAction
 G4UserSteppingAction ()
 
virtual ~G4UserSteppingAction ()
 
void SetSteppingManagerPointer (G4SteppingManager *pValue)
 

Private Attributes

G4bool regionSensitive
 
G4RegiontheRegion
 
G4double length
 
G4double x0
 
G4double lambda
 

Additional Inherited Members

- Protected Attributes inherited from G4UserSteppingAction
G4SteppingManagerfpSteppingManager
 

Detailed Description

Definition at line 47 of file G4MSSteppingAction.hh.

Constructor & Destructor Documentation

◆ G4MSSteppingAction()

G4MSSteppingAction::G4MSSteppingAction ( )

Definition at line 41 of file G4MSSteppingAction.cc.

42 {
43  Initialize(false,0);
44 }
void Initialize(G4bool rSens, G4Region *reg)
Here is the call graph for this function:

◆ ~G4MSSteppingAction()

G4MSSteppingAction::~G4MSSteppingAction ( )
virtual

Definition at line 46 of file G4MSSteppingAction.cc.

47 {;}

Member Function Documentation

◆ GetLambda0()

G4double G4MSSteppingAction::GetLambda0 ( ) const
inline

Definition at line 66 of file G4MSSteppingAction.hh.

66 { return lambda; }
Here is the caller graph for this function:

◆ GetTotalStepLength()

G4double G4MSSteppingAction::GetTotalStepLength ( ) const
inline

Definition at line 64 of file G4MSSteppingAction.hh.

64 { return length; }
Here is the caller graph for this function:

◆ GetX0()

G4double G4MSSteppingAction::GetX0 ( ) const
inline

Definition at line 65 of file G4MSSteppingAction.hh.

65 { return x0; }
Here is the caller graph for this function:

◆ Initialize()

void G4MSSteppingAction::Initialize ( G4bool  rSens,
G4Region reg 
)

Definition at line 49 of file G4MSSteppingAction.cc.

50 {
51  regionSensitive = rSens;
52  theRegion = reg;
53  length = 0.;
54  x0 = 0.;
55  lambda = 0.;
56 }
static const G4double reg
Here is the caller graph for this function:

◆ UserSteppingAction()

void G4MSSteppingAction::UserSteppingAction ( const G4Step *  aStep)
virtual

Reimplemented from G4UserSteppingAction.

Definition at line 58 of file G4MSSteppingAction.cc.

59 {
60  G4StepPoint* preStepPoint = aStep->GetPreStepPoint();
61  G4Region* region = preStepPoint->GetPhysicalVolume()->GetLogicalVolume()->GetRegion();
62 
63  if(regionSensitive && (region!=theRegion)) return;
64 
65  G4double stlen = aStep->GetStepLength();
66  G4Material* material = preStepPoint->GetMaterial();
67  length += stlen;
68  x0 += stlen/(material->GetRadlen());
69  lambda += stlen/(material->GetNuclearInterLength());
70 }
string material
Definition: eplot.py:19
G4double GetNuclearInterLength() const
Definition: G4Material.hh:223
double G4double
Definition: G4Types.hh:76
G4double GetRadlen() const
Definition: G4Material.hh:220
Here is the call graph for this function:

Member Data Documentation

◆ lambda

G4double G4MSSteppingAction::lambda
private

Definition at line 61 of file G4MSSteppingAction.hh.

◆ length

G4double G4MSSteppingAction::length
private

Definition at line 59 of file G4MSSteppingAction.hh.

◆ regionSensitive

G4bool G4MSSteppingAction::regionSensitive
private

Definition at line 57 of file G4MSSteppingAction.hh.

◆ theRegion

G4Region* G4MSSteppingAction::theRegion
private

Definition at line 58 of file G4MSSteppingAction.hh.

◆ x0

G4double G4MSSteppingAction::x0
private

Definition at line 60 of file G4MSSteppingAction.hh.


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