GGS(GenericGEANT4Simulation)Software  2.7.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
GGSRandomStatusAction.h
Go to the documentation of this file.
1 /*
2  * GGSRandomStatusAction.h
3  *
4  * Created on: 01 Jan 2015
5  * Author: Nicola Mori
6  */
7 
10 #ifndef GGSRANDOMSTATUSACTION_H_
11 #define GGSRANDOMSTATUSACTION_H_
12 
13 // GGS headers
17 
18 // GEANT4 headers
19 #include "G4Event.hh"
20 #include "G4Run.hh"
21 
22 // ROOT headers
23 class TFile;
24 class TTree;
25 
29 
30 public:
33 
36 
38  void BeginOfEventAction(const G4Event *);
39 
44  void BeginOfRunAction(const G4Run *run);
45 
47  void EndOfRunAction(const G4Run *);
48 
49 private:
50  TFile *_outRootFile;
51  TTree *_outTree;
52  GGSTRandomStatusInfo *_randInfo;
53 };
54 
55 #endif /* GGSRANDOMSTATUSACTION_H_ */
GGSRandomStatusAction()
Constructor.
void BeginOfEventAction(const G4Event *)
Records the status of the random engine at the beginning of the event.
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.
Mother class for user actions in GGS.
Definition: GGSUserAction.h:27
Data object to store the status of the random engine.
Stores the status of the random engine at the beginning of each event.