13 #ifndef GGSTHITSREADER_H_
14 #define GGSTHITSREADER_H_
18 #include "montecarlo/readers/GGSTChainReader.h"
22 #include "TClonesArray.h"
80 void SetDetector(
const char* detector,
bool readPartHits =
false,
bool readPosHits =
false);
104 Int_t
GetNHits(
const char *detector);
196 Long64_t _firstEntryOfCurrentFile;
198 std::vector<TClonesArray*> _intHitArrays;
199 std::vector<TObjArray*> _partHitArrays;
200 std::vector<TObjArray*> _posHitArrays;
201 std::vector<TArrayF*> _timeBins;
202 std::vector<bool> _readPartHits;
203 std::vector<bool> _readPosHits;
204 TClonesArray *_detInfo;
205 std::vector<std::vector<float>*> _thresholds;
209 std::string logVolName;
210 int detInfoArrayIndex;
212 std::vector<Detector> _detectors;
214 int _GetDetectorIndexFromStorage(
const char* detector);
215 bool _CheckBranch(
const char* branchName);
216 bool _CheckDetector(
const char* detector);
226 TClonesArray* _GetHitArray(
int iHitArray);
bool HasPartHits(const char *detector)
Check if particle hits data is available for the specified detector.
float GetIntHitThreshold(const std::string &detector)
Retrieves the thresholds used when saving the integrated hits.
Class for reading output of GGSHitsAction.
Class to store detector informations.
float GetPartHitThreshold(const std::string &detector)
Retrieves the thresholds used when saving the particle hits.
Abstract class defining the interface for tree readers.
void ListDetectors()
Prints a list of detectors which are present in hits tree on standard output.
GGSTHitsReader()
Constructor.
GGSTIntHit * GetHit(const char *detector, unsigned int iHit)
Get the specified hit.
Int_t GetNHits(const char *detector)
Gets the number of hits for the specified detector.
~GGSTHitsReader()
Destructor.
bool HasPosHits(const char *detector)
Check if position hits data is available for the specified detector.
Class to store G4 position hits.
float GetPosHitThreshold(const std::string &detector)
Retrieves the thresholds used when saving the position hits.
bool SetChain(TChain *hitsChain)
Sets the chain.
int GetDetectorIndex(const char *detector)
Retrieves the index of requested detector.
bool DetectorExists(const char *detector)
Checks the existence of a given detector within the hits tree.
void GetEntry(Long64_t entry)
std::vector< TString > GetListOfDetectors()
Returns the list of detectors which are present in hits tree on standard output.
void SetDetector(const char *detector, bool readPartHits=false, bool readPosHits=false)
Enables reading hit informations of the specified detector.