LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "ActionHolder_service.hh"
Public Member Functions | |
ActionHolderService (fhicl::ParameterSet const &) | |
void | registerAction (RunActionBase *const action) |
void | registerAction (EventActionBase *const action) |
void | registerAction (TrackingActionBase *const action) |
void | registerAction (SteppingActionBase *const action) |
void | registerAction (StackingActionBase *const action) |
void | registerAction (PrimaryGeneratorActionBase *const action) |
void | initialize () |
void | callArtProduces (art::ProducesCollector &prod) |
void | setCurrArtEvent (art::Event &e) |
art::Event & | getCurrArtEvent () |
void | setCurrArtRun (art::Run &r) |
art::Run & | getCurrArtRun () |
void | beginOfEventAction (const G4Event *) |
void | endOfEventAction (const G4Event *) |
void | preUserTrackingAction (const G4Track *) |
void | postUserTrackingAction (const G4Track *) |
void | userSteppingAction (const G4Step *) |
bool | killNewTrack (const G4Track *) |
void | generatePrimaries (G4Event *) |
Private Member Functions | |
template<typename A > | |
void | doRegisterAction (A *const action, std::map< std::string, A * > &actionMap) |
Private Attributes | |
std::map< std::string, RunActionBase * > | runActionsMap_ {} |
std::map< std::string, EventActionBase * > | eventActionsMap_ {} |
std::map< std::string, TrackingActionBase * > | trackingActionsMap_ {} |
std::map< std::string, SteppingActionBase * > | steppingActionsMap_ {} |
std::map< std::string, StackingActionBase * > | stackingActionsMap_ {} |
std::map< std::string, PrimaryGeneratorActionBase * > | primaryGeneratorActionsMap_ {} |
art::Event * | currentArtEvent_ {nullptr} |
art::Run * | currentArtRun_ {nullptr} |
std::map< std::string, ActionBase * > | allActionsMap_ {} |
Definition at line 46 of file ActionHolder_service.hh.
|
explicit |
Definition at line 31 of file ActionHolder.cc.
void artg4tk::ActionHolderService::beginOfEventAction | ( | const G4Event * | theEvent | ) |
Definition at line 122 of file ActionHolder.cc.
References eventActionsMap_, and util::values().
Referenced by artg4tk::ArtG4EventAction::BeginOfEventAction().
void artg4tk::ActionHolderService::callArtProduces | ( | art::ProducesCollector & | prod | ) |
Definition at line 103 of file ActionHolder.cc.
References eventActionsMap_, and util::values().
|
private |
Definition at line 36 of file ActionHolder.cc.
References allActionsMap_, and msgctg.
Referenced by registerAction().
void artg4tk::ActionHolderService::endOfEventAction | ( | const G4Event * | theEvent | ) |
Definition at line 130 of file ActionHolder.cc.
References eventActionsMap_, and util::values().
Referenced by artg4tk::ArtG4EventAction::EndOfEventAction().
void artg4tk::ActionHolderService::generatePrimaries | ( | G4Event * | theEvent | ) |
Definition at line 177 of file ActionHolder.cc.
References primaryGeneratorActionsMap_, and util::values().
Referenced by artg4tk::ArtG4PrimaryGeneratorAction::GeneratePrimaries().
|
inline |
Definition at line 73 of file ActionHolder_service.hh.
|
inline |
Definition at line 85 of file ActionHolder_service.hh.
void artg4tk::ActionHolderService::initialize | ( | ) |
Definition at line 111 of file ActionHolder.cc.
References allActionsMap_, and util::values().
bool artg4tk::ActionHolderService::killNewTrack | ( | const G4Track * | newTrack | ) |
Definition at line 165 of file ActionHolder.cc.
References stackingActionsMap_, and util::values().
Referenced by artg4tk::ArtG4StackingAction::ClassifyNewTrack().
void artg4tk::ActionHolderService::postUserTrackingAction | ( | const G4Track * | theTrack | ) |
Definition at line 147 of file ActionHolder.cc.
References trackingActionsMap_, and util::values().
Referenced by artg4tk::ArtG4TrackingAction::PostUserTrackingAction().
void artg4tk::ActionHolderService::preUserTrackingAction | ( | const G4Track * | theTrack | ) |
Definition at line 139 of file ActionHolder.cc.
References trackingActionsMap_, and util::values().
Referenced by artg4tk::ArtG4TrackingAction::PreUserTrackingAction().
void artg4tk::ActionHolderService::registerAction | ( | RunActionBase *const | action | ) |
Definition at line 60 of file ActionHolder.cc.
References doRegisterAction(), and runActionsMap_.
Referenced by artg4tk::RunActionBase::RunActionBase().
void artg4tk::ActionHolderService::registerAction | ( | EventActionBase *const | action | ) |
Definition at line 67 of file ActionHolder.cc.
References doRegisterAction(), and eventActionsMap_.
void artg4tk::ActionHolderService::registerAction | ( | TrackingActionBase *const | action | ) |
Definition at line 74 of file ActionHolder.cc.
References doRegisterAction(), and trackingActionsMap_.
void artg4tk::ActionHolderService::registerAction | ( | SteppingActionBase *const | action | ) |
Definition at line 81 of file ActionHolder.cc.
References doRegisterAction(), and steppingActionsMap_.
void artg4tk::ActionHolderService::registerAction | ( | StackingActionBase *const | action | ) |
Definition at line 88 of file ActionHolder.cc.
References doRegisterAction(), and stackingActionsMap_.
void artg4tk::ActionHolderService::registerAction | ( | PrimaryGeneratorActionBase *const | action | ) |
Definition at line 95 of file ActionHolder.cc.
References doRegisterAction(), and primaryGeneratorActionsMap_.
|
inline |
Definition at line 68 of file ActionHolder_service.hh.
References e.
|
inline |
Definition at line 80 of file ActionHolder_service.hh.
References r.
void artg4tk::ActionHolderService::userSteppingAction | ( | const G4Step * | theStep | ) |
Definition at line 156 of file ActionHolder.cc.
References steppingActionsMap_, and util::values().
Referenced by artg4tk::ArtG4SteppingAction::UserSteppingAction().
|
private |
Definition at line 125 of file ActionHolder_service.hh.
Referenced by doRegisterAction(), and initialize().
|
private |
Definition at line 119 of file ActionHolder_service.hh.
|
private |
Definition at line 122 of file ActionHolder_service.hh.
|
private |
Definition at line 112 of file ActionHolder_service.hh.
Referenced by beginOfEventAction(), callArtProduces(), endOfEventAction(), and registerAction().
|
private |
Definition at line 116 of file ActionHolder_service.hh.
Referenced by generatePrimaries(), and registerAction().
|
private |
Definition at line 111 of file ActionHolder_service.hh.
Referenced by registerAction().
|
private |
Definition at line 115 of file ActionHolder_service.hh.
Referenced by killNewTrack(), and registerAction().
|
private |
Definition at line 114 of file ActionHolder_service.hh.
Referenced by registerAction(), and userSteppingAction().
|
private |
Definition at line 113 of file ActionHolder_service.hh.
Referenced by postUserTrackingAction(), preUserTrackingAction(), and registerAction().