12 #include <G4RunManager.hh>
13 #include <G4AssemblyVolume.hh>
21 namespace Simulation {
Destroyer class to delete the instance of the RunManager class when the program terminates.
The run manager controls the flow of the Geant4 program and manages the event loop(s) within a run.
virtual ~RunManager()
The RunManager destructor.
RunManager(const RunManager &)
Disable/Hide the copy constructor.
void beginRun(int runNumber)
Prepares Geant4 for a new run.
void destroy()
Destroys the RunManager at the end of the simulation.
void processEvent(int evtNumber)
Process a single event in Geant4.
std::vector< G4AssemblyVolume * > m_AssemblyVolumes
Vector of pointers to G4AssemblyVolumes.
RunManager & operator=(const RunManager &)
Disable/Hide the copy assignment operator.
void endRun()
Terminates a Geant4 run.
void Initialize()
Initialize the Kernel.
void addAssemblyVolume(G4AssemblyVolume *vol)
Register a G4AssemblyVolume.
static RunManager * m_instance
Pointer that saves the instance of this class.
static RunManager & Instance()
Static method to get a reference to the RunManager instance.
RunManager()
The constructor is hidden to avoid that someone creates an instance of this class.
Abstract base class for different kinds of events.