26 #define y2MAX_RAW_DATA_BLOCKS 11
27 #define y2FORMAT_VERSION 0x13
28 #define y2EVT_HEAD_LEN sizeof(TrgEvtHeader)
29 #define y2EV_DESC_LEN sizeof(EvtDescData)
30 #define y2L0DSM_DATA_LEN sizeof(L0_DSM_Data)
31 #define y2RAW_DET_DATA_LEN sizeof(RawTrgDet)
32 #define y2TRG_SUM_LEN sizeof(TrgSumData)
34 #define y2L1_DATA_LEN (y2EVT_HEAD_LEN+y2EV_DESC_LEN+y2TRG_SUM_LEN)
35 #define y2TRG_EVT_LEN (y2L1_DATA_LEN+(y2MAX_RAW_DATA_BLOCKS*y2RAW_DET_DATA_LEN))
36 #define y2TDI_EVT_LEN (y2EV_DESC_LEN+y2TRG_SUM_LEN+(y2MAX_RAW_DATA_BLOCKS*y2RAW_DET_DATA_LEN))
38 #define y2L0_SUM_LEN 148
39 #define y2L1_SUM_LEN 132
40 #define y2L2_SUM_LEN 116
41 #define y2L0_REG_LEN 16
43 #define y2CTB_DATA_OFFSET 8
44 #define y2RAW_CTB_LEN 256
45 #define y2MWC_DATA_OFFSET 272
46 #define y2RAW_MWC_LEN 128
47 #define y2BEMC_DATA_OFFSET 408
48 #define y2RAW_BEMC_LEN 128
50 #define y2ADD_BIT_PILEUP 0
51 #define y2ADD_BIT_PRIORITY 1
52 #define y2ADD_BIT_FORCE 5
53 #define y2ADD_BIT_L2_5 6
54 #define y2ADD_BIT_SIM 7
64 unsigned short TrgDataBytes;
65 unsigned short TrgFiller;
66 unsigned short TCUdataBytes;
67 unsigned char TrgDataFmtVer;
69 unsigned short TrgSumBytes;
70 unsigned short TrgSumHeader;
71 unsigned short L0SumBytes;
72 unsigned short L0SumHeader;
73 unsigned short L1SumBytes;
74 unsigned short L1SumHeader;
75 unsigned short L2SumBytes;
76 unsigned short L2SumHeader;
77 unsigned short L0RegBytes;
78 unsigned short L0RegHeader;
79 unsigned short RawDetBytes;
81 unsigned short CTBdataBytes;
82 char CTBdataHeader[2];
83 unsigned short MWCdataBytes;
84 char MWCdataHeader[2];
85 unsigned short EMCdataBytes;
86 char EMCdataHeader[2];
92 unsigned short TrgDataBytes;
93 unsigned short TrgFiller;
100 unsigned short TrgToken;
101 unsigned short TrgActionWd;
109 unsigned short DSMInput;
110 unsigned short DSMAddress;
118 unsigned char DetectorBusy;
119 unsigned char addBits;
120 unsigned short TriggerWd;
128 unsigned short TCUdataBytes;
130 unsigned char TrgDataFmtVer;
131 unsigned int bunchXing_hi;
132 unsigned int bunchXing_lo;
137 unsigned short npost;
145 unsigned short CPA[32];
146 unsigned short quadDSM[8];
147 unsigned short lastDSM[8];
148 unsigned char ZDC[16];
149 unsigned short BCdata[16];
155 unsigned short TrgSumBytes;
156 unsigned short TrgSumHeader;
157 unsigned int L1Sum[2];
158 unsigned int L2Sum[2];
159 unsigned short L0SumBytes;
160 unsigned short L0SumHeader;
162 unsigned short L1SumBytes;
163 unsigned short L1SumHeader;
164 unsigned int L1Result[32];
165 unsigned short L2SumBytes;
166 unsigned short L2SumHeader;
167 unsigned int L2Result[28];
168 unsigned short L0RegBytes;
169 unsigned short L0RegHeader;
170 unsigned short Mult_Reg[3];
171 unsigned short ZDC_Reg[2];
172 unsigned short Spare_Reg;
186 unsigned short RawDetBytes;
187 char RawDetHeader[2];
188 unsigned short CTBdataBytes;
189 char CTBdataHeader[2];
190 unsigned char CTB[256];
191 unsigned short MWCdataBytes;
192 char MWCdataHeader[2];
193 unsigned int MWCfiller;
194 unsigned char MWC[128];
195 unsigned short EMCdataBytes;
196 char EMCdataHeader[2];
197 unsigned int EMCfiller;
198 unsigned char BEMC[128];