actions
Loading...
Searching...
No Matches
gRun.h
Go to the documentation of this file.
1#pragma once
2
3// geant4
4#include "G4Run.hh"
5
6// gemc
7#include <gemc/goptions/goptions.h>
8#include <gemc/gdynamicDigitization/gdynamicdigitization.h>
9
17constexpr const char* GRUN_LOGGER = "grun";
18
19using GHitsCollection = G4THitsCollection<GHit>;
20
26namespace grun {
33} // namespace grun
34
35
54class GRun : public GBase<GRun>, public G4Run {
55public:
62 explicit GRun(std::shared_ptr<GOptions> gopts,
63 std::shared_ptr<gdynamicdigitization::dRoutinesMap> digi_map);
64
65 ~GRun() override = default;
66
67 GRun(const GRun&) = delete;
68 GRun& operator=(const GRun&) = delete;
69 GRun(GRun&&) = delete;
70 GRun& operator=(GRun&&) = delete;
71
72private:
80 std::shared_ptr<gdynamicdigitization::dRoutinesMap> digitization_routines_map;
81};
Thread-local run object created by the GEMC run action.
Definition gRun.h:54
GRun & operator=(GRun &&)=delete
~GRun() override=default
GRun(const GRun &)=delete
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
GRun & operator=(const GRun &)=delete
GRun(GRun &&)=delete
constexpr const char * GRUN_LOGGER
Definition gRun.h:17
G4THitsCollection< GHit > GHitsCollection
Namespace containing helpers related to the run-container scope.
Definition gRun.h:26
GOptions defineOptions()
Returns the options associated with the run-container logger scope.
Definition gRun.h:32