23 #include "StETofHit.h"
43 const double& time,
const double& tot,
const unsigned int clusterSize,
44 const double& localX,
const double& localY )
50 mClusterSize(clusterSize),
62 : mSector(hitIn.mSector),
63 mZPlane(hitIn.mZPlane),
64 mCounter(hitIn.mCounter),
66 mTotalTot(hitIn.mTotalTot),
67 mClusterSize(hitIn.mClusterSize),
68 mLocalX(hitIn.mLocalX),
69 mLocalY(hitIn.mLocalY),
70 mAssociatedTrack(hitIn.mAssociatedTrack),
71 mIdTruth(hitIn.mIdTruth),
72 mQuality(hitIn.mQuality)
88 return ( this->
time() < rhs.
time() ) ? kTRUE : kFALSE;
93 StETofHit::compare(
const StObject* obj )
const
106 else if( this->
time() > hit->
time() ) {
126 StETofHit::setIdTruth(
unsigned short idtruth,
unsigned short qatruth )
128 if (qatruth==0) qatruth = (idtruth>>16);
129 idtruth = idtruth&((1<<16)-1);
130 mIdTruth =
static_cast<UShort_t
>(idtruth);
131 mQuality =
static_cast<UShort_t
>(qatruth);
136 operator<<( ostream &os,
const StETofHit& hit )
138 os <<
" Time " << hit.
time() << endl
139 <<
" TotalTot " << hit.
totalTot() << endl
141 <<
" Sector " << hit.
sector() << endl
142 <<
" Plane " << hit.
zPlane() << endl
143 <<
" Counter " << hit.
counter() << endl
144 <<
" LocalX " << hit.
localX() << endl
145 <<
" LocalY " << hit.
localY() << endl
146 <<
" idTruth " << hit.
idTruth() << endl
147 <<
" qaTruth " << hit.
qaTruth() << endl;
unsigned int qaTruth() const
quality of this information (percentage of charge produced by mIdTruth)
double time() const
Time.
unsigned int clusterSize() const
Cluster size.
void setHwAddress(const unsigned int iSector, const unsigned int iZPlane, const unsigned int iCounter)
unsigned int counter() const
Counter.
StETofHit()
Default constructor.
bool operator<(const StETofHit &rhs) const
Sorting using the time, assumes Digis are in same reference frame (e.g. same epoch).
unsigned int zPlane() const
ZPlane.
double localX() const
X-position.
unsigned int idTruth() const
mc-true associated track id in simulation
double totalTot() const
Total Tot.
double localY() const
Y-position.
unsigned int sector() const
Sector.