#ifndef TPesDataBlock_hh #define TPesDataBlock_hh #include class TPesDataBlock : public TStnDataBlock { friend Int_t StntupleInitPesDataBlock(TStnDataBlock* block, AbsEvent* event, int mode); protected: Short_t fNStrips [2][8][2]; // N(hit strips) for given side/wedge/layer Short_t fAdcCounts[2][8][2][200];// ADC counts //----------------------------------------------------------------------------- // functions //----------------------------------------------------------------------------- public: // ****** constructors and destructor TPesDataBlock(); virtual ~TPesDataBlock(); // ****** accessors Int_t GetNHitStrips(int is, int iw, int il) const { return fNStrips[is][iw][il]; } Short_t* GetData(int is, int iw, int il) { return fAdcCounts[is][iw][il]; } // numbering scheme corresponds to // cdf-4152 (note that strip numbering // starts from 1) Short_t GetAdcCounts (int is, int iw, int il, int strip) const { return fAdcCounts[is][iw][il][strip-1]; } // ****** overloaded methods of // TObject void Clear(Option_t* opt = ""); void Print(Option_t* opt = "") const; ClassDef(TPesDataBlock,1) }; #endif