12#include <G4RunManager.hh>
13#include <G4AssemblyVolume.hh>
23 namespace Simulation {
Interface class to make Geant4 use the Belle2 RandomGenerator.
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.
void endRun()
Terminates a Geant4 run.
void Initialize()
Initialize the Kernel.
void addAssemblyVolume(G4AssemblyVolume *vol)
Register a G4AssemblyVolume.
RunManager & operator=(const RunManager &)
Disable/Hide the copy assignment operator.
RandomEngine * m_randomEngine
Pointer to RandomEngine to avoid memory leak by creating it in the constructor and deleting it in the...
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.