00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef StHltBTofHit_hh
00018 #define StHltBTofHit_hh
00019
00020 #include <Stiostream.h>
00021 #include "StObject.h"
00022 #include "StArray.h"
00023
00024 class StHltTrackNode;
00025
00026 class StHltBTofHit : public StObject {
00027 public:
00028 StHltBTofHit();
00029 ~StHltBTofHit();
00030
00031 short trayId() const;
00032 short channel() const;
00033 float tdc() const;
00034 float tot() const;
00035 float tof() const;
00036 float triggerTime() const;
00037 short module() const;
00038 short cell() const;
00039
00040 StHltTrackNode* trackNode();
00041 const StHltTrackNode* trackNode() const;
00042
00043 void setTrayId(short);
00044 void setChannel(short);
00045 void setTdc(float);
00046 void setTot(float);
00047 void setTof(float);
00048 void setTriggerTime(float);
00049
00050 void setTrackNode(StHltTrackNode*);
00051
00052 private:
00053 short mTrayId;
00054 short mChannel;
00055 float mTdc;
00056 float mTot;
00057 float mTof;
00058 float mTriggerTime;
00059
00060 #ifdef __CINT__
00061 StObjLink mTrackNode;
00062 #else
00063 StLink<StHltTrackNode> mTrackNode;
00064 #endif //__CINT__
00065
00066 ClassDef(StHltBTofHit,1)
00067 };
00068
00069 inline short StHltBTofHit::trayId() const {return mTrayId;}
00070 inline short StHltBTofHit::channel() const {return mChannel;}
00071 inline float StHltBTofHit::tdc() const {return mTdc;}
00072 inline float StHltBTofHit::tot() const {return mTot;}
00073 inline float StHltBTofHit::tof() const {return mTof;}
00074 inline float StHltBTofHit::triggerTime() const {return mTriggerTime;}
00075 inline short StHltBTofHit::module() const {return mChannel/6;}
00076 inline short StHltBTofHit::cell() const {return mChannel%6;}
00077
00078 inline StHltTrackNode* StHltBTofHit::trackNode() {return mTrackNode;}
00079 inline const StHltTrackNode* StHltBTofHit::trackNode() const {return mTrackNode;}
00080
00081 ostream& operator<<(ostream&, const StHltBTofHit&);
00082
00083 #endif
00084