20 #include "StMuETofHit.h"
21 #include "StETofHit.h"
34 mAssociatedTrackId( -1 ),
45 const double& time,
const double& tot,
const unsigned int clusterSize,
46 const double& localX,
const double& localY )
52 mClusterSize(clusterSize),
55 mAssociatedTrackId( -1 ),
66 : mSector(hitIn.mSector),
67 mZPlane(hitIn.mZPlane),
68 mCounter(hitIn.mCounter),
70 mTotalTot(hitIn.mTotalTot),
71 mClusterSize(hitIn.mClusterSize),
72 mLocalX(hitIn.mLocalX),
73 mLocalY(hitIn.mLocalY),
74 mAssociatedTrackId(hitIn.mAssociatedTrackId),
75 mIndex2Primary(hitIn.mIndex2Primary),
76 mIndex2Global(hitIn.mIndex2Global),
77 mIdTruth(hitIn.mIdTruth),
78 mQuality(hitIn.mQuality)
85 : mSector( hitIn->sector() ),
86 mZPlane( hitIn->zPlane() ),
87 mCounter( hitIn->counter() ),
88 mTime( hitIn->time() ),
89 mTotalTot( hitIn->totalTot() ),
90 mClusterSize( hitIn->clusterSize() ),
91 mLocalX( hitIn->localX() ),
92 mLocalY( hitIn->localY() ),
93 mAssociatedTrackId( -1 ),
96 mIdTruth( hitIn->idTruth() ),
97 mQuality( hitIn->qaTruth() )
117 return ( this->
time() < rhs.
time() ) ? kTRUE : kFALSE;
122 StMuETofHit::compare(
const TObject* obj )
const
135 else if( this->
time() > hit->
time() ) {
155 StMuETofHit::setIdTruth(
unsigned short idtruth,
unsigned short qatruth )
157 if( qatruth==0 ) qatruth = ( idtruth>>16 );
158 idtruth = idtruth&((1<<16)-1);
159 mIdTruth =
static_cast< UShort_t
>( idtruth );
160 mQuality =
static_cast< UShort_t
>( qatruth );
unsigned int zPlane() const
ZPlane.
double time() const
Time.
unsigned int counter() const
Counter.
unsigned int sector() const
Sector.
void setHwAddress(const unsigned int iSector, const unsigned int iZPlane, const unsigned int iCounter)
~StMuETofHit()
Destructor.
StMuETofHit()
Default constructor.
StTrack * associatedTrack()
pointer to the track which has been matched to this hit
bool operator<(const StMuETofHit &rhs) const
Sorting using the time, assumes Digis are in same reference frame (e.g. same epoch).