|
SLIC
6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
|
Extension of G4RunManager. More...
#include <RunManager.hh>
Public Member Functions | |
| RunManager () | |
| virtual | ~RunManager () |
| void | abortRun () |
| void | abortRun (int errorCode) |
| int | getNumberOfEventsToRun () |
| void | Initialize () |
| bool | isRunAborted () |
Public Member Functions inherited from Module | |
| virtual | ~Module () |
| virtual void | beginEvent (const G4Event *) |
| virtual void | beginRun (const G4Run *) |
| virtual void | cleanup () |
| bool | deleteOnExit () |
| virtual void | endEvent (const G4Event *) |
| virtual void | endRun (const G4Run *) |
| const std::string & | getName () const |
| ModuleStatus | getStatus () const |
| virtual void | initialize () |
| LogStream & | log () |
| virtual void | postTracking (const G4Track *) |
| virtual void | preTracking (const G4Track *) |
| virtual void | reset () |
| virtual void | stepping (const G4Step *) |
Static Public Member Functions | |
| static RunManager * | instance () |
Protected Member Functions | |
| void | BeamOn (G4int nevent, const char *macroFile=0, G4int nselect=-1) |
| void | InitializeGeometry () |
| void | InitializePhysics () |
Protected Member Functions inherited from Module | |
| Module (const std::string &name, bool deleteOnExit=true, bool autoRegister=true) | |
Private Attributes | |
| bool | m_abortRun |
| int | m_numberOfEventsToRun |
| PluginManager * | m_pluginManager |
Additional Inherited Members | |
Public Types inherited from Module | |
| enum | ModuleStatus { eOkay = 0 , eNotInitialized = 1 , eBadState = 2 , eFatalError = 3 } |
Public Attributes inherited from Module | |
| bool | m_deleteOnExit |
| LogStream * | m_log |
| std::string | m_name |
| ModuleStatus | m_status |
Extension of G4RunManager.
Definition at line 18 of file RunManager.hh.
| RunManager | ( | ) |
Class constructor.
Definition at line 25 of file RunManager.cc.
|
virtual |
Class destructor.
Definition at line 29 of file RunManager.cc.
References RunManager::m_pluginManager.
|
inline |
Abort the current run.
Definition at line 45 of file RunManager.hh.
References LOG::done, LOG::fatal, Singleton< SlicApplication >::instance(), Module::log(), RunManager::m_abortRun, SlicApplication::OKAY, and SlicApplication::UNKNOWN_ERROR.
Referenced by RunManager::BeamOn(), EventSourceManager::beginRun(), RunManager::InitializeGeometry(), and LcioManager::openLcioFile().
|
inline |
Abort the current run with an error code.
| [in] | errorCode | The error code. |
Definition at line 60 of file RunManager.hh.
References LOG::done, LOG::fatal, Singleton< SlicApplication >::instance(), Module::log(), RunManager::m_abortRun, LOG::name, and LOG::sep.
|
protected |
This method overrides the Geant4 implementation. The super class's method is called but wrapped in code for application control flow.
| [in] | nevent | The number of events to execute. |
| [in] | macroFile | A macro file to be executed after each event (not used by SLIC). |
| [in] | nselect | The number of events to wait before macro execution. |
Definition at line 113 of file RunManager.cc.
References RunManager::abortRun(), LOG::done, SlicApplication::EVENT_UNDERFLOW, LOG::fatal, SlicApplication::GENERATOR_NOT_SETUP, EventSourceManager::getNumEventsGenerated(), LOG::head, RunManager::Initialize(), Singleton< SlicApplication >::instance(), Singleton< EventSourceManager >::instance(), RunManager::isRunAborted(), Module::log(), RunManager::m_abortRun, RunManager::m_numberOfEventsToRun, SlicApplication::OKAY, EventSourceManager::printNumEventsGenerated(), and LOG::warning.
| int getNumberOfEventsToRun | ( | ) |
Get the number of events to run.
Definition at line 154 of file RunManager.cc.
References RunManager::m_numberOfEventsToRun.
| void Initialize | ( | ) |
Initialize this class.
Definition at line 33 of file RunManager.cc.
References Singleton< ModuleRegistry >::instance(), Singleton< EventSourceManager >::instance(), Singleton< PhysicsListManager >::instance(), RunManager::m_pluginManager, and PluginManagerAccessor::setPluginManager().
Referenced by RunManager::BeamOn().
|
protected |
Initialize the current geometry configuration.
Definition at line 101 of file RunManager.cc.
References RunManager::abortRun(), Singleton< SlicApplication >::instance(), and SlicApplication::INVALID_GEOMETRY_SETUP.
|
protected |
Initialize the current physics configuration.
Definition at line 78 of file RunManager.cc.
References PhysicsListManager::enableLimits(), LOG::endl, Singleton< PhysicsListManager >::instance(), and PhysicsListManager::setupUserLimitsProcesses().
|
inlinestatic |
Get the instance of RunManager.
Definition at line 38 of file RunManager.hh.
Referenced by EventSourceManager::beginRun(), LcioManager::beginRun(), EventAction::EndOfEventAction(), LcioManager::endRun(), PrimaryGeneratorAction::GeneratePrimaries(), and LcioManager::openLcioFile().
| bool isRunAborted | ( | ) |
Return true if run has been aborted.
Definition at line 158 of file RunManager.cc.
References RunManager::m_abortRun.
Referenced by RunManager::BeamOn().
|
private |
Definition at line 108 of file RunManager.hh.
Referenced by RunManager::abortRun(), RunManager::BeamOn(), and RunManager::isRunAborted().
|
private |
Definition at line 107 of file RunManager.hh.
Referenced by RunManager::BeamOn(), and RunManager::getNumberOfEventsToRun().
|
private |
Definition at line 109 of file RunManager.hh.
Referenced by RunManager::~RunManager(), and RunManager::Initialize().