|
actions
|
Thread-local run object created by the GEMC run action. 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 execution thread. | |
| ~GRun () override=default | |
| GRun (const GRun &)=delete | |
| GRun & | operator= (const GRun &)=delete |
| GRun (GRun &&)=delete | |
| GRun & | operator= (GRun &&)=delete |
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 represents a sequence of events managed under one BeamOn() request. In multithreaded execution, each worker thread owns its own run object, and Geant4 may later merge worker-side run information into a master-level view.
In this module, GRun acts as the run object instantiated through the private method GenerateRun(). Its current role is intentionally small: it stores access to the shared digitization-routine map so the run-level execution context has a consistent view of the digitization configuration throughout the run.
Even though the class is lightweight, it is the natural extension point for future run-scoped services and state that should live for the duration of a thread-local run.
|
explicit |
|
overridedefault |
|
delete |
|
delete |