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 #ifndef StVpdTriggerDetector_hh
00032 #define StVpdTriggerDetector_hh
00033 #include "StObject.h"
00034 #include "StEnumerations.h"
00035
00036 class dst_TrgDet_st;
00037 class StTriggerData;
00038
00039 class StVpdTriggerDetector : public StObject {
00040 public:
00041 StVpdTriggerDetector();
00042 StVpdTriggerDetector(const dst_TrgDet_st&);
00043 StVpdTriggerDetector(const StTriggerData&);
00044
00045 virtual ~StVpdTriggerDetector();
00046
00047 unsigned int numberOfVpdCounters() const;
00048 unsigned short ADC(StBeamDirection eastwest, unsigned int pmt) const;
00049 unsigned short TDC(StBeamDirection eastwest, unsigned int pmt) const;
00050 unsigned short EarliestTDC(StBeamDirection eastwest) const;
00051 unsigned short TimeDifference() const {return mTimeDifference;};
00052
00053 void setADC(StBeamDirection eastwest, unsigned int pmt, unsigned short v);
00054 void setTDC(StBeamDirection eastwest, unsigned int pmt, unsigned short v);
00055 void setEarliestTDC(StBeamDirection eastwest, unsigned short v) {mEarliestTDC[eastwest]=v;}
00056 void setTmeDifference(unsigned short v) {mTimeDifference = v;}
00057
00058 protected:
00059 enum {mMaxVpdCounter = 16};
00060 unsigned short mADC[2][mMaxVpdCounter];
00061 unsigned short mTDC[2][mMaxVpdCounter];
00062 unsigned short mEarliestTDC[2];
00063 unsigned short mTimeDifference;
00064 unsigned short mYear;
00065
00066 ClassDef(StVpdTriggerDetector,2)
00067 };
00068 #endif