20 #include "StETofDigi.h"
44 const unsigned int strip,
const unsigned int side,
45 const double& time,
const double& tot )
65 const double& time,
const double& tot )
85 : mSector(digiIn.mSector),
86 mZPlane(digiIn.mZPlane),
87 mCounter(digiIn.mCounter),
88 mStrip(digiIn.mStrip),
90 mRocId(digiIn.mRocId),
91 mGet4Id(digiIn.mGet4Id),
92 mElChan(digiIn.mElChan),
93 mRawTime(digiIn.mRawTime),
94 mCalibTime(digiIn.mCalibTime),
95 mRawTot(digiIn.mRawTot),
96 mCalibTot(digiIn.mCalibTot),
97 mAssociatedHit(digiIn.mAssociatedHit)
118 StETofDigi::compare(
const StObject* obj )
const
125 StETofDigi::compare(
const StETofDigi* digi )
const
131 else if( mCalibTime > digi->
calibTime() ) {
143 StETofDigi::setHwAddress(
const unsigned int iRocId,
const unsigned int iGet4Id,
const unsigned int iElChan )
153 const unsigned int iCounter,
const unsigned int iChannel,
const unsigned int iSide )
164 operator<<( ostream &os,
const StETofDigi& digi )
166 os <<
" RawTime " << digi.
rawTime() << endl
167 <<
" RawTot " << digi.
rawTot() << endl
168 <<
" CalibTime " << digi.
calibTime() << endl
169 <<
" CalibTot " << digi.
calibTot() << endl
170 <<
" Sector " << digi.
sector() << endl
171 <<
" Plane " << digi.
zPlane() << endl
172 <<
" Counter " << digi.
counter() << endl
173 <<
" Strip " << digi.
strip() << endl
174 <<
" Side " << digi.
side() << endl;
double calibTime() const
calibrated time
unsigned int zPlane() const
ZPlane.
unsigned int sector() const
Sector.
bool operator<(const StETofDigi &rhs) const
Sorting using the time, assumes Digis are in same reference frame (e.g. same epoch).
unsigned int strip() const
Strip.
double rawTime() const
Raw Time.
double rawTot() const
Getter for uncalibrated Tot.
unsigned int counter() const
Counter.
StETofDigi()
Default constructor.
double calibTot() const
Getter for calibrated Tot.
unsigned int side() const
Side.
void setGeoAddress(const unsigned int iSector, const unsigned int iZPlane, const unsigned int iCounter, const unsigned int iChannel, const unsigned int iSide)