actions
Loading...
Searching...
No Matches
gRun.cc
Go to the documentation of this file.
1// geant4
2#include "G4Event.hh"
3
4// gemc
5#include "gRun.h"
6
7
8// Construct the thread-local run object and retain access to the shared
9// digitization-routine map for the lifetime of the run.
10GRun::GRun(std::shared_ptr<GOptions> gopt,
11 std::shared_ptr<gdynamicdigitization::dRoutinesMap> digi_map) :
12 GBase(gopt, GRUN_LOGGER),
13 digitization_routines_map(std::move(digi_map)) {
14 const auto desc = "GRun " + std::to_string(G4Threading::G4GetThreadId());
15 log->debug(CONSTRUCTOR, FUNCTION_NAME, desc);
16}
GBase(const std::shared_ptr< GOptions > &gopt, std::string logger_name="")
std::shared_ptr< GLogger > log
GRun(std::shared_ptr< GOptions > gopts, std::shared_ptr< gdynamicdigitization::dRoutinesMap > digi_map)
Constructs the run object for the current execution thread.
Definition gRun.cc:10
Declares GRun, the thread-local run container used by the GEMC actions module.
constexpr const char * GRUN_LOGGER
Definition gRun.h:17
#define FUNCTION_NAME
CONSTRUCTOR