44 #ifndef trgStructures2005_h
45 #define trgStructures2005_h
47 #define y5MAX_L0_DATA_BLOCKS 11
48 #define y5MAX_RAW_DATA_BLOCKS 11
49 #define y5FORMAT_VERSION 0x22
50 #define y5EV_DESC_LEN sizeof(EvtDescData2005)
51 #define y5L0DSM_DATA_LEN sizeof(L0_DSM_Data2005)
52 #define y5RAW_DET_DATA_LEN sizeof(RawTrgDet2005)
53 #define y5TRG_SUM_LEN sizeof(TrgSumData2005)
55 #define y5L1_DATA_LEN (y5EV_DESC_LEN+y5TRG_SUM_LEN)
56 #define y5TRG_EVT_LEN (y5L1_DATA_LEN+(y5MAX_RAW_DATA_BLOCKS*y5RAW_DET_DATA_LEN))
57 #define y5TDI_EVT_LEN (y5EV_DESC_LEN+y5TRG_SUM_LEN+(y5MAX_RAW_DATA_BLOCKS*y5RAW_DET_DATA_LEN))
59 #define y5L0_SUM_LEN 148
60 #define y5L1_SUM_LEN 132
61 #define y5L2_SUM_LEN 116
62 #define y5L0_REG_LEN 16
64 #define y5RAW_MAX_LEN 272
84 #define L2RESULTS_OFFSET_TRG 0
85 #define L2RESULTS_OFFSET_EMC_CHECK 1
86 #define L2RESULTS_OFFSET_JPSI 2
87 #define L2RESULTS_OFFSET_UPS 8
88 #define L2RESULTS_OFFSET_DIJET 14
89 #define L2RESULTS_OFFSET_EMC_PED 19
90 #define L2RESULTS_OFFSET_PIG 20
92 #define y5ADD_BIT_PILEUP 0
93 #define y5ADD_BIT_FORCE 5
94 #define y5ADD_BIT_L2_5 6
95 #define y5ADD_BIT_SIM 7
103 unsigned short TCUdataBytes;
105 unsigned char TrgDataFmtVer;
106 unsigned int bunchXing_hi;
107 unsigned int bunchXing_lo;
108 unsigned short actionWdDetectorBitMask;
109 unsigned char actionWdTrgCommand;
110 unsigned char actionWdDaqCommand;
111 unsigned short TrgToken;
112 unsigned short addBits;
113 unsigned short DSMInput;
114 unsigned short externalBusy;
115 unsigned short modifiedBusyStatus;
116 unsigned short physicsWord;
117 unsigned short TriggerWord;
118 unsigned short DSMAddress;
119 unsigned short contaminationBusyStatus;
121 unsigned short npost;
122 unsigned short dummy;
130 unsigned short CPA[32];
131 unsigned short quadDSM[8];
132 unsigned short lastDSM[8];
133 unsigned short VTX[8];
134 unsigned short EMC[8];
135 unsigned short BCdata[16];
136 unsigned short specialTriggers[8];
137 unsigned short FPD[8];
144 unsigned short TrgSumBytes;
145 unsigned short TrgSumHeader;
146 unsigned int L1Sum[2];
147 unsigned int L2Sum[2];
148 unsigned short L0SumBytes;
149 unsigned short L0SumHeader;
151 unsigned short L1SumBytes;
152 unsigned short L1SumHeader;
153 unsigned int L1Result[32];
154 unsigned short L2SumBytes;
155 unsigned short L2SumHeader;
156 unsigned int L2Result[32];
169 unsigned short RawDetBytes;
170 char RawDetHeader[2];
171 unsigned short CTBdataBytes;
172 char CTBdataHeader[2];
173 unsigned char CTB[256];
174 unsigned short MWCdataBytes;
175 char MWCdataHeader[2];
176 unsigned int MWCfiller;
177 unsigned char MWC[128];
178 unsigned short BEMCdataBytes;
179 char BEMCdataHeader[2];
180 unsigned int BEMCfiller;
181 unsigned char BEMCEast[240];
182 unsigned char BEMCWest[240];
183 unsigned short BEMClayer1[48];
184 unsigned short EEMCdataBytes;
185 char EEMCdataHeader[2];
186 unsigned int EEMCfiller;
187 unsigned short EEMClayer1[16];
188 unsigned char EEMC[144];
189 unsigned short FPDdataBytes;
190 char FPDdataHeader[2];
191 unsigned int FPDfiller;
192 unsigned char FPDEastNSLayer0[112];
193 unsigned short FPDEastNSLayer1[8];
194 unsigned char FPDEastTBLayer0[64];
195 unsigned short FPDEastTBLayer1[8];
196 unsigned char FPDWestNSLayer0[112];
197 unsigned short FPDWestNSLayer1[8];
198 unsigned char FPDWestTBLayer0[64];
199 unsigned short FPDWestTBLayer1[8];
200 unsigned short BBCdataBytes;
201 char BBCdataHeader[2];
202 unsigned int BBCfiller;
203 unsigned char BBC[96];
204 unsigned short BBClayer1[16];
205 unsigned char ZDCSMD[32];
206 unsigned char ZDC[16];
207 unsigned short ZDClayer1[8];