8GAction::GAction(std::shared_ptr<GOptions> gopts, std::shared_ptr<gdynamicdigitization::dRoutinesMap> digi_map) :
11 digitization_routines_map(digi_map) { }
24 auto thread_id = G4Threading::G4GetThreadId();
31 SetUserAction(run_action);
GAction(std::shared_ptr< GOptions > gopts, std::shared_ptr< gdynamicdigitization::dRoutinesMap > digi_map)
Constructs the action initializer.
void Build() const override
Registers user actions for worker threads (and sequential mode).
void BuildForMaster() const override
Registers user actions for the master thread.
std::shared_ptr< GLogger > log
Handles event begin/end callbacks and triggers digitization + streaming.
void debug(debug_type type, Args &&... args) const
Generates primary vertices for each event.
Handles run begin/end callbacks and creates the per-thread run object.
Declares GEventAction, responsible for per-event lifecycle hooks and event publication.
Declares GPrimaryGeneratorAction, the primary particle generation action.
Declares GRunAction, responsible for run lifecycle hooks and run object creation.
Declares GAction, the Geant4 action-initialization entry point for GEMC.
constexpr const char * GACTION_LOGGER