GGS(GenericGEANT4Simulation)Software  2.7.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
GGSTPrimaryDisReader.h
Go to the documentation of this file.
1 /*
2  * GGSTPrimaryDisReader.h
3  *
4  * Created on: 1 Jun 2020
5  * Author: Nicola Mori
6  */
7 
10 #ifndef GGSPRIMARYDISREADER_H_
11 #define GGSPRIMARYDISREADER_H_
12 
13 // GGS headers
14 #include "montecarlo/dataobjs/GGSTPrimaryDisInfo.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 *disInfoChain);
42 
47  void GetEntry(Long64_t entry);
48 
54  GGSTPrimaryDisInfo *GetDisInfo(Int_t trackID = 1);
55 
56 private:
57  TClonesArray *_disInfo;
58  TChain *_disInfoChain;
59 };
60 
61 #endif /* GGSPRIMARYDISREADER_H_ */
GGSTPrimaryDisReader()
Constructor.
~GGSTPrimaryDisReader()
Destructor.
Abstract class defining the interface for tree readers.
A simple class to carry informations about the disappearance of the primary particle.
Class for reading output of GGSPrimaryDisAction.
void GetEntry(Long64_t entry)
GGSTPrimaryDisInfo * GetDisInfo(Int_t trackID=1)
Retrieves the disappearance information for the given primary.
bool SetChain(TChain *disInfoChain)
Sets the chain.