00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef StMuFmsHit_hh
00018 #define StMuFmsHit_hh
00019
00020 #include "Stiostream.h"
00021 #include "StObject.h"
00022
00023 class StMuFmsHit : public StObject {
00024 public:
00025 StMuFmsHit();
00026 StMuFmsHit(unsigned short det, unsigned short ch,
00027 unsigned short qtcrate, unsigned short qtslot,
00028 unsigned short qtch, unsigned short adc,
00029 unsigned short tdc, float e);
00030 ~StMuFmsHit();
00031
00032 unsigned short detectorId() const;
00033 unsigned short channel() const;
00034 unsigned short qtCrate() const;
00035 unsigned short qtSlot() const;
00036 unsigned short qtChannel() const;
00037 unsigned short adc() const;
00038 unsigned short tdc() const;
00039 float energy() const;
00040
00041 void setDetectorId(unsigned short);
00042 void setChannel(unsigned short);
00043 void setQtCrate(unsigned short);
00044 void setQtSlot(unsigned short);
00045 void setQtChannel(unsigned short);
00046 void setAdc(unsigned short);
00047 void setTdc(unsigned short);
00048 void setEnergy(float);
00049 void setMuFmsHit(unsigned short det, unsigned short ch,
00050 unsigned short qtcrate, unsigned short qtslot,
00051 unsigned short qtch, unsigned short adc,
00052 unsigned short tdc, float e);
00053
00054 void print(Option_t *option="") const;
00055
00056 protected:
00057 void encodeQTCrtSlotCh(unsigned short qtcrate, unsigned short qtslot, unsigned short qtch);
00058
00059 protected:
00060 UShort_t mDetectorId;
00061 UShort_t mChannel;
00062 UShort_t mQTCrtSlotCh;
00063 UShort_t mAdc;
00064 UShort_t mTdc;
00065 Float_t mEnergy;
00066
00067 ClassDef(StMuFmsHit,1)
00068 };
00069
00070 ostream& operator<<(ostream&, const StMuFmsHit&);
00071 #endif