//----------------------------------------------------------------------------- // Oct 10 2000 P.Murat: description of the COT TDC header and COT TDC hit word //----------------------------------------------------------------------------- #ifndef TCotTdcData_hh #define TCotTdcData_hh #include "TTdcData.hh" class TCotTdcHeader : public TTdcHeader { public: TCotTdcHit () {} TCotTdcHit(Int_t& data) { fData = data;} ~TCotTdcHit() {} Int_t Module () { return (fData >> 23) & 0x3f; } Int_t SlNumber () { return (fData >> 29) & 0x07; } }; class TCotTdcHit : public TTdcHit { public: TCotTdcHit () {} TCotTdcHit(Int_t& data) { fData = data;} ~TCotTdcHit() {} Int_t WireNumber () { return (fData >> 22) & 0xf; } Int_t CellOffset () { return (fData >> 26) & 0x7; } }; #endif