Geant4 VMC Version 6.6
|
Actions at the beginning and the end of event. More...
#include <TG4EventAction.h>
Public Member Functions | |
TG4EventAction () | |
virtual | ~TG4EventAction () |
void | LateInitialize () |
virtual void | BeginOfEventAction (const G4Event *event) |
virtual void | EndOfEventAction (const G4Event *event) |
void | SetMCStack (TVirtualMCStack *mcStack) |
void | SetPrintMemory (G4bool printMemory) |
void | SetSaveRandomStatus (G4bool saveRandomStatus) |
void | SetIsInterruptibleEvent (G4bool isInterruptible) |
G4bool | GetPrintMemory () const |
G4bool | GetSaveRandomStatus () const |
G4bool | IsInterruptibleEvent () const |
Public Member Functions inherited from TG4Verbose | |
TG4Verbose (const G4String &cmdName) | |
TG4Verbose (const G4String &cmdName, G4int verboseLevel) | |
virtual | ~TG4Verbose () |
virtual void | VerboseLevel (G4int level) |
virtual G4int | VerboseLevel () const |
Private Member Functions | |
TG4EventAction (const TG4EventAction &right) | |
Not implemented. | |
TG4EventAction & | operator= (const TG4EventAction &right) |
Not implemented. | |
Private Attributes | |
TG4EventActionMessenger | fMessenger |
messenger | |
TStopwatch | fTimer |
timer | |
TVirtualMCApplication * | fMCApplication |
Cached pointer to thread-local VMC application. | |
TVirtualMCStack * | fMCStack |
Cached pointer to thread-local VMC stack. | |
TG4TrackingAction * | fTrackingAction |
Cached pointer to thread-local tracking action. | |
TG4TrackManager * | fTrackManager |
Cached pointer to thread-local track manager. | |
TG4StateManager * | fStateManager |
Cached pointer to thread-local state manager. | |
G4bool | fPrintMemory |
Control for printing memory usage. | |
G4bool | fSaveRandomStatus |
Control for saving random engine status for each event. | |
G4bool | fIsInterruptibleEvent |
Actions at the beginning and the end of event.
Definition at line 40 of file TG4EventAction.h.
TG4EventAction::TG4EventAction | ( | ) |
Default constructor
Definition at line 46 of file TG4EventAction.cxx.
|
virtual |
Destructor
Definition at line 63 of file TG4EventAction.cxx.
|
private |
Not implemented.
void TG4EventAction::LateInitialize | ( | ) |
Cache thread-local pointers
Definition at line 73 of file TG4EventAction.cxx.
|
virtual |
Called by G4 kernel at the beginning of event.
Definition at line 84 of file TG4EventAction.cxx.
|
virtual |
Called by G4 kernel at the end of event.
Definition at line 130 of file TG4EventAction.cxx.
|
inline |
Set cached pointer to thread-local VMC stack
Definition at line 101 of file TG4EventAction.h.
|
inline |
Set option for printing memory usage
Definition at line 107 of file TG4EventAction.h.
Referenced by TG4ActionInitialization::Build(), and TG4EventActionMessenger::SetNewValue().
|
inline |
Set option for saving random engine status for each event
Definition at line 131 of file TG4EventAction.h.
Referenced by TG4ActionInitialization::Build(), and TG4EventActionMessenger::SetNewValue().
|
inline |
Flag whether the current event is interruptible
Definition at line 137 of file TG4EventAction.h.
|
inline |
Return the option for printing memory usage
Definition at line 113 of file TG4EventAction.h.
Referenced by TG4ActionInitialization::Build().
|
inline |
Return the option for printing memory usage
Definition at line 119 of file TG4EventAction.h.
Referenced by TG4ActionInitialization::Build().
|
inline |
Return whether the current event is flagged as being interruptible
Definition at line 125 of file TG4EventAction.h.
Referenced by TG4PrimaryGeneratorAction::GeneratePrimaries().
|
private |
Not implemented.
|
private |
messenger
Definition at line 69 of file TG4EventAction.h.
|
private |
timer
Definition at line 70 of file TG4EventAction.h.
Referenced by BeginOfEventAction(), and EndOfEventAction().
|
private |
Cached pointer to thread-local VMC application.
Definition at line 73 of file TG4EventAction.h.
Referenced by EndOfEventAction(), and LateInitialize().
|
private |
Cached pointer to thread-local VMC stack.
Definition at line 76 of file TG4EventAction.h.
Referenced by BeginOfEventAction(), EndOfEventAction(), and SetMCStack().
|
private |
Cached pointer to thread-local tracking action.
Definition at line 79 of file TG4EventAction.h.
Referenced by BeginOfEventAction(), EndOfEventAction(), and LateInitialize().
|
private |
Cached pointer to thread-local track manager.
Definition at line 82 of file TG4EventAction.h.
Referenced by BeginOfEventAction(), EndOfEventAction(), and LateInitialize().
|
private |
Cached pointer to thread-local state manager.
Definition at line 85 of file TG4EventAction.h.
Referenced by EndOfEventAction(), and LateInitialize().
|
private |
Control for printing memory usage.
Definition at line 88 of file TG4EventAction.h.
Referenced by EndOfEventAction(), GetPrintMemory(), and SetPrintMemory().
|
private |
Control for saving random engine status for each event.
Definition at line 91 of file TG4EventAction.h.
Referenced by BeginOfEventAction(), GetSaveRandomStatus(), and SetSaveRandomStatus().
|
private |
flag if event is interruptible meaning that GEANT4_VMC relies on TVirtualMCApplication::BeginEvent() and ::FinishEvent() will be called from outside.
Definition at line 96 of file TG4EventAction.h.
Referenced by EndOfEventAction(), IsInterruptibleEvent(), and SetIsInterruptibleEvent().