20 #ifndef StMtdRawHit_hh
21 #define StMtdRawHit_hh
31 StMtdRawHit(
char,
unsigned char,
unsigned char,
unsigned int);
37 bool leadingEdge()
const;
38 bool trailingEdge()
const;
43 unsigned int tdc()
const;
46 void setBackleg(
unsigned char);
47 void setChannel(
unsigned char);
48 void setTdc(
unsigned int);
60 inline void StMtdRawHit::setFlag(
char iflag) { mFlag = iflag;}
61 inline void StMtdRawHit::setBackleg(
unsigned char ibackleg) { mBackLeg = ibackleg;}
62 inline void StMtdRawHit::setChannel(
unsigned char ichannel){ mChannel = ichannel;}
63 inline void StMtdRawHit::setTdc(
unsigned int rawTdc){ mTdc = rawTdc;}
64 inline bool StMtdRawHit::leadingEdge()
const {
return (mFlag>0);}
65 inline bool StMtdRawHit::trailingEdge()
const{
return (mFlag<0);}
66 inline int StMtdRawHit::fiberId()
const {
return abs(static_cast<int>(mFlag)) - 1;}
67 inline int StMtdRawHit::flag()
const {
return mFlag;}
68 inline int StMtdRawHit::backleg()
const {
return mBackLeg;}
69 inline int StMtdRawHit::channel()
const{
return mChannel;}
70 inline unsigned int StMtdRawHit::tdc()
const {
return mTdc;}