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 #ifndef StMwcTriggerDetector_hh
00035 #define StMwcTriggerDetector_hh
00036 #include "StObject.h"
00037
00038 class dst_TrgDet_st;
00039
00040 class StMwcTriggerDetector : public StObject {
00041 public:
00042 StMwcTriggerDetector();
00043 StMwcTriggerDetector(const dst_TrgDet_st&);
00044
00045
00046 virtual ~StMwcTriggerDetector();
00047
00048 unsigned int numberOfSectors() const;
00049 unsigned int numberOfSubSectors() const;
00050 unsigned int numberOfPreSamples() const;
00051 unsigned int numberOfPostSamples() const;
00052 unsigned int numberOfAuxWords() const;
00053
00054 float mips(unsigned int sec, unsigned int subsec, unsigned int evt = 0) const;
00055 float aux(unsigned int, unsigned int evt = 0) const;
00056
00057 void setMips(unsigned int, unsigned int, unsigned int, float);
00058 void setAux(unsigned int, unsigned int, float);
00059 void setNumberOfPreSamples(unsigned int);
00060 void setNumberOfPostSamples(unsigned int);
00061
00062 protected:
00063 enum {mMaxSectors = 24,
00064 mMaxSubSectors = 4,
00065 mMaxEventSamples = 11,
00066 mMaxAux = 32};
00067 char mBeg[1];
00068 Float_t mMips[mMaxSectors][mMaxSubSectors][mMaxEventSamples];
00069 Float_t mAux[mMaxAux][mMaxEventSamples];
00070 Int_t mNumberOfPreSamples;
00071 Int_t mNumberOfPostSamples;
00072 char mEnd[1];
00073
00074 ClassDef(StMwcTriggerDetector,2)
00075 };
00076 #endif