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 #ifndef StCtbTriggerDetector_hh
00041 #define StCtbTriggerDetector_hh
00042 #include "StObject.h"
00043
00044 class dst_TrgDet_st;
00045 class StTriggerData;
00046
00047 class StCtbTriggerDetector : public StObject {
00048 public:
00049 StCtbTriggerDetector();
00050 StCtbTriggerDetector(const dst_TrgDet_st&);
00051 StCtbTriggerDetector(const StTriggerData&);
00052 virtual ~StCtbTriggerDetector();
00053
00054
00055
00056 unsigned int numberOfTrays() const;
00057 unsigned int numberOfSlats() const;
00058 unsigned int numberOfPreSamples() const;
00059 unsigned int numberOfPostSamples() const;
00060 unsigned int numberOfAuxWords() const;
00061 float mips(unsigned int tray, unsigned int slot, unsigned int evt = 0) const;
00062 char time(unsigned int tray, unsigned int slot, unsigned int evt = 0) const;
00063 float aux(unsigned int, unsigned int evt = 0) const;
00064
00065 double mips(unsigned int evt = 0) const;
00066
00067 void setMips(unsigned int, unsigned int, unsigned int, float);
00068 void setTime(unsigned int, unsigned int, unsigned int, char);
00069 void setAux(unsigned int, unsigned int, float);
00070 void setNumberOfPreSamples(unsigned int);
00071 void setNumberOfPostSamples(unsigned int);
00072
00073 protected:
00074 enum {mMaxTrays = 120,
00075 mMaxSlats = 2,
00076 mMaxEventSamples = 11,
00077 mMaxAux = 16};
00078 char mBeg[1];
00079 Float_t mMips[mMaxTrays][mMaxSlats][mMaxEventSamples];
00080 Char_t mTime[mMaxTrays][mMaxSlats][mMaxEventSamples];
00081 Float_t mAux[mMaxAux][mMaxEventSamples];
00082 Int_t mNumberOfPreSamples;
00083 Int_t mNumberOfPostSamples;
00084 char mEnd[1];
00085
00086 ClassDef(StCtbTriggerDetector,2)
00087 };
00088 #endif