19 parameters_{parameters},
20 the_log_{::
framework::logging::makeLogger(name)} {}
24 G4EventManager::GetEventManager()->GetUserInformation());
35 << G4EventManager::GetEventManager()->GetConstCurrentEvent()->GetEventID()
36 <<
") " << reason <<
" Aborting event.";
38 G4RunManager::GetRunManager()->AbortEvent();
#define DEFINE_FACTORY(classtype)
This should go into an implementation file for your prototype class.
Class which implements the user tracking action.
File holding UserAction prototype and supporting macro.
Class encapsulating parameters for configuring a processor.
std::map< int, ldmx::SimParticle > & getParticleMap()
Get the map of particles to be stored in output event.
Interface that defines a user action.
UserAction(const std::string &name, framework::config::Parameters ¶meters)
Constructor.
const std::map< int, ldmx::SimParticle > & getCurrentParticleMap() const
Get the current particle map.
UserEventInformation * getEventInfo() const
Get a handle to the event information.
void abortEvent(const std::string &reason) const
Helper to abort an event with a message.
TrackMap & getTrackMap()
Get a handle to the current TrackMap for the event.
static TrackingAction * get()
Get a pointer to the current UserTrackingAction from the G4RunManager.
All classes in the ldmx-sw project use this namespace.
Dynamically loadable photonuclear models either from SimCore or external libraries implementing this ...