Geant4  10.01.p02
G4EventManager Class Reference

#include <G4EventManager.hh>

+ Collaboration diagram for G4EventManager:

Public Member Functions

 G4EventManager ()
 
 ~G4EventManager ()
 
void ProcessOneEvent (G4Event *anEvent)
 
void ProcessOneEvent (G4TrackVector *trackVector, G4Event *anEvent=0)
 
const G4EventGetConstCurrentEvent ()
 
G4EventGetNonconstCurrentEvent ()
 
void AbortCurrentEvent ()
 
void SetUserAction (G4UserEventAction *userAction)
 
void SetUserAction (G4UserStackingAction *userAction)
 
void SetUserAction (G4UserTrackingAction *userAction)
 
void SetUserAction (G4UserSteppingAction *userAction)
 
G4UserEventActionGetUserEventAction ()
 
G4UserStackingActionGetUserStackingAction ()
 
G4UserTrackingActionGetUserTrackingAction ()
 
G4UserSteppingActionGetUserSteppingAction ()
 
void SetNumberOfAdditionalWaitingStacks (G4int iAdd)
 
void KeepTheCurrentEvent ()
 
G4StackManagerGetStackManager () const
 
G4TrackingManagerGetTrackingManager () const
 
G4int GetVerboseLevel ()
 
void SetVerboseLevel (G4int value)
 
void SetUserInformation (G4VUserEventInformation *anInfo)
 
G4VUserEventInformationGetUserInformation ()
 
G4PrimaryTransformerGetPrimaryTransformer () const
 
void SetPrimaryTransformer (G4PrimaryTransformer *tf)
 
void StoreRandomNumberStatusToG4Event (G4int vl)
 

Static Public Member Functions

static G4EventManagerGetEventManager ()
 

Private Member Functions

 G4EventManager (const G4EventManager &right)
 
G4EventManageroperator= (const G4EventManager &right)
 
void DoProcessing (G4Event *anEvent)
 
void StackTracks (G4TrackVector *trackVector, G4bool IDhasAlreadySet=false)
 

Private Attributes

G4EventcurrentEvent
 
G4StackManagertrackContainer
 
G4TrackingManagertrackManager
 
G4TrajectoryContainertrajectoryContainer
 
G4int trackIDCounter
 
G4int verboseLevel
 
G4SDManagersdManager
 
G4PrimaryTransformertransformer
 
G4bool tracking
 
G4bool abortRequested
 
G4EvManMessengertheMessenger
 
G4UserEventActionuserEventAction
 
G4UserStackingActionuserStackingAction
 
G4UserTrackingActionuserTrackingAction
 
G4UserSteppingActionuserSteppingAction
 
G4int storetRandomNumberStatusToG4Event
 
G4String randomNumberStatusToG4Event
 
G4StateManagerstateManager
 

Static Private Attributes

static G4ThreadLocal
G4EventManager
fpEventManager = 0
 

Detailed Description

Definition at line 60 of file G4EventManager.hh.

Constructor & Destructor Documentation

G4EventManager::G4EventManager ( )

Definition at line 49 of file G4EventManager.cc.

References FatalException, fpEventManager, G4Exception(), G4SDManager::GetSDMpointerIfExist(), G4StateManager::GetStateManager(), sdManager, stateManager, theMessenger, trackContainer, trackManager, transformer, userEventAction, userStackingAction, userSteppingAction, and userTrackingAction.

+ Here is the call graph for this function:

G4EventManager::~G4EventManager ( )
G4EventManager::G4EventManager ( const G4EventManager right)
private

Definition at line 76 of file G4EventManager.cc.

Member Function Documentation

void G4EventManager::AbortCurrentEvent ( )

Definition at line 388 of file G4EventManager.cc.

References abortRequested, G4StackManager::clear(), G4TrackingManager::EventAborted(), trackContainer, tracking, and trackManager.

Referenced by G4RunManager::AbortEvent(), G4RunManager::AbortRun(), export_G4EventManager(), and G4EvManMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4EventManager::DoProcessing ( G4Event anEvent)
private

Definition at line 99 of file G4EventManager.cc.

