26 #include "StTofData.h"
28 static const char rcsid[] =
"$Id: StTofData.cxx,v 2.3 2005/04/11 22:35:25 calderon Exp $";
33 : mDataIndex(0), mAdc(0), mTdc(0), mTc(0), mSc(0), mLeadingTdc(0), mTrailingTdc(0)
36 StTofData::StTofData(
unsigned short dataId,
unsigned short rawAdc,
37 unsigned short rawTdc,
short rawTc,
unsigned short rawSc,
38 unsigned int rawLTdc,
unsigned int rawTTdc)
39 : mDataIndex(dataId), mAdc(rawAdc), mTdc(rawTdc), mTc(rawTc), mSc(rawSc),
40 mLeadingTdc(rawLTdc), mTrailingTdc(rawTTdc)
43 StTofData::~StTofData() { }
45 int StTofData::operator==(
const StTofData& p)
const
47 return (p.mDataIndex == mDataIndex &&
48 p.mAdc == mAdc && p.mTdc == mTdc &&
49 p.mTc == mTc && p.mSc == mSc &&
50 p.mLeadingTdc == mLeadingTdc && p.mTrailingTdc == mTrailingTdc);
53 int StTofData::operator!=(
const StTofData& p)
const
58 ostream& operator<<(ostream& os,
const StTofData& d)
60 return (os <<
"StTofData::> "<<
" ID=" << d.dataIndex()
61 <<
", adc=" << d.adc()
62 <<
", tdc=" << d.tdc()
64 <<
", sc=" << d.sc());