|
SLIC
6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
|
Implementation of G4UserRunAction. More...
#include <RunAction.hh>
Public Member Functions | |
| RunAction () | |
| ~RunAction () | |
| void | BeginOfRunAction (const G4Run *aRun) |
| void | EndOfRunAction (const G4Run *aRun) |
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 *) |
Public Member Functions inherited from PluginManagerAccessor | |
| PluginManager * | getPluginManager () |
| void | setPluginManager (PluginManager *pluginManager) |
Private Member Functions | |
| void | startRunTimer () |
| void | stopRunTimer () |
Private Attributes | |
| G4Timer | m_runTimer |
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 |
Protected Member Functions inherited from Module | |
| Module (const std::string &name, bool deleteOnExit=true, bool autoRegister=true) | |
Protected Attributes inherited from PluginManagerAccessor | |
| PluginManager * | m_pluginManager |
Implementation of G4UserRunAction.
Definition at line 18 of file RunAction.hh.
| RunAction | ( | ) |
Class constructor.
Definition at line 15 of file RunAction.cc.
| ~RunAction | ( | ) |
Class destructor.
Definition at line 19 of file RunAction.cc.
| void BeginOfRunAction | ( | const G4Run * | aRun | ) |
Implementation of begin of run action.
| [in] | aRun | The G4Run that is starting. |
Definition at line 22 of file RunAction.cc.
References PluginManager::beginRun(), Singleton< EventSourceManager >::instance(), Singleton< LcioManager >::instance(), PluginManagerAccessor::m_pluginManager, and RunAction::startRunTimer().
| void EndOfRunAction | ( | const G4Run * | aRun | ) |
Implementation of end of run action.
| [in] | aRun | The G4Run that is ending. |
Definition at line 44 of file RunAction.cc.
References PluginManager::endRun(), Singleton< EventSourceManager >::instance(), Singleton< LcioManager >::instance(), PluginManagerAccessor::m_pluginManager, and RunAction::stopRunTimer().
|
private |
Start the run timer.
Definition at line 63 of file RunAction.cc.
References LOG::done, Module::log(), RunAction::m_runTimer, and LOG::okay.
Referenced by RunAction::BeginOfRunAction().
|
private |
Stop the run timer.
Definition at line 71 of file RunAction.cc.
References LOG::done, Module::log(), RunAction::m_runTimer, and LOG::okay.
Referenced by RunAction::EndOfRunAction().
|
private |
Print the beginning of run message.
| [in] | aRun | The G4Run that is starting. Print the end of run message. |
| [in] | aRun | The G4Run that is ending. |
Definition at line 72 of file RunAction.hh.
Referenced by RunAction::startRunTimer(), and RunAction::stopRunTimer().