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 #ifndef StTofData_hh
00034 #define StTofData_hh
00035
00036 #include "StObject.h"
00037
00038 class StTofData : public StObject {
00039 public:
00040 StTofData();
00041 StTofData(unsigned short, unsigned short, unsigned short, short, unsigned short, unsigned int, unsigned int);
00042 ~StTofData();
00043
00044 int operator==(const StTofData&) const;
00045 int operator!=(const StTofData&) const;
00046
00047 unsigned short dataIndex() const;
00048 unsigned short adc() const;
00049 unsigned short tdc() const;
00050 short tc() const;
00051 unsigned short sc() const;
00052
00053 unsigned int leadingTdc() const;
00054 unsigned int trailingTdc() const;
00055
00056 void setDataIndex(unsigned short);
00057 void setAdc(unsigned short);
00058 void setTdc(unsigned short);
00059 void setTc(short);
00060 void setSc(unsigned short);
00061
00062 void setLeadingTdc(unsigned int);
00063 void setTrailingTdc(unsigned int);
00064
00065 protected:
00066 UShort_t mDataIndex;
00067 UShort_t mAdc;
00068 UShort_t mTdc;
00069 Short_t mTc;
00070 UShort_t mSc;
00071
00072 UInt_t mLeadingTdc;
00073 UInt_t mTrailingTdc;
00074
00075 ClassDef(StTofData,3)
00076 };
00077
00078 inline void
00079 StTofData::setDataIndex(unsigned short dataId)
00080 {
00081 mDataIndex = dataId;
00082 }
00083
00084 inline void
00085 StTofData::setAdc(unsigned short rawAdc)
00086 {
00087 mAdc = rawAdc;
00088 }
00089
00090 inline void
00091 StTofData::setTdc(unsigned short rawTdc)
00092 {
00093 mTdc = rawTdc;
00094 }
00095
00096 inline void
00097 StTofData::setTc(short rawTc)
00098 {
00099 mTc = rawTc;
00100 }
00101
00102 inline void
00103 StTofData::setSc(unsigned short rawSc)
00104 {
00105 mSc = rawSc;
00106 }
00107
00108 inline void
00109 StTofData::setLeadingTdc(unsigned int rawLTdc)
00110 {
00111 mLeadingTdc = rawLTdc;
00112 }
00113
00114 inline void
00115 StTofData::setTrailingTdc(unsigned int rawTTdc)
00116 {
00117 mTrailingTdc = rawTTdc;
00118 }
00119
00120
00121 inline unsigned short
00122 StTofData::dataIndex() const
00123 {
00124 return mDataIndex;
00125 }
00126
00127 inline unsigned short
00128 StTofData::adc() const
00129 {
00130 return mAdc;
00131 }
00132
00133 inline unsigned short
00134 StTofData::tdc() const
00135 {
00136 return mTdc;
00137 }
00138
00139 inline short
00140 StTofData::tc() const
00141 {
00142 return mTc;
00143 }
00144
00145 inline unsigned short
00146 StTofData::sc() const
00147 {
00148 return mSc;
00149 }
00150
00151 inline unsigned int
00152 StTofData::leadingTdc() const
00153 {
00154 return mLeadingTdc;
00155 }
00156
00157 inline unsigned int
00158 StTofData::trailingTdc() const
00159 {
00160 return mTrailingTdc;
00161 }
00162
00163 ostream& operator<<(ostream& os, const StTofData&);
00164
00165 #endif