20 #ifndef StMuBTofHit_hh
21 #define StMuBTofHit_hh
25 #include "StThreeVectorF.hh"
29 #include "StMuTrack.h"
40 double leadingEdgeTime()
const;
41 double trailingEdgeTime()
const;
44 int associatedTrackId()
const;
45 int index2Primary()
const;
46 int index2Global()
const;
54 void setTrayIndex(
unsigned char);
55 void setModuleIndex(
unsigned char);
56 void setCellIndex(
unsigned char);
57 void setLeadingEdgeTime(
double);
58 void setTrailingEdgeTime(
double);
60 void setAssociatedTrackId(
short);
61 void setIndex2Primary(
int);
62 void setIndex2Global(
int);
64 void setIdTruth(Int_t idtru, Int_t qatru=0);
70 Double_t mLeadingEdgeTime;
71 Double_t mTrailingEdgeTime;
72 Short_t mAssociatedTrackId;
83 inline int StMuBTofHit::tray()
const {
return mTray; }
84 inline int StMuBTofHit::module()
const {
return mModule; }
85 inline int StMuBTofHit::cell()
const {
return mCell; }
86 inline double StMuBTofHit::leadingEdgeTime()
const {
return mLeadingEdgeTime; }
87 inline double StMuBTofHit::trailingEdgeTime()
const {
return mTrailingEdgeTime; }
88 inline double StMuBTofHit::tot()
const {
return mTrailingEdgeTime-mLeadingEdgeTime; }
89 inline int StMuBTofHit::associatedTrackId()
const {
return mAssociatedTrackId; }
90 inline int StMuBTofHit::index2Primary()
const {
return mIndex2Primary; }
91 inline int StMuBTofHit::index2Global()
const {
return mIndex2Global; }
92 inline int StMuBTofHit::idTruth()
const {
return mIdTruth; }
93 inline int StMuBTofHit::qaTruth()
const {
return mQuality; }
98 inline void StMuBTofHit::setTrayIndex(
unsigned char tray) { mTray=tray; }
99 inline void StMuBTofHit::setModuleIndex(
unsigned char module) { mModule=module; }
100 inline void StMuBTofHit::setCellIndex(
unsigned char cell) { mCell=cell; }
101 inline void StMuBTofHit::setLeadingEdgeTime(
double time) { mLeadingEdgeTime=time; }
102 inline void StMuBTofHit::setTrailingEdgeTime(
double time) { mTrailingEdgeTime=time; }
103 inline void StMuBTofHit::setAssociatedTrackId(
short id) { mAssociatedTrackId=id; }
104 inline void StMuBTofHit::setIndex2Primary(
int index) { mIndex2Primary=index; }
105 inline void StMuBTofHit::setIndex2Global(
int index) { mIndex2Global=index; }
static TClonesArray * array(int type)
returns pointer to the n-th TClonesArray