Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
TG4EventAction Class Reference

Actions at the beginning and the end of event. More...

#include <TG4EventAction.h>

Inheritance diagram for TG4EventAction:

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.
 
TG4EventActionoperator= (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.
 
TG4TrackingActionfTrackingAction
 Cached pointer to thread-local tracking action.
 
TG4TrackManagerfTrackManager
 Cached pointer to thread-local track manager.
 
TG4StateManagerfStateManager
 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
 

Detailed Description

Actions at the beginning and the end of event.

Author
I. Hrivnacova; IPN, Orsay

Definition at line 40 of file TG4EventAction.h.

Constructor & Destructor Documentation

◆ TG4EventAction() [1/2]

TG4EventAction::TG4EventAction ( )

Default constructor

Definition at line 46 of file TG4EventAction.cxx.

◆ ~TG4EventAction()

TG4EventAction::~TG4EventAction ( )
virtual

Destructor

Definition at line 63 of file TG4EventAction.cxx.

◆ TG4EventAction() [2/2]

TG4EventAction::TG4EventAction ( const TG4EventAction & right)
private

Not implemented.

Member Function Documentation

◆ LateInitialize()

void TG4EventAction::LateInitialize ( )

Cache thread-local pointers

Definition at line 73 of file TG4EventAction.cxx.

◆ BeginOfEventAction()

void TG4EventAction::BeginOfEventAction ( const G4Event * event)
virtual

Called by G4 kernel at the beginning of event.

Definition at line 84 of file TG4EventAction.cxx.

◆ EndOfEventAction()

void TG4EventAction::EndOfEventAction ( const G4Event * event)
virtual

Called by G4 kernel at the end of event.

Definition at line 130 of file TG4EventAction.cxx.

◆ SetMCStack()

void TG4EventAction::SetMCStack ( TVirtualMCStack * mcStack)
inline

Set cached pointer to thread-local VMC stack

Definition at line 101 of file TG4EventAction.h.

◆ SetPrintMemory()

void TG4EventAction::SetPrintMemory ( G4bool printMemory)
inline

Set option for printing memory usage

Definition at line 107 of file TG4EventAction.h.

Referenced by TG4ActionInitialization::Build(), and TG4EventActionMessenger::SetNewValue().

◆ SetSaveRandomStatus()

void TG4EventAction::SetSaveRandomStatus ( G4bool saveRandomStatus)
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().

◆ SetIsInterruptibleEvent()

void TG4EventAction::SetIsInterruptibleEvent ( G4bool isInterruptible)
inline

Flag whether the current event is interruptible

Definition at line 137 of file TG4EventAction.h.

◆ GetPrintMemory()

G4bool TG4EventAction::GetPrintMemory ( ) const
inline

Return the option for printing memory usage

Definition at line 113 of file TG4EventAction.h.

Referenced by TG4ActionInitialization::Build().

◆ GetSaveRandomStatus()

G4bool TG4EventAction::GetSaveRandomStatus ( ) const
inline

Return the option for printing memory usage

Definition at line 119 of file TG4EventAction.h.

Referenced by TG4ActionInitialization::Build().

◆ IsInterruptibleEvent()

G4bool TG4EventAction::IsInterruptibleEvent ( ) const
inline

Return whether the current event is flagged as being interruptible

Definition at line 125 of file TG4EventAction.h.

Referenced by TG4PrimaryGeneratorAction::GeneratePrimaries().

◆ operator=()

TG4EventAction & TG4EventAction::operator= ( const TG4EventAction & right)
private

Not implemented.

Member Data Documentation

◆ fMessenger

TG4EventActionMessenger TG4EventAction::fMessenger
private

messenger

Definition at line 69 of file TG4EventAction.h.

◆ fTimer

TStopwatch TG4EventAction::fTimer
private

timer

Definition at line 70 of file TG4EventAction.h.

Referenced by BeginOfEventAction(), and EndOfEventAction().

◆ fMCApplication

TVirtualMCApplication* TG4EventAction::fMCApplication
private

Cached pointer to thread-local VMC application.

Definition at line 73 of file TG4EventAction.h.

Referenced by EndOfEventAction(), and LateInitialize().

◆ fMCStack

TVirtualMCStack* TG4EventAction::fMCStack
private

Cached pointer to thread-local VMC stack.

Definition at line 76 of file TG4EventAction.h.

Referenced by BeginOfEventAction(), EndOfEventAction(), and SetMCStack().

◆ fTrackingAction

TG4TrackingAction* TG4EventAction::fTrackingAction
private

Cached pointer to thread-local tracking action.

Definition at line 79 of file TG4EventAction.h.

Referenced by BeginOfEventAction(), EndOfEventAction(), and LateInitialize().

◆ fTrackManager

TG4TrackManager* TG4EventAction::fTrackManager
private

Cached pointer to thread-local track manager.

Definition at line 82 of file TG4EventAction.h.

Referenced by BeginOfEventAction(), EndOfEventAction(), and LateInitialize().

◆ fStateManager

TG4StateManager* TG4EventAction::fStateManager
private

Cached pointer to thread-local state manager.

Definition at line 85 of file TG4EventAction.h.

Referenced by EndOfEventAction(), and LateInitialize().

◆ fPrintMemory

G4bool TG4EventAction::fPrintMemory
private

Control for printing memory usage.

Definition at line 88 of file TG4EventAction.h.

Referenced by EndOfEventAction(), GetPrintMemory(), and SetPrintMemory().

◆ fSaveRandomStatus

G4bool TG4EventAction::fSaveRandomStatus
private

Control for saving random engine status for each event.

Definition at line 91 of file TG4EventAction.h.

Referenced by BeginOfEventAction(), GetSaveRandomStatus(), and SetSaveRandomStatus().

◆ fIsInterruptibleEvent

G4bool TG4EventAction::fIsInterruptibleEvent
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().


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