1 #include "StMuMtdHit.h"
2 #include "StEvent/StEvent.h"
3 #include "StEvent/StTrack.h"
4 #include "StEvent/StMtdHit.h"
5 #include "StEvent/StMtdRawHit.h"
11 mLeadingEdgeTime{-999,-999}, mTrailingEdgeTime{-999,-999},
12 mIdTruth(-1), mQuality(0), mTrackKey(0), mIndex2Primary(-1), mIndex2Global(-1)
20 mBackLeg = hit->backleg();
21 mModule = hit->module();
23 mLeadingEdgeTime = hit->leadingEdgeTime();
24 mTrailingEdgeTime = hit->trailingEdgeTime();
26 mIdTruth = hit->idTruth();
27 mQuality = hit->qaTruth();
28 if(hit->associatedTrack()!=0) mTrackKey = hit->associatedTrack()->key();
37 StMuMtdHit::backleg()
const {
return mBackLeg; }
40 StMuMtdHit::module()
const {
return mModule; }
43 StMuMtdHit::cell()
const {
return mCell; }
46 StMuMtdHit::leadingEdgeTime()
const {
return mLeadingEdgeTime; }
49 StMuMtdHit::trailingEdgeTime()
const {
return mTrailingEdgeTime; }
52 StMuMtdHit::tot()
const {
return pair<double,double>(mTrailingEdgeTime.first - mLeadingEdgeTime.first, mTrailingEdgeTime.second - mLeadingEdgeTime.second); }
55 StMuMtdHit::tof()
const {
return 0.5*(mLeadingEdgeTime.first+mLeadingEdgeTime.second); }
58 StMuMtdHit::associatedTrackKey()
const {
return mTrackKey; }
61 StMuMtdHit::idTruth()
const {
return mIdTruth; }
64 StMuMtdHit::qaTruth()
const {
return mQuality; }
68 StMuMtdHit::index2Primary()
const {
return mIndex2Primary; }
71 StMuMtdHit::index2Global()
const {
return mIndex2Global; }