|
actions
|
Thread-local run object created for each Geant4 run. More...
#include <gRun.h>
Public Member Functions | |
| GRun (std::shared_ptr< GOptions > gopts, std::shared_ptr< gdynamicdigitization::dRoutinesMap > digi_map) | |
| Constructs the run object for the current thread. | |
Public Member Functions inherited from GBase< GRun > | |
| 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< GRun > | |
| std::shared_ptr< GLogger > | log |
In Geant4, a run is a sequence of events started by the run manager BeamOn(). In multithreaded mode, each worker thread creates its own run object; Geant4 may later merge worker runs into a global run.
GEMC uses this run object as the place where run-level services can be attached. In particular, the digitization routines map is stored so that event-level logic can reference consistent digitization behavior for the lifetime of the run.
Creation:
| GRun::GRun | ( | std::shared_ptr< GOptions > | gopts, |
| std::shared_ptr< gdynamicdigitization::dRoutinesMap > | digi_map ) |