00001
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040 #ifndef StTofSlat_hh
00041 #define StTofSlat_hh
00042
00043 #include "StObject.h"
00044 #include "StThreeVectorF.hh"
00045 #include "StContainers.h"
00046 class StTrack;
00047
00048 class StTofSlat : public StObject {
00049 public:
00050 StTofSlat();
00051 StTofSlat(unsigned short, unsigned short, unsigned short, StTrack*,
00052 float, unsigned short, unsigned short);
00053 ~StTofSlat();
00054
00055 int operator==(const StTofSlat&) const;
00056 int operator!=(const StTofSlat&) const;
00057
00058 unsigned short slatIndex() const;
00059 unsigned short adc() const;
00060 unsigned short tdc() const;
00061 StTrack* associatedTrack();
00062 const StTrack* associatedTrack() const;
00063 float zHit() const;
00064 unsigned short hitProf() const;
00065 unsigned short matchFlag() const;
00066 const StThreeVectorF& position() const;
00067
00068 void setSlatIndex(unsigned short);
00069 void setAdc(unsigned short);
00070 void setTdc(unsigned short);
00071 void setAssociatedTrack(StTrack*);
00072 void setZHit(float);
00073 void setHitProf(unsigned short);
00074 void setMatchFlag(unsigned short);
00075 void setPosition(const StThreeVectorF&);
00076
00077 protected:
00078 UShort_t mSlatIndex;
00079 UShort_t mAdc;
00080 UShort_t mTdc;
00081
00082 #ifdef __CINT__
00083 StObjLink mAssociatedTrack;
00084 #else
00085 StLink<StTrack> mAssociatedTrack;
00086 #endif //__CINT__
00087 Float_t mZhit;
00088 UShort_t mHitProf;
00089 UShort_t mMatchFlag;
00090 StThreeVectorF mPosition;
00091
00092 ClassDef(StTofSlat,4)
00093 };
00094
00095 inline void
00096 StTofSlat::setSlatIndex(unsigned short slatId) {mSlatIndex = slatId;}
00097
00098 inline void
00099 StTofSlat::setAdc(unsigned short rawAdc) {mAdc = rawAdc;}
00100
00101 inline void
00102 StTofSlat::setTdc(unsigned short rawTdc) {mTdc = rawTdc;}
00103
00104 inline void
00105 StTofSlat::setZHit(float zhit) {mZhit = zhit;}
00106
00107 inline void
00108 StTofSlat::setHitProf(unsigned short hitprof) {mHitProf = hitprof;}
00109
00110 inline void
00111 StTofSlat::setMatchFlag(unsigned short matchflag) {mMatchFlag = matchflag;}
00112
00113 inline unsigned short
00114 StTofSlat::slatIndex() const {return mSlatIndex;}
00115
00116 inline unsigned short
00117 StTofSlat::adc() const {return mAdc;}
00118
00119 inline unsigned short
00120 StTofSlat::tdc() const {return mTdc;}
00121
00122 inline float
00123 StTofSlat::zHit() const {return mZhit;}
00124
00125 inline unsigned short
00126 StTofSlat::hitProf() const {return mHitProf;}
00127
00128 inline unsigned short
00129 StTofSlat::matchFlag() const {return mMatchFlag;}
00130
00131 #endif