#ifndef TPesCorrectedDataBlock_hh #define TPesCorrectedDataBlock_hh #include class TPesCorrectedDataBlock : public TStnDataBlock { friend Int_t StntupleInitPesCorrectedDataBlock(TStnDataBlock* block, AbsEvent* event, int mode); protected: Short_t fNStrips [2][8][2]; // N(hit strips) for given side/wedge/layer Float_t fEnergy [2][8][2][200];// Energy in each strip UShort_t fEPacked [2][8][2][200]; //----------------------------------------------------------------------------- // functions //----------------------------------------------------------------------------- public: // ****** constructors and destructor TPesCorrectedDataBlock(); virtual ~TPesCorrectedDataBlock(); // ****** accessors Int_t GetNHitStrips(int is, int iw, int il) const { return fNStrips[is][iw][il]; } Float_t* GetData(int is, int iw, int il) { return fEnergy[is][iw][il]; } // numbering scheme corresponds to // cdf-4152 (note that strip numbering // starts from 1) Float_t GetEnergy (int is, int iw, int il, int strip) const { return fEnergy[is][iw][il][strip-1]; } // ****** overloaded methods of // TObject void Clear(Option_t* opt = ""); void Print(Option_t* opt = "") const; void ReadV1(TBuffer &R__b); ClassDef(TPesCorrectedDataBlock,2) }; #endif