References abortRequested, G4UserEventAction::BeginOfEventAction(), currentEvent, G4UserEventAction::EndOfEventAction(), fAlive, fKillTrackAndSecondaries, fPostponeToNextEvent, fStopAndKill, fStopButAlive, fSuspend, G4cout, G4endl, G4Exception(), G4State_EventProc, G4State_GeomClosed, G4StateManager::GetCurrentState(), G4Event::GetHCofThisEvent(), G4TransportationManager::GetNavigatorForTracking(), G4StackManager::GetNTotalTrack(), G4Event::GetNumberOfPrimaryVertex(), G4Track::GetParentID(), G4SDManager::GetSDMpointerIfExist(), G4Track::GetTrackID(), G4Track::GetTrackStatus(), G4TransportationManager::GetTransportationManager(), G4PrimaryTransformer::GimmePrimaries(), G4TrackingManager::GimmeSecondaries(), G4TrackingManager::GimmeTrajectory(), G4TrajectoryContainer::insert(), JustWarning, G4Navigator::LocateGlobalPointAndSetup(), G4VTrajectory::MergeTrajectory(), G4StackManager::PopNextTrack(), G4StackManager::PrepareNewEvent(), G4SDManager::PrepareNewEvent(), G4TrackingManager::ProcessOneTrack(), G4StackManager::PushOneTrack(), randomNumberStatusToG4Event, sdManager, G4Event::SetHCofThisEvent(), G4StateManager::SetNewState(), G4Event::SetRandomNumberStatusForProcessing(), G4Event::SetTrajectoryContainer(), StackTracks(), stateManager, storetRandomNumberStatusToG4Event, G4SDManager::TerminateCurrentEvent(), trackContainer, trackIDCounter, tracking, trackManager, trajectoryContainer, transformer, userEventAction, and verboseLevel.

Referenced by ProcessOneEvent().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const G4Event* G4EventManager::GetConstCurrentEvent ( )
inline

Definition at line 125 of file G4EventManager.hh.

References currentEvent.

Referenced by LXeStackingAction::ClassifyNewTrack(), G4VisManager::Draw(), G4VisManager::EndOfEvent(), export_G4EventManager(), F04EventAction::GetEventNo(), WLSEventAction::GetEventNo(), Em10EventAction::GetEventno(), and LXeSteppingAction::UserSteppingAction().

+ Here is the caller graph for this function:

G4Event* G4EventManager::GetNonconstCurrentEvent ( )
inline

Definition at line 127 of file G4EventManager.hh.

References currentEvent.

Referenced by ITTrackingInteractivity::EndTracking(), and export_G4EventManager().

+ Here is the caller graph for this function:

G4PrimaryTransformer* G4EventManager::GetPrimaryTransformer ( ) const
inline

Definition at line 184 of file G4EventManager.hh.

References transformer.

Referenced by G4RunManagerKernel::GetPrimaryTransformer().

+ Here is the caller graph for this function:

G4StackManager* G4EventManager::GetStackManager ( ) const
inline

Definition at line 162 of file G4EventManager.hh.

References trackContainer.

Referenced by export_G4EventManager(), and G4RunManagerKernel::GetStackManager().

+ Here is the caller graph for this function:

G4TrackingManager* G4EventManager::GetTrackingManager ( ) const
inline

Definition at line 164 of file G4EventManager.hh.

References trackManager.

Referenced by export_G4EventManager(), G4ErrorPropagator::G4ErrorPropagator(), G4RunManagerKernel::GetTrackingManager(), ITTrackingInteractivity::Initialize(), G4ErrorPropagatorManager::SetSteppingManagerVerboseLevel(), and G4ErrorPropagatorManager::StartNavigator().

+ Here is the caller graph for this function:

G4UserEventAction* G4EventManager::GetUserEventAction ( )
inline

Definition at line 145 of file G4EventManager.hh.

References userEventAction.

Referenced by G4MaterialScanner::StoreUserActions(), and G4TheRayTracer::StoreUserActions().

+ Here is the caller graph for this function:

G4VUserEventInformation * G4EventManager::GetUserInformation ( )

Definition at line 376 of file G4EventManager.cc.

References currentEvent, G4State_EventProc, G4StateManager::GetCurrentState(), G4Event::GetUserInformation(), and stateManager.

Referenced by export_G4EventManager().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4UserStackingAction* G4EventManager::GetUserStackingAction ( )
inline

Definition at line 147 of file G4EventManager.hh.

References userStackingAction.

Referenced by G4MaterialScanner::StoreUserActions(), and G4TheRayTracer::StoreUserActions().

