46 _outTree->SetTitle(TString(_outTree->GetTitle()) +
"RandStatus ");
47 _outTree->Branch(
"randomStatus",
"GGSTRandomStatusInfo", &_randInfo);
GGSRandomStatusAction()
Constructor.
TFile * GetFileForThisRun(const path &baseName, const G4Run *run)
Opens a file for a given run and returns a pointer to it.
void CloseFileForThisRun(const path &baseName)
Closes the ROOT output file.
const long int * GetRandomSeedsAtBeginOfEvent()
Getter methos for random seeds at the beginning of the current event.
void BeginOfEventAction(const G4Event *)
Records the status of the random engine at the beginning of the event.
Long_t seeds[2]
Seeds defining the status of the engine.
void EndOfRunAction(const G4Run *)
Closes the output file for the current run.
void BeginOfRunAction(const G4Run *run)
Opens the output file for the current run and prepares the output tree.
~GGSRandomStatusAction()
Destructor.
static GGSRunManager * GetRunManager()
Static getter function the run manager.
TTree * GetDefaultTree(TFile *file)
Gets the default tree for this file.
static GGSRootFileService & GetInstance()
Get reference to GGSRootFileService unique instance.
Data object to store the status of the random engine.
#define RegisterUA(uaClassName)
Macro for registration of user actions classes.
Stores the status of the random engine at the beginning of each event.