GGS(GenericGEANT4Simulation)Software  2.7.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
GGSTRandomStatusReader.h
Go to the documentation of this file.
1 /*
2  * GGSTRandomStatusReader.h
3  *
4  * Created on: 01 Jan 2015
5  * Author: Nicola Mori
6  */
7 
10 #ifndef GGSTRANDOMSTATUSREADER_H_
11 #define GGSTRANDOMSTATUSREADER_H_
12 
13 // GGS headers
15 #include "montecarlo/readers/GGSTChainReader.h"
16 
19 
20 public:
23 
26 
33  bool SetChain(TChain *randomStatusChain);
34 
39  void GetEntry(Long64_t entry);
40 
46  long GetSeed(unsigned int nSeed) {
47  if (nSeed < 2)
48  return _randomStatusInfo->seeds[nSeed];
49  else
50  return -1;
51  }
52 
53 private:
54  GGSTRandomStatusInfo *_randomStatusInfo;
55  TChain *_randomStatusChain;
56 };
57 
58 #endif /* GGSTRANDOMSTATUSREADER_H_ */
Abstract class defining the interface for tree readers.
Long_t seeds[2]
Seeds defining the status of the engine.
Class for reading output of GGSRandomStatusAction.
bool SetChain(TChain *randomStatusChain)
Sets the chain.
long GetSeed(unsigned int nSeed)
Gets the specified seed.
Data object to store the status of the random engine.
void GetEntry(Long64_t entry)