//----------------------------------------------------------------------------- // Oct 18 2003 RLC: description of the HAD TDC word //----------------------------------------------------------------------------- #ifndef THatTdcWord_hh #define THatTdcWord_hh #include "TTdcWord.hh" class THatTdcWord : public TTdcWord { public: THatTdcWord () {} THatTdcWord (const TTdcWord& w) { fData = w.fData; } THatTdcWord(Int_t& data) { fData = data;} ~THatTdcWord() {} // 0=west, 1=east Int_t Side () { return (ChannelId() >> 8) & 0x1; } // Wedge within TDC 0:1 for low Rapidity, 0:5 for high Rap Int_t Wedge () { return (ChannelId() >> 5) & 0x7; } // |tower| counting from 0 at eta=0 // for CEM, 0->15 indicates 0->15, for PEM, 0->5 indicates 16->21 // see also definition of THatTdcHeader Int_t RapiditySeg() { return (ChannelId() >> 1) & 0xF; } // Rapidity Region Rapidity Seg Depth // Low 00-05 bit=0 (Central) // Low 06-07 bit=0 (Central) or bit1 (Wall) // Low 08-11 bit=1 (Wall) // Low 12-15 bit=0 (low phi tile), bit=1 (high) // High 00-01 bit=0 (low phi tile), bit=1 (high) // High 02-05 bit=0 (one tile per Rap. Seg.) Int_t Depth () { return (ChannelId() ) & 0x1; } // ClassDef(THatTdcWord,0) }; #endif