GGS(GenericGEANT4Simulation)Software  2.7.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
Public Member Functions
GGSRandomStatusAction Class Reference

Stores the status of the random engine at the beginning of each event. More...

#include <GGSRandomStatusAction.h>

Inheritance diagram for GGSRandomStatusAction:
Inheritance graph
[legend]
Collaboration diagram for GGSRandomStatusAction:
Collaboration graph
[legend]

Public Member Functions

 GGSRandomStatusAction ()
 Constructor.
 
 ~GGSRandomStatusAction ()
 Destructor.
 
void BeginOfEventAction (const G4Event *)
 Records the status of the random engine at the beginning of the event.
 
void BeginOfRunAction (const G4Run *run)
 Opens the output file for the current run and prepares the output tree. More...
 
void EndOfRunAction (const G4Run *)
 Closes the output file for the current run.
 
- Public Member Functions inherited from GGSUserAction
 GGSUserAction ()
 Constructor. More...
 
virtual ~GGSUserAction ()
 Destructor.
 
G4ClassificationOfNewTrack ClassifyNewTrack (const G4Track *)
 Override of the ClassifyNewTrack method. More...
 

Detailed Description

Stores the status of the random engine at the beginning of each event.

Definition at line 28 of file GGSRandomStatusAction.h.

Member Function Documentation

void GGSRandomStatusAction::BeginOfRunAction ( const G4Run *  run)

Opens the output file for the current run and prepares the output tree.

Parameters
runThe current run.

Definition at line 43 of file GGSRandomStatusAction.cpp.

43  {
44  _outRootFile = GGSRootFileService::GetInstance().GetFileForThisRun("", run);
45  _outTree = GGSRootFileService::GetInstance().GetDefaultTree(_outRootFile);
46  _outTree->SetTitle(TString(_outTree->GetTitle()) + "RandStatus ");
47  _outTree->Branch("randomStatus", "GGSTRandomStatusInfo", &_randInfo);
48 }
TFile * GetFileForThisRun(const path &baseName, const G4Run *run)
Opens a file for a given run and returns a pointer to it.
TTree * GetDefaultTree(TFile *file)
Gets the default tree for this file.
static GGSRootFileService & GetInstance()
Get reference to GGSRootFileService unique instance.

The documentation for this class was generated from the following files: