GGS(GenericGEANT4Simulation)Software  2.7.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
GGSTHadrIntReader.h
Go to the documentation of this file.
1 /*
2  * GGSTHadrIntReader.h
3  *
4  * Created on: 25 Aug 2011
5  * Author: Nicola Mori
6  */
7 
10 #ifndef GGSTHADRINTREADER_H_
11 #define GGSTHADRINTREADER_H_
12 
13 // GGS headers
14 #include "montecarlo/dataobjs/GGSTHadrIntInfo.h"
15 #include "montecarlo/readers/GGSTChainReader.h"
16 
17 // ROOT headers
18 #include "TClonesArray.h"
19 class TBranch;
20 
27 
28 public:
31 
34 
41  bool SetChain(TChain *hadrIntChain);
42 
47  void GetEntry(Long64_t entry);
48 
54  GGSTHadrIntInfo *GetInelastic(Int_t trackID = 1);
55 
61  Int_t GetNQuasiElastic(Int_t trackID = 1);
62 
73  GGSTHadrIntInfo *GetQuasiElastic(Int_t nQE, Int_t trackID = 1);
74 
75 private:
76  TClonesArray *_inelastic;
77  TClonesArray *_quasiElastic;
78  TChain *_hadrIntChain;
79 };
80 
81 #endif /* GGSTHADRINTREADER_H_ */
Int_t GetNQuasiElastic(Int_t trackID=1)
Retrieves the number of quasi-elastic interactions for the given primary.
Abstract class defining the interface for tree readers.
GGSTHadrIntInfo * GetQuasiElastic(Int_t nQE, Int_t trackID=1)
Retrieves a quasi-elastic interaction for the given primary.
void GetEntry(Long64_t entry)
A simple class to carry informations about hadronic interactions.
bool SetChain(TChain *hadrIntChain)
Sets the chain.
GGSTHadrIntReader()
Constructor.
~GGSTHadrIntReader()
Destructor.
Class for reading output of GGSHadrIntAction.
GGSTHadrIntInfo * GetInelastic(Int_t trackID=1)
Retrieves the inelastic interaction for the given primary.