00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef StHltVpdHit_hh
00018 #define StHltVpdHit_hh
00019
00020 #include <Stiostream.h>
00021 #include "StObject.h"
00022 #include "StArray.h"
00023 #include "StEnumerations.h"
00024
00025 class StHltVpdHit : public StObject {
00026 public:
00027 StHltVpdHit();
00028 ~StHltVpdHit();
00029
00030 StBeamDirection direction() const;
00031 short channel() const;
00032 float tdc() const;
00033 float tot() const;
00034 float tof() const;
00035 float triggerTime() const;
00036 short module() const;
00037 short cell() const;
00038
00039
00040 void setDirection(StBeamDirection);
00041 void setChannel(short);
00042 void setTdc(float);
00043 void setTot(float);
00044 void setTof(float);
00045 void setTriggerTime(float);
00046
00047 private:
00048 StBeamDirection mDirection;
00049 short mChannel;
00050 float mTdc;
00051 float mTot;
00052 float mTof;
00053 float mTriggerTime;
00054
00055 ClassDef(StHltVpdHit,1)
00056 };
00057
00058 inline StBeamDirection StHltVpdHit::direction() const {return mDirection;}
00059 inline short StHltVpdHit::channel() const {return mChannel;}
00060 inline float StHltVpdHit::tdc() const {return mTdc;}
00061 inline float StHltVpdHit::tot() const {return mTot;}
00062 inline float StHltVpdHit::tof() const {return mTof;}
00063 inline float StHltVpdHit::triggerTime() const {return mTriggerTime;}
00064 inline short StHltVpdHit::module() const {return mChannel/6;}
00065 inline short StHltVpdHit::cell() const {return mChannel%6;}
00066
00067
00068 ostream& operator<<(ostream&, const StHltVpdHit&);
00069
00070 #endif
00071