20 #include "StBTofHit.h"
21 #include "StMuBTofHit.h"
32 mLeadingEdgeTime = 0.0;
33 mTrailingEdgeTime = 0.0;
34 mAssociatedTrackId = -1;
44 mTray = tofHit->tray();
45 mModule = tofHit->module();
46 mCell = tofHit->cell();
48 mLeadingEdgeTime = tofHit->leadingEdgeTime();
49 mTrailingEdgeTime = tofHit->trailingEdgeTime();;
50 mAssociatedTrackId = (tofHit->associatedTrack()) ? tofHit->associatedTrack()->key() : -1;
53 mIdTruth = tofHit->idTruth();
54 mQuality = tofHit->qaTruth();
57 StMuBTofHit::~StMuBTofHit()
61 StMuBTofHit::setIdTruth(
int idtru,
int qatru)
63 if (qatru==0) qatru = (idtru>>16);
64 idtru = idtru&((1<<16)-1);
65 mIdTruth =
static_cast<UShort_t
>(idtru);
66 mQuality =
static_cast<UShort_t
>(qatru);