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
00041
00042 #ifndef StRichHit_hh
00043 #define StRichHit_hh
00044
00045 #include <Stiostream.h>
00046 #include "StHit.h"
00047
00048 class StRichHit : public StHit {
00049 public:
00050 StRichHit();
00051 StRichHit(const StThreeVectorF& xg, const StThreeVectorF& dx);
00052 StRichHit(const StThreeVectorF& xg, const StThreeVectorF& dx,
00053 unsigned int hp, float q, float maxAdc, unsigned char tc);
00054
00055 virtual ~StRichHit();
00056
00057
00058
00059 const StThreeVectorF& local() const;
00060 const StThreeVectorF& internal() const;
00061 float maxAmplitude() const;
00062
00063 int clusterNumber() const;
00064 unsigned int track() const;
00065 unsigned short numberOfPads() const;
00066
00067
00068 unsigned int reservedLong() const;
00069 float reservedFloat() const;
00070
00071 StThreeVectorF& local();
00072 StThreeVectorF& internal();
00073
00074 void setMaxAmplitude(float);
00075 void setClusterNumber(int);
00076
00077 void setNumberOfPads(unsigned short);
00078 void setTrack(unsigned int);
00079
00080 void setReservedLong(unsigned int);
00081 void setReservedFloat(float);
00082
00083 bool isSet(StRichHitFlag f) const;
00084 void setBit(StRichHitFlag f);
00085 void unSetBit(StRichHitFlag f);
00086 unsigned int flags() const;
00087
00088 protected:
00089 StThreeVectorF mLocal;
00090 StThreeVectorF mLError;
00091 StThreeVectorF mInternal;
00092 StThreeVectorF mSigma;
00093
00094 Float_t mMaxAmplitude;
00095 Int_t mClusterNumber;
00096
00097 UInt_t mTrack;
00098
00099 UInt_t mReservedLong;
00100 Float_t mReservedFloat;
00101
00102 UInt_t mNumberOfPads;
00103
00104 ClassDef(StRichHit,1)
00105 };
00106
00107 inline const StThreeVectorF& StRichHit::local() const {return mLocal;}
00108 inline StThreeVectorF& StRichHit::local() {return mLocal;}
00109 inline const StThreeVectorF& StRichHit::internal() const {return mInternal;}
00110 inline StThreeVectorF& StRichHit::internal() {return mInternal;}
00111 inline void StRichHit::setMaxAmplitude(float m) {mMaxAmplitude = m;}
00112 inline float StRichHit::maxAmplitude() const {return mMaxAmplitude;}
00113 inline void StRichHit::setClusterNumber(int no) {mClusterNumber = no;}
00114 inline int StRichHit::clusterNumber() const {return mClusterNumber;}
00115
00116
00117 inline void StRichHit::setTrack(unsigned int tck) { mTrack = tck;}
00118 inline unsigned int StRichHit::track() const {return mTrack;}
00119 inline unsigned short StRichHit::numberOfPads() const { return mNumberOfPads;}
00120 inline void StRichHit::setNumberOfPads(unsigned short n) { mNumberOfPads = n;}
00121
00122 inline unsigned int StRichHit::reservedLong() const {return mReservedLong; }
00123 inline float StRichHit::reservedFloat() const {return mReservedFloat; }
00124 inline void StRichHit::setReservedLong(unsigned int el) {mReservedLong = el;}
00125 inline void StRichHit::setReservedFloat(float fl) {mReservedFloat = fl;}
00126
00127 inline bool StRichHit::isSet(StRichHitFlag f) const { return (mReservedLong & f); }
00128 inline void StRichHit::setBit(StRichHitFlag f) { mReservedLong |= f; }
00129 inline void StRichHit::unSetBit(StRichHitFlag f) { mReservedLong &= ~(f);}
00130 inline unsigned int StRichHit::flags() const{ return (mReservedLong); }
00131
00132
00133 ostream& operator<<(ostream& os, const StRichHit& hit);
00134
00135 #endif