Geant4-11
|
#include <G4EventManager.hh>
Public Types | |
using | ProfilerConfig = G4ProfilerConfig< G4ProfileType::Event > |
Static Public Member Functions | |
static G4EventManager * | GetEventManager () |
Private Member Functions | |
void | DoProcessing (G4Event *anEvent) |
Private Attributes | |
G4bool | abortRequested = false |
G4Event * | currentEvent = nullptr |
std::unique_ptr< ProfilerConfig > | eventProfiler |
G4String | randomNumberStatusToG4Event |
G4SDManager * | sdManager = nullptr |
G4StateManager * | stateManager = nullptr |
G4int | storetRandomNumberStatusToG4Event = 0 |
G4EvManMessenger * | theMessenger = nullptr |
G4StackManager * | trackContainer = nullptr |
G4int | trackIDCounter = 0 |
G4bool | tracking = false |
G4TrackingManager * | trackManager = nullptr |
G4TrajectoryContainer * | trajectoryContainer = nullptr |
G4PrimaryTransformer * | transformer = nullptr |
G4UserEventAction * | userEventAction = nullptr |
G4UserStackingAction * | userStackingAction = nullptr |
G4UserSteppingAction * | userSteppingAction = nullptr |
G4UserTrackingAction * | userTrackingAction = nullptr |
G4int | verboseLevel = 0 |
Static Private Attributes | |
static G4ThreadLocal G4EventManager * | fpEventManager = nullptr |
Definition at line 56 of file G4EventManager.hh.
Definition at line 59 of file G4EventManager.hh.
G4EventManager::G4EventManager | ( | ) |
Definition at line 57 of file G4EventManager.cc.
References FatalException, fpEventManager, G4Exception(), G4SDManager::GetSDMpointerIfExist(), G4StateManager::GetStateManager(), sdManager, stateManager, theMessenger, trackContainer, trackManager, and transformer.
G4EventManager::~G4EventManager | ( | ) |
Definition at line 76 of file G4EventManager.cc.
References fpEventManager, theMessenger, trackContainer, trackManager, transformer, and userEventAction.
|
delete |
void G4EventManager::AbortCurrentEvent | ( | ) |
Definition at line 436 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().
|
private |
Definition at line 86 of file G4EventManager.cc.
References abortRequested, G4UserEventAction::BeginOfEventAction(), currentEvent, G4UserEventAction::EndOfEventAction(), eventProfiler, fAlive, fKillTrackAndSecondaries, fPostponeToNextEvent, fStopAndKill, fStopButAlive, fSuspend, G4cout, G4endl, G4Exception(), G4State_EventProc, G4State_GeomClosed, G4StateManager::GetCurrentState(), G4Event::GetHCofThisEvent(), G4TransportationManager::GetNavigatorForTracking(), G4StackManager::GetNTotalTrack(), G4Event::GetNumberOfPrimaryVertex(), G4StackManager::GetNUrgentTrack(), G4Track::GetParentID(), G4Track::GetParticleDefinition(), G4SDManager::GetSDMpointerIfExist(), G4Track::GetTrackID(), G4ParticleDefinition::GetTrackingManager(), G4Track::GetTrackStatus(), G4TransportationManager::GetTransportationManager(), G4PrimaryTransformer::GimmePrimaries(), G4TrackingManager::GimmeSecondaries(), G4TrackingManager::GimmeTrajectory(), G4VTrackingManager::HandOverOneTrack(), G4TrajectoryContainer::insert(), JustWarning, G4VTrajectory::MergeTrajectory(), write_gdml::navigator, G4StackManager::PopNextTrack(), G4SDManager::PrepareNewEvent(), G4StackManager::PrepareNewEvent(), G4TrackingManager::ProcessOneTrack(), G4StackManager::PushOneTrack(), randomNumberStatusToG4Event, CLHEP::HepRandom::saveFullState(), sdManager, G4Event::SetHCofThisEvent(), G4StateManager::SetNewState(), G4Event::SetRandomNumberStatusForProcessing(), G4Event::SetTrajectoryContainer(), StackTracks(), stateManager, storetRandomNumberStatusToG4Event, G4SDManager::TerminateCurrentEvent(), G4InuclParticleNames::tm, trackContainer, trackIDCounter, tracking, trackManager, trajectoryContainer, transformer, userEventAction, and verboseLevel.
Referenced by ProcessOneEvent().
|
inline |
Definition at line 95 of file G4EventManager.hh.
References currentEvent.
Referenced by G4VisManager::Draw(), G4VisManager::EndOfEvent(), and export_G4EventManager().
|
static |
Definition at line 52 of file G4EventManager.cc.
References fpEventManager.
Referenced by G4StackChecker::ClassifyNewTrack(), G4VisManager::Draw(), G4VisManager::EndOfEvent(), export_G4EventManager(), G4ErrorPropagator::G4ErrorPropagator(), G4MaterialScanner::G4MaterialScanner(), G4TheRayTracer::G4TheRayTracer(), G4ErrorPropagator::InvokePostUserTrackingAction(), G4ErrorPropagator::InvokePreUserTrackingAction(), G4ErrorPropagatorManager::SetSteppingManagerVerboseLevel(), G4ErrorPropagatorManager::SetUserAction(), G4ErrorRunManagerHelper::SetUserAction(), and G4ErrorPropagatorManager::StartNavigator().
|
inline |
Definition at line 97 of file G4EventManager.hh.
References currentEvent.
Referenced by export_G4EventManager().
|
inline |
Definition at line 153 of file G4EventManager.hh.
References transformer.
Referenced by G4RunManagerKernel::GetPrimaryTransformer().
|
inline |
Definition at line 132 of file G4EventManager.hh.
References trackContainer.
Referenced by export_G4EventManager(), and G4RunManagerKernel::GetStackManager().
|
inline |
Definition at line 134 of file G4EventManager.hh.
References trackManager.
Referenced by export_G4EventManager(), G4ErrorPropagator::G4ErrorPropagator(), G4RunManagerKernel::GetTrackingManager(), G4ErrorPropagatorManager::SetSteppingManagerVerboseLevel(), and G4ErrorPropagatorManager::StartNavigator().
|
inline |
Definition at line 113 of file G4EventManager.hh.
References userEventAction.
Referenced by G4MaterialScanner::StoreUserActions(), and G4TheRayTracer::StoreUserActions().
G4VUserEventInformation * G4EventManager::GetUserInformation | ( | ) |
Definition at line 420 of file G4EventManager.cc.
References currentEvent, G4State_EventProc, G4StateManager::GetCurrentState(), G4Event::GetUserInformation(), and stateManager.
Referenced by export_G4EventManager().
|
inline |
Definition at line 115 of file G4EventManager.hh.
References userStackingAction.
Referenced by G4MaterialScanner::StoreUserActions(), and G4TheRayTracer::StoreUserActions().
|
inline |
Definition at line 119 of file G4EventManager.hh.
References userSteppingAction.
Referenced by G4MaterialScanner::StoreUserActions(), and G4TheRayTracer::StoreUserActions().
|
inline |
Definition at line 117 of file G4EventManager.hh.
References userTrackingAction.
Referenced by G4ErrorPropagator::InvokePostUserTrackingAction(), G4ErrorPropagator::InvokePreUserTrackingAction(), G4MaterialScanner::StoreUserActions(), and G4TheRayTracer::StoreUserActions().
|
inline |
Definition at line 137 of file G4EventManager.hh.
References verboseLevel.
Referenced by export_G4EventManager(), and G4EvManMessenger::GetCurrentValue().
void G4EventManager::KeepTheCurrentEvent | ( | ) |
Definition at line 431 of file G4EventManager.cc.
References currentEvent, and G4Event::KeepTheEvent().
Referenced by G4VisManager::EndOfEvent(), and G4EvManMessenger::SetNewValue().
|
delete |
void G4EventManager::ProcessOneEvent | ( | G4Event * | anEvent | ) |
Definition at line 374 of file G4EventManager.cc.
References DoProcessing(), and trackIDCounter.
Referenced by G4TheRayTracer::CreateBitMap(), G4MaterialScanner::DoScan(), G4RunManager::ProcessOneEvent(), G4WorkerRunManager::ProcessOneEvent(), and G4WorkerTaskRunManager::ProcessOneEvent().
void G4EventManager::ProcessOneEvent | ( | G4TrackVector * | trackVector, |
G4Event * | anEvent = nullptr |
||
) |
Definition at line 380 of file G4EventManager.cc.
References DoProcessing(), G4ThreadLocal, CLHEP::HepRandom::saveFullState(), G4Event::SetRandomNumberStatus(), StackTracks(), storetRandomNumberStatusToG4Event, and trackIDCounter.
|
inline |
Definition at line 125 of file G4EventManager.hh.
References G4StackManager::SetNumberOfAdditionalWaitingStacks(), and trackContainer.
Referenced by export_G4EventManager(), and G4RunManager::SetNumberOfAdditionalWaitingStacks().
|
inline |
Definition at line 155 of file G4EventManager.hh.
References transformer.
Referenced by G4RunManagerKernel::SetPrimaryTransformer().
void G4EventManager::SetUserAction | ( | G4UserEventAction * | userAction | ) |
Definition at line 347 of file G4EventManager.cc.
References G4UserEventAction::SetEventManager(), and userEventAction.
Referenced by G4MaterialScanner::RestoreUserActions(), G4TheRayTracer::RestoreUserActions(), G4RunManager::SetUserAction(), G4ErrorPropagatorManager::SetUserAction(), G4ErrorRunManagerHelper::SetUserAction(), G4MaterialScanner::StoreUserActions(), and G4TheRayTracer::StoreUserActions().
void G4EventManager::SetUserAction | ( | G4UserStackingAction * | userAction | ) |
Definition at line 356 of file G4EventManager.cc.
References G4StackManager::SetUserStackingAction(), trackContainer, and userStackingAction.
void G4EventManager::SetUserAction | ( | G4UserSteppingAction * | userAction | ) |
Definition at line 368 of file G4EventManager.cc.
References G4TrackingManager::SetUserAction(), trackManager, and userSteppingAction.
void G4EventManager::SetUserAction | ( | G4UserTrackingAction * | userAction | ) |
Definition at line 362 of file G4EventManager.cc.
References G4TrackingManager::SetUserAction(), trackManager, and userTrackingAction.
void G4EventManager::SetUserInformation | ( | G4VUserEventInformation * | anInfo | ) |
Definition at line 405 of file G4EventManager.cc.
References currentEvent, G4Exception(), G4State_EventProc, G4StateManager::GetCurrentState(), JustWarning, G4Event::SetUserInformation(), and stateManager.
Referenced by export_G4EventManager().
|
inline |
Definition at line 139 of file G4EventManager.hh.
References G4StackManager::SetVerboseLevel(), G4PrimaryTransformer::SetVerboseLevel(), trackContainer, transformer, and verboseLevel.
Referenced by export_G4EventManager(), and G4EvManMessenger::SetNewValue().
void G4EventManager::StackTracks | ( | G4TrackVector * | trackVector, |
G4bool | IDhasAlreadySet = false |
||
) |
Definition at line 312 of file G4EventManager.cc.
References G4cout, G4endl, G4InuclParticleNames::pp, G4StackManager::PushOneTrack(), trackContainer, trackIDCounter, and verboseLevel.
Referenced by DoProcessing(), and ProcessOneEvent().
|
inline |
Definition at line 157 of file G4EventManager.hh.
References storetRandomNumberStatusToG4Event.
Referenced by G4RunManager::StoreRandomNumberStatusToG4Event().
|
private |
Definition at line 178 of file G4EventManager.hh.
Referenced by AbortCurrentEvent(), and DoProcessing().
|
private |
Definition at line 168 of file G4EventManager.hh.
Referenced by DoProcessing(), GetConstCurrentEvent(), GetNonconstCurrentEvent(), GetUserInformation(), KeepTheCurrentEvent(), and SetUserInformation().
|
private |
Definition at line 193 of file G4EventManager.hh.
Referenced by DoProcessing().
|
staticprivate |
Definition at line 166 of file G4EventManager.hh.
Referenced by G4EventManager(), GetEventManager(), and ~G4EventManager().
|
private |
Definition at line 188 of file G4EventManager.hh.
Referenced by DoProcessing().
|
private |
Definition at line 175 of file G4EventManager.hh.
Referenced by DoProcessing(), and G4EventManager().
|
private |
Definition at line 190 of file G4EventManager.hh.
Referenced by DoProcessing(), G4EventManager(), GetUserInformation(), and SetUserInformation().
|
private |
Definition at line 187 of file G4EventManager.hh.
Referenced by DoProcessing(), ProcessOneEvent(), and StoreRandomNumberStatusToG4Event().
|
private |
Definition at line 180 of file G4EventManager.hh.
Referenced by G4EventManager(), and ~G4EventManager().
|
private |
Definition at line 170 of file G4EventManager.hh.
Referenced by AbortCurrentEvent(), DoProcessing(), G4EventManager(), GetStackManager(), SetNumberOfAdditionalWaitingStacks(), SetUserAction(), SetVerboseLevel(), StackTracks(), and ~G4EventManager().
|
private |
Definition at line 173 of file G4EventManager.hh.
Referenced by DoProcessing(), ProcessOneEvent(), and StackTracks().
|
private |
Definition at line 177 of file G4EventManager.hh.
Referenced by AbortCurrentEvent(), and DoProcessing().
|
private |
Definition at line 171 of file G4EventManager.hh.
Referenced by AbortCurrentEvent(), DoProcessing(), G4EventManager(), GetTrackingManager(), SetUserAction(), and ~G4EventManager().
|
private |
Definition at line 172 of file G4EventManager.hh.
Referenced by DoProcessing().
|
private |
Definition at line 176 of file G4EventManager.hh.
Referenced by DoProcessing(), G4EventManager(), GetPrimaryTransformer(), SetPrimaryTransformer(), SetVerboseLevel(), and ~G4EventManager().
|
private |
Definition at line 182 of file G4EventManager.hh.
Referenced by DoProcessing(), GetUserEventAction(), SetUserAction(), and ~G4EventManager().
|
private |
Definition at line 183 of file G4EventManager.hh.
Referenced by GetUserStackingAction(), and SetUserAction().
|
private |
Definition at line 185 of file G4EventManager.hh.
Referenced by GetUserSteppingAction(), and SetUserAction().
|
private |
Definition at line 184 of file G4EventManager.hh.
Referenced by GetUserTrackingAction(), and SetUserAction().
|
private |
Definition at line 174 of file G4EventManager.hh.
Referenced by DoProcessing(), GetVerboseLevel(), SetVerboseLevel(), and StackTracks().