Geant4  10.02.p03
XrayTelSteppingAction Class Reference

#include <XrayTelSteppingAction.hh>

Inheritance diagram for XrayTelSteppingAction:
Collaboration diagram for XrayTelSteppingAction:

Public Member Functions

 XrayTelSteppingAction ()
 
virtual ~XrayTelSteppingAction ()
 
virtual void UserSteppingAction (const G4Step *step)
 
- Public Member Functions inherited from G4UserSteppingAction
 G4UserSteppingAction ()
 
virtual ~G4UserSteppingAction ()
 
void SetSteppingManagerPointer (G4SteppingManager *pValue)
 

Additional Inherited Members

- Protected Attributes inherited from G4UserSteppingAction
G4SteppingManagerfpSteppingManager
 

Detailed Description

Definition at line 65 of file XrayTelSteppingAction.hh.

Constructor & Destructor Documentation

◆ XrayTelSteppingAction()

XrayTelSteppingAction::XrayTelSteppingAction ( )

Definition at line 72 of file XrayTelSteppingAction.cc.

73 {;}

◆ ~XrayTelSteppingAction()

XrayTelSteppingAction::~XrayTelSteppingAction ( )
virtual

Definition at line 76 of file XrayTelSteppingAction.cc.

77 { }

Member Function Documentation

◆ UserSteppingAction()

void XrayTelSteppingAction::UserSteppingAction ( const G4Step *  step)
virtual

Reimplemented from G4UserSteppingAction.

Definition at line 80 of file XrayTelSteppingAction.cc.

81 {
82  G4bool entering = false;
83  G4Track* track = step->GetTrack();
84 
85  G4String volName;
86  if (track->GetVolume()) volName = track->GetVolume()->GetName();
87  G4String nextVolName;
88  if (track->GetNextVolume()) nextVolName = track->GetNextVolume()->GetName();
89 
91 
92  // Entering Detector
93  if (volName != "Detector_P" && nextVolName == "Detector_P")
94  {
95  entering = true;
96  analysis->Update(track->GetKineticEnergy(),G4Threading::G4GetThreadId());
97  }
98 
99  // Do the analysis related to this step
100 
101  analysis->analyseStepping(*track,entering);
102 
103 }
bool G4bool
Definition: G4Types.hh:79
void Update(G4double energy, G4int threadID)
void analyseStepping(const G4Track &track, G4bool entering)
G4int G4GetThreadId()
Definition: G4Threading.cc:134
static XrayTelAnalysis * getInstance()
Here is the call graph for this function:

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