 |
Belle II Software
release-05-02-19
|
14 #include <G4RunManager.hh>
15 #include <G4AssemblyVolume.hh>
23 namespace Simulation {
32 class RunManager :
public G4RunManager {
void addAssemblyVolume(G4AssemblyVolume *vol)
Register a G4AssemblyVolume.
RunManager & operator=(const RunManager &)
Disable/Hide the copy assignment operator.
std::vector< G4AssemblyVolume * > m_AssemblyVolumes
Vector of pointers to G4AssemblyVolumes.
void Initialize()
Initialize the Kernel.
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.
void beginRun(int runNumber)
Prepares Geant4 for a new run.
RunManager()
The constructor is hidden to avoid that someone creates an instance of this class.
Abstract base class for different kinds of events.
static RunManager & Instance()
Static method to get a reference to the RunManager instance.
void processEvent(int evtNumber)
Process a single event in Geant4.
void endRun()
Terminates a Geant4 run.
static RunManager * m_instance
Pointer that saves the instance of this class.
virtual ~RunManager()
The RunManager destructor.
void destroy()
Destroys the RunManager at the end of the simulation.