|
actions
|
Registers GEMC user actions for worker and master threads. More...
#include <gaction.h>
Public Member Functions | |
| 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. | |
Public Member Functions inherited from GBase< GAction > | |
| GBase (const std::shared_ptr< GOptions > &gopt, std::string logger_name="") | |
| GBase (const std::shared_ptr< GLogger > &logger) | |
| GBase (const GBase &)=default | |
| GBase (GBase &&) noexcept=default | |
| virtual | ~GBase () |
| GBase & | operator= (const GBase &)=default |
| GBase & | operator= (GBase &&) noexcept=default |
Additional Inherited Members | |
Protected Attributes inherited from GBase< GAction > | |
| std::shared_ptr< GLogger > | log |
Geant4 uses an action initialization class (G4VUserActionInitialization) to instantiate user action objects. These action objects are typically thread-local:
This class holds:
| GAction::GAction | ( | std::shared_ptr< GOptions > | gopts, |
| std::shared_ptr< gdynamicdigitization::dRoutinesMap > | digi_map ) |
| gopts | Shared configuration object used by all actions constructed by this initializer. |
| digi_map | Shared map from sensitive detector / hit collection name to digitization routines. |
Definition at line 8 of file gaction.cc.
|
override |
Expected registrations include:
The constructed actions receive the shared configuration and digitization map.
Definition at line 22 of file gaction.cc.
|
override |
In multithreaded mode, the master thread typically registers only the run action.
Definition at line 14 of file gaction.cc.