#ifndef ALIEVETOFDIGITSINFO_H
#define ALIEVETOFDIGITSINFO_H
#include <TObject.h>
#include <TEveUtil.h>
class TClonesArray;
class TTree;
class AliRawReader;
class AliTOFGeometry;
class AliTOFDigitMap;
class AliEveTOFDigitsInfo : public TObject, public TEveRefCnt
{
public:
AliEveTOFDigitsInfo();
virtual ~AliEveTOFDigitsInfo();
void SetTree(TTree * const tree);
void ReadRaw(AliRawReader* rawReader, Int_t newDecoder=2);
void LoadDigits();
void GetDigits(Int_t nSector, Int_t nPlate, Int_t nStrip,
Int_t nPadZ, Int_t nPadX,
Int_t indexDigit[3]);
TClonesArray* GetDigits(Int_t nSector, Int_t nPlate, Int_t nStrip);
TClonesArray* GetDigits(Int_t nSector);
Int_t IsStripFilled(Int_t iSector, Int_t iPlate, Int_t iStrip);
Int_t GetTOFInfos() const;
AliTOFGeometry * GetTOFgeometry() const {return fGeom;};
TTree* GetTree() {return fTree;};
AliTOFDigitMap* GetTOFdigitMap() const { return fTOFdigitMap;};
protected:
AliEveTOFDigitsInfo(const AliEveTOFDigitsInfo&);
AliEveTOFDigitsInfo& operator=(const AliEveTOFDigitsInfo&);
private:
TTree* fTree;
TTree* fNewTree;
AliTOFGeometry* fGeom;
AliTOFDigitMap* fTOFdigitMap;
ClassDef(AliEveTOFDigitsInfo, 1);
};
#endif