33 mLeadingEdgeTime.first = 0.;
34 mTrailingEdgeTime.second = 0.;
35 mLeadingEdgeTime.first = 0.;
36 mTrailingEdgeTime.second = 0.;
43 StMtdHit::~StMtdHit() {}
46 StMtdHit::backleg()
const {
return mBackLeg; }
49 StMtdHit::module()
const {
return mModule; }
52 StMtdHit::cell()
const {
return mCell; }
55 StMtdHit::leadingEdgeTime()
const {
return mLeadingEdgeTime; }
58 StMtdHit::trailingEdgeTime()
const {
return mTrailingEdgeTime; }
61 StMtdHit::tot()
const {
return pair<double,double>(mTrailingEdgeTime.first - mLeadingEdgeTime.first, mTrailingEdgeTime.second - mLeadingEdgeTime.second); }
63 double StMtdHit::tof()
const {
return 0.5*(mLeadingEdgeTime.first+mLeadingEdgeTime.second); }
66 StMtdHit::associatedTrack() {
return mAssociatedTrack; }
69 StMtdHit::associatedTrack()
const {
return mAssociatedTrack; }
72 StMtdHit::idTruth()
const {
return mIdTruth; }
75 StMtdHit::qaTruth()
const {
return mQuality; }
78 StMtdHit::setBackleg(
unsigned char backlegId) { mBackLeg = backlegId; }
81 StMtdHit::setModule(
unsigned char moduleId) { mModule = moduleId; }
84 StMtdHit::setCell(
unsigned char cellId) { mCell = cellId; }
87 StMtdHit::setLeadingEdgeTime(pair<double,double> time) { mLeadingEdgeTime = time; }
90 StMtdHit::setTrailingEdgeTime(pair<double,double> time) { mTrailingEdgeTime = time; }
93 StMtdHit::setAssociatedTrack(
StTrack* val) { mAssociatedTrack = val; }
96 StMtdHit::setIdTruth(
int idtru,
int qatru)
98 if (qatru==0) qatru = (idtru>>16);
99 idtru = idtru&((1<<16)-1);
101 mQuality =
static_cast<UShort_t
>(qatru);
107 os <<
" Backleg:" << hit.backleg() <<
" Module:" << hit.module()
108 <<
" Cell:" << hit.cell() << endl
109 <<
" LeTime " << hit.leadingEdgeTime().first <<
" " << hit.leadingEdgeTime().second
110 <<
" TeTime " << hit.trailingEdgeTime().first <<
" " << hit.trailingEdgeTime().second << endl
111 <<
" Track " << (hit.associatedTrack() ? hit.associatedTrack()->key() : 0) << endl
112 <<
" IdTruth " << hit.idTruth() <<
" Quality " << hit.qaTruth() << endl;