+ Here is the caller graph for this function:

G4UserSteppingAction* G4EventManager::GetUserSteppingAction ( )
inline

Definition at line 151 of file G4EventManager.hh.

References userSteppingAction.

Referenced by G4MaterialScanner::StoreUserActions(), G4TheRayTracer::StoreUserActions(), and ITTrackingInteractivity::~ITTrackingInteractivity().

+ Here is the caller graph for this function:

G4UserTrackingAction* G4EventManager::GetUserTrackingAction ( )
inline

Definition at line 149 of file G4EventManager.hh.

References userTrackingAction.

Referenced by G4ErrorPropagator::InvokePostUserTrackingAction(), G4ErrorPropagator::InvokePreUserTrackingAction(), G4MaterialScanner::StoreUserActions(), G4TheRayTracer::StoreUserActions(), and ITTrackingInteractivity::~ITTrackingInteractivity().

+ Here is the caller graph for this function:

G4int G4EventManager::GetVerboseLevel ( )
inline

Definition at line 168 of file G4EventManager.hh.

References verboseLevel.

Referenced by export_G4EventManager(), and G4EvManMessenger::GetCurrentValue().

+ Here is the caller graph for this function:

void G4EventManager::KeepTheCurrentEvent ( )

Definition at line 385 of file G4EventManager.cc.

References currentEvent, and G4Event::KeepTheEvent().

Referenced by G4VisManager::DrawEvent(), and G4EvManMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 77 of file G4EventManager.cc.

void G4EventManager::ProcessOneEvent ( G4Event anEvent)

Definition at line 333 of file G4EventManager.cc.

References DoProcessing(), and trackIDCounter.

Referenced by G4TheRayTracer::CreateBitMap(), CexmcRunManager::DoCommonEventLoop(), G4MaterialScanner::DoScan(), G4WorkerRunManager::ProcessOneEvent(), and G4RunManager::ProcessOneEvent().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4EventManager::ProcessOneEvent ( G4TrackVector trackVector,
G4Event anEvent = 0 
)

Definition at line 339 of file G4EventManager.cc.

References DoProcessing(), G4ThreadLocal, G4Event::SetRandomNumberStatus(), StackTracks(), storetRandomNumberStatusToG4Event, and trackIDCounter.

+ Here is the call graph for this function:

void G4EventManager::SetNumberOfAdditionalWaitingStacks ( G4int  iAdd)
inline

Definition at line 156 of file G4EventManager.hh.

References G4StackManager::SetNumberOfAdditionalWaitingStacks().

Referenced by export_G4EventManager(), and G4RunManager::SetNumberOfAdditionalWaitingStacks().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4EventManager::SetPrimaryTransformer ( G4PrimaryTransformer tf)
inline

Definition at line 186 of file G4EventManager.hh.

Referenced by G4RunManagerKernel::SetPrimaryTransformer().

+ Here is the caller graph for this function:

void G4EventManager::SetUserAction ( G4UserEventAction userAction)

Definition at line 309 of file G4EventManager.cc.

References G4UserEventAction::SetEventManager(), and userEventAction.

Referenced by G4MaterialScanner::RestoreUserActions(), G4TheRayTracer::RestoreUserActions(), G4ErrorRunManagerHelper::SetUserAction(), G4ErrorPropagatorManager::SetUserAction(), G4RunManager::SetUserAction(), G4MaterialScanner::StoreUserActions(), and G4TheRayTracer::StoreUserActions().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4EventManager::SetUserAction ( G4UserStackingAction userAction)

Definition at line 315 of file G4EventManager.cc.

References G4StackManager::SetUserStackingAction(), trackContainer, and userStackingAction.

+ Here is the call graph for this function:

void G4EventManager::SetUserAction ( G4UserTrackingAction userAction)

Definition at line 321 of file G4EventManager.cc.

References G4TrackingManager::SetUserAction(), trackManager, and userTrackingAction.

+ Here is the call graph for this function:

void G4EventManager::SetUserAction ( G4UserSteppingAction userAction)

Definition at line 327 of file G4EventManager.cc.

References G4TrackingManager::SetUserAction(), trackManager, and userSteppingAction.

+ Here is the call graph for this function:

void G4EventManager::SetUserInformation ( G4VUserEventInformation anInfo)

