GGS(GenericGEANT4Simulation)Software  2.99.0
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Macros
GGSRngStateAction.h
Go to the documentation of this file.
1 /*
2  * GGSRngStateAction.h
3  *
4  * Created on: 4 Dec 2020
5  * Author: Nicola Mori
6  */
7 
10 #ifndef GGSRNGSTATEACTION_H_
11 #define GGSRNGSTATEACTION_H_
12 
13 // GGS headers
16 
17 // GEANT4 headers
18 class G4Event;
19 class G4Run;
20 
21 // ROOT headers
22 class TFile;
23 class TTree;
24 
27 
28 public:
31 
33  void BeginOfEventAction(const G4Event *);
34 
39  void BeginOfRunAction(const G4Run *run);
40 
42  void EndOfRunAction(const G4Run *);
43 
44 private:
45  TFile *_outRootFile;
46  TTree *_outTree;
47  std::string _rngState;
48 };
49 
50 #endif /* GGSRNGSTATEACTION_H_ */
GGSRngStateAction()
Constructor.
Stores the name of the random engine and its status at the beginning of each event.
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