00001 #ifndef TCERN11EVENT_H 00002 #define TCERN11EVENT_H 00003 00004 #include "TGo4EventElement.h" 00005 00006 /* 00007 * Put all definitions here and use them in processor, 00008 * since they are necessary for data structure of event 00009 */ 00010 00011 #define NUM_SCALERS 5 00012 #define N_SCALERS_CH 16 00013 00014 #define MAX_SPADIC 9 00015 // number of maximum connected spadics 00016 // NOTE: since susibo index starts with one, we do not use index 0, but assign one more 00017 00018 #define NUM_SPADIC_CHA 8 00019 // channels per spadic 00020 00021 #define TRACE_SIZE 45 00022 // in samples 00023 00024 // tag for module data header tags for madc subevent: 00025 #define MAX_MADC 3 00026 #define N_MADC_CHA 32 00027 00028 #define NUM_LECROY_CHA 8 00029 // channels per spadic 00030 00031 #define MAX_SCINT 2 00032 #define N_SCINT_CHA 4 00033 00034 #define N_SISTRIP_CHA 1280 00035 00036 #define NUM_MAPMP_CELLS 256 00037 #define MAPM_X 25 00038 #define MAPM_Y 25 00039 00040 #define NX_HISTORY 5 00041 00042 #define NUM_1182 8 00043 #define NUM_1183 8 00044 00045 00046 00047 00048 class TCernNov10Event : public TGo4EventElement { 00049 public: 00050 TCernNov10Event(); 00051 TCernNov10Event(const char* name); 00052 virtual ~TCernNov10Event(); 00053 00055 virtual void Clear(Option_t *t=""); 00056 00057 /* vulom trigger sync number from*/ 00058 UInt_t fVulomSyncNumber; 00059 00060 /* scaler contents*/ 00061 UInt_t fVulomScaler[NUM_SCALERS][N_SCALERS_CH]; 00062 00063 00064 /* the raw pulse shape trace data for each channel*/ 00065 UChar_t fSpadicPulse[MAX_SPADIC][NUM_SPADIC_CHA][TRACE_SIZE]; 00066 00067 00068 /* content of madc channels*/ 00069 UShort_t fMadc[MAX_MADC][N_MADC_CHA]; 00070 00071 /* data of 1182 QDC*/ 00072 UShort_t fData1182[NUM_1182]; 00073 00074 /* data of 1183 QDC*/ 00075 UShort_t fData1183[NUM_1183]; 00076 00077 /* adc values of MAPM and geometric cell coordinates */ 00078 Int_t fMAPM_Integral[NUM_MAPMP_CELLS]; // adc value 00079 Double_t fMAPM_X[NUM_MAPMP_CELLS]; // x pos 00080 Double_t fMAPM_Y[NUM_MAPMP_CELLS]; // y pos 00081 ULong_t fMAPM_DeltaT[NUM_MAPMP_CELLS]; // message time difference relative to sync 00082 00083 ClassDef(TCernNov10Event,1) 00084 }; 00085 #endif //TEVENT_H 00086 00087 00088