Definition at line 362 of file G4EventManager.cc.

References currentEvent, G4Exception(), G4State_EventProc, G4StateManager::GetCurrentState(), JustWarning, G4Event::SetUserInformation(), and stateManager.

Referenced by LXeEventAction::BeginOfEventAction(), and export_G4EventManager().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4EventManager::SetVerboseLevel ( G4int  value)
inline

Definition at line 170 of file G4EventManager.hh.

References G4PrimaryTransformer::SetVerboseLevel(), and G4StackManager::SetVerboseLevel().

Referenced by export_G4EventManager(), and G4EvManMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4EventManager::StackTracks ( G4TrackVector trackVector,
G4bool  IDhasAlreadySet = false 
)
private

Definition at line 270 of file G4EventManager.cc.

References G4cout, G4endl, G4Track::GetDynamicParticle(), G4Track::GetParentID(), G4DynamicParticle::GetPrimaryParticle(), G4Track::GetTouchableHandle(), G4Track::GetTrackID(), G4InuclParticleNames::pp, G4StackManager::PushOneTrack(), G4Track::SetOriginTouchableHandle(), G4Track::SetTrackID(), G4PrimaryParticle::SetTrackID(), trackContainer, trackIDCounter, and verboseLevel.

Referenced by DoProcessing(), and ProcessOneEvent().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4EventManager::StoreRandomNumberStatusToG4Event ( G4int  vl)
inline

Definition at line 188 of file G4EventManager.hh.

Referenced by G4RunManager::StoreRandomNumberStatusToG4Event().

+ Here is the caller graph for this function:

Member Data Documentation

G4bool G4EventManager::abortRequested
private

Definition at line 110 of file G4EventManager.hh.

Referenced by AbortCurrentEvent(), and DoProcessing().

G4Event* G4EventManager::currentEvent
private
G4ThreadLocal G4EventManager * G4EventManager::fpEventManager = 0
staticprivate

Definition at line 67 of file G4EventManager.hh.

Referenced by G4EventManager(), GetEventManager(), and ~G4EventManager().

G4String G4EventManager::randomNumberStatusToG4Event
private

Definition at line 120 of file G4EventManager.hh.

Referenced by DoProcessing().

G4SDManager* G4EventManager::sdManager
private

Definition at line 107 of file G4EventManager.hh.

Referenced by DoProcessing(), and G4EventManager().

G4StateManager* G4EventManager::stateManager
private
G4int G4EventManager::storetRandomNumberStatusToG4Event
private

Definition at line 119 of file G4EventManager.hh.

Referenced by DoProcessing(), and ProcessOneEvent().

G4EvManMessenger* G4EventManager::theMessenger
private

Definition at line 112 of file G4EventManager.hh.

Referenced by G4EventManager(), and ~G4EventManager().

G4StackManager* G4EventManager::trackContainer
private
G4int G4EventManager::trackIDCounter
private

Definition at line 105 of file G4EventManager.hh.

Referenced by DoProcessing(), ProcessOneEvent(), and StackTracks().

G4bool G4EventManager::tracking
private

Definition at line 109 of file G4EventManager.hh.

Referenced by AbortCurrentEvent(), and DoProcessing().

G4TrackingManager* G4EventManager::trackManager
private
G4TrajectoryContainer* G4EventManager::trajectoryContainer
private

Definition at line 104 of file G4EventManager.hh.

Referenced by DoProcessing().

G4PrimaryTransformer* G4EventManager::transformer
private
G4UserEventAction* G4EventManager::userEventAction
private
G4UserStackingAction* G4EventManager::userStackingAction
private

Definition at line 115 of file G4EventManager.hh.

Referenced by G4EventManager(), GetUserStackingAction(), and SetUserAction().

G4UserSteppingAction* G4EventManager::userSteppingAction
private

Definition at line 117 of file G4EventManager.hh.

Referenced by G4EventManager(), GetUserSteppingAction(), and SetUserAction().

G4UserTrackingAction* G4EventManager::userTrackingAction
private

Definition at line 116 of file G4EventManager.hh.

Referenced by G4EventManager(), GetUserTrackingAction(), and SetUserAction().

G4int G4EventManager::verboseLevel
private

Definition at line 106 of file G4EventManager.hh.

Referenced by DoProcessing(), GetVerboseLevel(), and StackTracks().


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