Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 ()
 
virtual 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 ( )

Definition at line 72 of file XrayTelSteppingAction.cc.

73 {;}
XrayTelSteppingAction::~XrayTelSteppingAction ( )
virtual

Definition at line 76 of file XrayTelSteppingAction.cc.

77 { }

Member Function Documentation

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;
97  }
98 
99  // Do the analysis related to this step
100 
101  analysis->analyseStepping(*track,entering);
102 
103 }
G4VPhysicalVolume * GetNextVolume() const
G4double GetKineticEnergy() const
const G4String & GetName() const
bool G4bool
Definition: G4Types.hh:79
void Update(G4double energy, G4int threadID)
G4VPhysicalVolume * GetVolume() const
void analyseStepping(const G4Track &track, G4bool entering)
G4Track * GetTrack() const
G4int G4GetThreadId()
Definition: G4Threading.cc:144
static XrayTelAnalysis * getInstance()

Here is the call graph for this function:


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