#include <G4UserStackingAction.hh>
Inheritance diagram for G4UserStackingAction:
Public Member Functions | |
G4UserStackingAction () | |
virtual | ~G4UserStackingAction () |
void | SetStackManager (G4StackManager *value) |
virtual G4ClassificationOfNewTrack | ClassifyNewTrack (const G4Track *aTrack) |
virtual void | NewStage () |
virtual void | PrepareNewEvent () |
Protected Attributes | |
G4StackManager * | stackManager |
Definition at line 44 of file G4UserStackingAction.hh.
G4UserStackingAction::G4UserStackingAction | ( | ) |
Definition at line 37 of file G4UserStackingAction.cc.
References FatalException, G4Exception(), and G4ParticleTable::GetParticleTable().
00038 { 00039 if(!(G4ParticleTable::GetParticleTable()->GetReadiness())) 00040 { 00041 G4String msg; 00042 msg = " You are instantiating G4UserStackingAction BEFORE your\n"; 00043 msg += "G4VUserPhysicsList is instantiated and assigned to G4RunManager.\n"; 00044 msg += " Such an instantiation is prohibited by Geant4 version 8.0. To fix this problem,\n"; 00045 msg += "please make sure that your main() instantiates G4VUserPhysicsList AND\n"; 00046 msg += "set it to G4RunManager before instantiating other user action classes\n"; 00047 msg += "such as G4UserStackingAction."; 00048 G4Exception("G4UserStackingAction::G4UserStackingAction()", 00049 "Event0031",FatalException,msg); 00050 } 00051 }
G4UserStackingAction::~G4UserStackingAction | ( | ) | [virtual] |
G4ClassificationOfNewTrack G4UserStackingAction::ClassifyNewTrack | ( | const G4Track * | aTrack | ) | [virtual] |
Reimplemented in G4AdjointStackingAction, and G4StackChecker.
Definition at line 58 of file G4UserStackingAction.cc.
References fUrgent.
Referenced by G4AdjointStackingAction::ClassifyNewTrack(), G4StackManager::PrepareNewEvent(), G4StackManager::PushOneTrack(), and G4StackManager::ReClassify().
00059 { 00060 return fUrgent; 00061 }
void G4UserStackingAction::NewStage | ( | ) | [virtual] |
Reimplemented in G4AdjointStackingAction, and G4StackChecker.
Definition at line 63 of file G4UserStackingAction.cc.
Referenced by G4AdjointStackingAction::NewStage(), and G4StackManager::PopNextTrack().
void G4UserStackingAction::PrepareNewEvent | ( | ) | [virtual] |
Reimplemented in G4AdjointStackingAction, and G4StackChecker.
Definition at line 66 of file G4UserStackingAction.cc.
Referenced by G4StackManager::PrepareNewEvent(), and G4AdjointStackingAction::PrepareNewEvent().
void G4UserStackingAction::SetStackManager | ( | G4StackManager * | value | ) | [inline] |
Definition at line 52 of file G4UserStackingAction.hh.
References stackManager.
Referenced by G4StackManager::SetUserStackingAction().
00053 { stackManager = value; }
G4StackManager* G4UserStackingAction::stackManager [protected] |