#include <G4UserSteppingAction.hh>
Inheritance diagram for G4UserSteppingAction:
Public Member Functions | |
G4UserSteppingAction () | |
virtual | ~G4UserSteppingAction () |
void | SetSteppingManagerPointer (G4SteppingManager *pValue) |
virtual void | UserSteppingAction (const G4Step *) |
Protected Attributes | |
G4SteppingManager * | fpSteppingManager |
Definition at line 51 of file G4UserSteppingAction.hh.
G4UserSteppingAction::G4UserSteppingAction | ( | ) |
Definition at line 49 of file G4UserSteppingAction.cc.
References FatalException, G4Exception(), and G4ParticleTable::GetParticleTable().
00051 : fpSteppingManager(0) 00052 { 00053 if(!(G4ParticleTable::GetParticleTable()->GetReadiness())) 00054 { 00055 G4String msg; 00056 msg = " You are instantiating G4UserSteppingAction BEFORE your\n"; 00057 msg += "G4VUserPhysicsList is instantiated and assigned to G4RunManager.\n"; 00058 msg += " Such an instantiation is prohibited since Geant4 version 8.0. To fix this problem,\n"; 00059 msg += "please make sure that your main() instantiates G4VUserPhysicsList AND\n"; 00060 msg += "set it to G4RunManager before instantiating other user action classes\n"; 00061 msg += "such as G4UserSteppingAction."; 00062 G4Exception("G4UserSteppingAction::G4UserSteppingAction()", 00063 "Tracking0002", FatalException, msg); 00064 } 00065 }
G4UserSteppingAction::~G4UserSteppingAction | ( | ) | [virtual] |
void G4UserSteppingAction::SetSteppingManagerPointer | ( | G4SteppingManager * | pValue | ) |
Definition at line 74 of file G4UserSteppingAction.cc.
References fpSteppingManager.
Referenced by G4TrackingManager::SetUserAction().
00076 { 00077 fpSteppingManager = pValue; 00078 }
virtual void G4UserSteppingAction::UserSteppingAction | ( | const G4Step * | ) | [inline, virtual] |
Reimplemented in G4MSSteppingAction, G4AdjointSteppingAction, and G4RTSteppingAction.
Definition at line 65 of file G4UserSteppingAction.hh.
Referenced by G4SteppingManager::Stepping(), and G4AdjointSteppingAction::UserSteppingAction().
G4SteppingManager* G4UserSteppingAction::fpSteppingManager [protected] |