#include <SimG4Common/include/SimG4Common/RunManager.h>
|
bool | m_prevEventTerminated |
| Flag indicating if the previous Event was terminated in Geant successfuly.
|
|
ServiceHandle< IMessageSvc > | m_msgSvc |
| Message Service.
|
|
MsgStream | m_log |
| Message Stream.
|
|
◆ RunManager()
RunManager::RunManager |
( |
| ) |
|
◆ ~RunManager()
RunManager::~RunManager |
( |
| ) |
|
◆ finalize()
void RunManager::finalize |
( |
| ) |
|
◆ processEvent()
StatusCode RunManager::processEvent |
( |
G4Event & | aEvent | ) |
|
Processing of the event.
It substitutes the G4RunManager::ProcessOneEvent(int) method (excluding the generation part). It checks if the previous event has been fully processed (including a call to terminateEvent()) and begins its simulation.
- Warning
- Each call to processEvent() should be followed by a call to terminateEvent().
- Parameters
-
[in] | aEvent | a generated event to be processed in a simulation |
- Returns
- the status code
◆ retrieveEvent()
StatusCode RunManager::retrieveEvent |
( |
G4Event *& | aEvent | ) |
|
Retrieves an event.
It allows to retrieve the event containing the data that may be stored (eg. collections of hits in the sensitive detectors). The lifetime of the pointer to G4Event ends when method terminateEvent() is called.
- Parameters
-
[out] | aEvent | a processed event |
- Returns
- the status code
◆ start()
StatusCode RunManager::start |
( |
| ) |
|
Initialization.
It substitutes the G4RunManager::BeamOn() method (excluding the loop over the events). Checks on the state of the Geant4 (proper initialization of the geometry, physics list, kernel and also if no other simulation has been already running).
- Warning
- This method should be called after calling SetUserInitialization(G4VUserDetectorConstruction*) and SetUserInitialization(G4VUserPhysicsList*).
- Returns
- the status code
◆ terminateEvent()
StatusCode RunManager::terminateEvent |
( |
| ) |
|
Termination of the event processing.
- Returns
- the status code
◆ m_log
MsgStream sim::RunManager::m_log |
|
private |
◆ m_msgSvc
ServiceHandle<IMessageSvc> sim::RunManager::m_msgSvc |
|
private |
◆ m_prevEventTerminated
bool sim::RunManager::m_prevEventTerminated |
|
private |
Flag indicating if the previous Event was terminated in Geant successfuly.
The documentation for this class was generated from the following files: