GGS(GenericGEANT4Simulation)Software  2.99.0
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Macros
GGSTRngStateReader.h
Go to the documentation of this file.
1 /*
2  * GGSTRngStateReader.h
3  *
4  * Created on: 4 Dec 2020
5  * Author: Nicola Mori
6  */
7 
10 #ifndef GGSTRNGSTATEREADER_H_
11 #define GGSTRNGSTATEREADER_H_
12 
13 // GGS headers
14 #include "montecarlo/readers/GGSTChainReader.h"
15 
18 
19 public:
22 
29  bool SetChain(TChain *rngStateChain);
30 
35  void GetEntry(Long64_t entry);
36 
41  const std::string GetState() { return *_rngState; }
42 
47  const std::string GetName();
48 
49 private:
50  std::string *_rngState, _rngName;
51  TChain *_rngStateChain;
52 };
53 
54 #endif /* GGSTRNGSTATEREADER_H_ */
GGSTRngStateReader()
Constructor.
Abstract class defining the interface for tree readers.
bool SetChain(TChain *rngStateChain)
Sets the chain.
const std::string GetName()
Gets the name of the random number generator for the current event.
void GetEntry(Long64_t entry)
Class for reading output of GGSRngStateAction.
const std::string GetState()
Gets the state of the random number generator for the current event.