actions
Loading...
Searching...
No Matches
gaction.h
Go to the documentation of this file.
1#pragma once
2
3// geant4
4#include "G4VUserActionInitialization.hh"
5
6// gemc
7#include "gbase.h"
9#include "gstreamer.h"
10
11// the other actions, so we can define the options all at once
12#include "event/gEventAction.h"
13#include "run/gRunAction.h"
14#include "run/gRun.h"
16
27constexpr const char* GACTION_LOGGER = "gaction";
28
59
60
79class GAction : public GBase<GAction>, public G4VUserActionInitialization {
80public:
87 GAction(std::shared_ptr<GOptions> gopts, std::shared_ptr<gdynamicdigitization::dRoutinesMap> digi_map);
88
99 void Build() const override;
100
106 void BuildForMaster() const override;
107
108private:
115 std::shared_ptr<GOptions> goptions;
116
123 std::shared_ptr<gdynamicdigitization::dRoutinesMap> digitization_routines_map;
124};
Registers GEMC user actions for worker and master threads.
Definition gaction.h:79
GAction(std::shared_ptr< GOptions > gopts, std::shared_ptr< gdynamicdigitization::dRoutinesMap > digi_map)
Constructs the action initializer.
Definition gaction.cc:8
void Build() const override
Registers user actions for worker threads (and sequential mode).
Definition gaction.cc:22
void BuildForMaster() const override
Registers user actions for the master thread.
Definition gaction.cc:14
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 GRun, the per-thread run container.
constexpr const char * GACTION_LOGGER
Definition gaction.h:27
Namespace collecting helpers for the actions subsystem.
Definition gaction.h:34
GOptions defineOptions()
Builds and returns the complete set of options required by the actions subsystem.
Definition gaction.h:50
GOptions defineOptions()
Returns the options associated with the event action.
GOptions defineOptions()
Returns the options associated with the primary generator action.
GOptions defineOptions()
Returns the options associated with the run container scope.
Definition gRun.h:32
GOptions defineOptions()
Returns the options associated with the run action.
Definition gRunAction.h:33