#include <EDepSimUserRunAction.hh>
Public Member Functions | |
UserRunAction () | |
virtual | ~UserRunAction () |
void | BeginOfRunAction (const G4Run *) |
void | EndOfRunAction (const G4Run *) |
const G4Timer * | GetRunTimer (void) const |
void | SetSeed (long) |
long | GetSeed (void) const |
Get the seed that started the low level random generator. More... | |
void | SetTimeSeed () |
Build a seed for the generator based on the system time. More... | |
void | SetDetSimRunId (int v) |
void | SetDetSimSubrunId (int v) |
int | GetDetSimSubrunId () const |
Get the subrun id value. More... | |
Private Attributes | |
EDepSim::UserRunActionMessenger * | fMessenger |
The messenger for this action. More... | |
G4String | fStartTime |
The time that the run was started. More... | |
G4String | fStopTime |
The time that the run was stopped. More... | |
G4Timer * | fTimer |
The running time for the run. More... | |
int | fSubrunId |
The cached value of the subrun id. More... | |
Definition at line 16 of file EDepSimUserRunAction.hh.
EDepSim::UserRunAction::UserRunAction | ( | ) |
Definition at line 21 of file EDepSimUserRunAction.cc.
|
virtual |
Definition at line 27 of file EDepSimUserRunAction.cc.
void EDepSim::UserRunAction::BeginOfRunAction | ( | const G4Run * | aRun | ) |
Definition at line 32 of file EDepSimUserRunAction.cc.
void EDepSim::UserRunAction::EndOfRunAction | ( | const G4Run * | aRun | ) |
Definition at line 49 of file EDepSimUserRunAction.cc.
int EDepSim::UserRunAction::GetDetSimSubrunId | ( | ) | const |
Get the subrun id value.
Definition at line 111 of file EDepSimUserRunAction.cc.
|
inline |
Definition at line 24 of file EDepSimUserRunAction.hh.
long EDepSim::UserRunAction::GetSeed | ( | void | ) | const |
Get the seed that started the low level random generator.
Definition at line 75 of file EDepSimUserRunAction.cc.
void EDepSim::UserRunAction::SetDetSimRunId | ( | int | v | ) |
Set the DetSim Run Id to a specific value. This is the first run id that will be used by GEANT. GEANT will automatically increment the run id everytime it starts a new internal run. The run id should be accessed through G4RunInfo (see G4RunManager).
Definition at line 102 of file EDepSimUserRunAction.cc.
void EDepSim::UserRunAction::SetDetSimSubrunId | ( | int | v | ) |
Set the DetSim Subrun Id to a specific value. This has no internal meaning and is just copied to the output event.
Definition at line 107 of file EDepSimUserRunAction.cc.
void EDepSim::UserRunAction::SetSeed | ( | long | seed | ) |
Set the seed to a new value. This takes a long since the low-level random generate expects a long seed.
Definition at line 68 of file EDepSimUserRunAction.cc.
void EDepSim::UserRunAction::SetTimeSeed | ( | ) |
Build a seed for the generator based on the system time.
Definition at line 79 of file EDepSimUserRunAction.cc.
|
private |
The messenger for this action.
Definition at line 51 of file EDepSimUserRunAction.hh.
|
private |
The time that the run was started.
Definition at line 54 of file EDepSimUserRunAction.hh.
|
private |
The time that the run was stopped.
Definition at line 57 of file EDepSimUserRunAction.hh.
|
private |
The cached value of the subrun id.
Definition at line 63 of file EDepSimUserRunAction.hh.
|
private |
The running time for the run.
Definition at line 60 of file EDepSimUserRunAction.hh.