4#include "G4UserRunAction.hh"
62 GRunAction(std::shared_ptr<GOptions> gopts, std::shared_ptr<gdynamicdigitization::dRoutinesMap> digi_map);
73 return digitization_routines_map;
96 G4Run* GenerateRun()
override;
107 void BeginOfRunAction(
const G4Run* run)
override;
117 void EndOfRunAction(
const G4Run* run)
override;
127 std::shared_ptr<gdynamicdigitization::dRoutinesMap> digitization_routines_map;
132 std::shared_ptr<const gstreamer::gstreamersMap> gstreamer_map;
Handles run begin/end callbacks and creates the per-thread run object.
auto get_streamer_map() const -> std::shared_ptr< const gstreamer::gstreamersMap >
Returns the per-thread streamer map, if it has been created.
auto get_digitization_routines_map() const -> std::shared_ptr< gdynamicdigitization::dRoutinesMap >
Returns the shared digitization routines map.
GRunAction(std::shared_ptr< GOptions > gopts, std::shared_ptr< gdynamicdigitization::dRoutinesMap > digi_map)
Constructs the run action.
constexpr const char * GRUNACTION_LOGGER
Namespace collecting helpers for the run action.
GOptions defineOptions()
Returns the options associated with the run action.