39 #include "StContainers.h"
52 Int_t tray()
const {
return mTray; }
53 Int_t module()
const {
return mModule; }
54 Int_t cell()
const {
return mCell; }
55 Int_t
ID()
const {
return kNModule*(tray()-1) + module() - 1;}
56 Double_t leadingEdgeTime()
const {
return mLeadingEdgeTime; }
57 Double_t trailingEdgeTime()
const {
return mTrailingEdgeTime; }
58 Double_t tot()
const {
return mTrailingEdgeTime - mLeadingEdgeTime; }
60 const StTrack* associatedTrack()
const;
61 void setTray(UChar_t trayId) { mTray = trayId; }
62 void setModule(UChar_t moduleId) { mModule = moduleId; }
63 void setCell(UChar_t cellId) { mCell = cellId; }
64 void setLeadingEdgeTime(Double_t time) { mLeadingEdgeTime = time; }
65 void setTrailingEdgeTime(Double_t time) { mTrailingEdgeTime = time; }
66 void setAssociatedTrack(
StTrack*);
68 static Float_t padWidth() {
return mBTofPadWidth;}
69 StDetectorId detector()
const;
75 Double_t mLeadingEdgeTime;
76 Double_t mTrailingEdgeTime;
77 const static Float_t mBTofPadWidth;
87 inline StDetectorId StBTofHit::detector()
const {
return kBTofId;}
89 ostream& operator<<(ostream&,
const StBTofHit&);