GGS(GenericGEANT4Simulation)Software  2.6.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
14 #include "montecarlo/readers/GGSTChainReader.h"
16 
19 
20 public:
21 
24 
27 
34  bool SetChain(TChain *randomStatusChain);
35 
40  void GetEntry(Long64_t entry);
41 
47  long GetSeed(unsigned int nSeed) {
48  if (nSeed < 2)
49  return _randomStatusInfo->seeds[nSeed];
50  else
51  return -1;
52  }
53 
54 private:
55 
56  GGSTRandomStatusInfo *_randomStatusInfo;
57  TChain *_randomStatusChain;
58 };
59 
60 #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)