00001 #ifndef TMBSCRATEEVENT_H 00002 #define TMBSCRATEEVENT_H 00003 00004 #include "TGo4EventElement.h" 00005 00006 #include "T1290Data.h" 00007 /* 00008 * Put all definitions here and use them in processor, 00009 * since they are necessary for data structure of event 00010 */ 00011 00012 #define NUM_SCALERS 3 00013 #define N_SCALERS_CH 16 00014 00015 // number of MADC modules 00016 #define MAX_MADC 4 00017 // number of channels in MADC module 00018 #define N_MADC_CHA 32 00019 00020 // number of LeCroy 1182 modules 00021 #define MAX_1182 2 00022 // number of channels in LeCroy 1182 modules 00023 #define NUM_1182_CH 8 00024 00025 // number of 1290 TDC modules 00026 #define MAX_1290 4 00027 00028 // number of channels in V560 module 00029 #define NUM_V560_CH 16 00030 00031 #define NUM_V550_CH 1280 00032 00033 00034 class TMbsCrateEvent : public TGo4EventElement { 00035 00036 public: 00037 00038 TMbsCrateEvent(); 00039 TMbsCrateEvent(const char* name, Short_t id=0); 00040 virtual ~TMbsCrateEvent(); 00041 00043 virtual void Clear(Option_t *t=""); 00044 00045 Bool_t IsPulser() const { return fIsPulser; } 00046 00047 /* Variable indicate if data were produced by pulser */ 00048 Bool_t fIsPulser; 00049 00050 /* data of 1182 QDC*/ 00051 UShort_t fData1182[MAX_1182][NUM_1182_CH]; 00052 /* content of madc channels*/ 00053 UShort_t fMadc[MAX_MADC][N_MADC_CHA]; 00054 00056 UInt_t f560Scaler[NUM_V560_CH]; 00057 00059 Short_t f550Data0[NUM_V550_CH]; 00061 Short_t f550Data1[NUM_V550_CH]; 00062 00064 T1290Data fMtdc[MAX_1290]; 00065 00066 ClassDef(TMbsCrateEvent,3) 00067 }; 00068 00069 #endif //TEVENT_H 00070