ATLAS Offline Software
FPGADataFormatUtilities.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3  */
4 
5 #ifndef EFTRACKING_FPGA_INTEGRATION_FPGADATAFORMATUTILITIES_H
6 #define EFTRACKING_FPGA_INTEGRATION_FPGADATAFORMATUTILITIES_H
7 
8 #include <cinttypes>
9 
10 // Provides simple functions to convert data into FPGA format
12 {
13  const int EVT_HDR_LWORDS = 3;
14 
15  // EVT_HDR defined flags
16  const int EVT_HDR_FLAG = 0xab;
17 
18  // EVT_HDR_W1 word description
19  const int EVT_HDR_W1_FLAG_bits = 8 ;
20  const int EVT_HDR_W1_FLAG_lsb = 56;
21 
22  const int EVT_HDR_W1_L0ID_bits = 40;
23  const int EVT_HDR_W1_L0ID_lsb = 16;
24 
25  const int EVT_HDR_W1_BCID_bits = 12;
26  const int EVT_HDR_W1_BCID_lsb = 4;
27 
28  const int EVT_HDR_W1_SPARE_bits = 4;
29  const int EVT_HDR_W1_SPARE_lsb = 0;
30 
31  // EVT_HDR_W2 word description
32  const int EVT_HDR_W2_RUNNUMBER_bits = 32;
33  const int EVT_HDR_W2_RUNNUMBER_lsb = 32;
34 
35  const int EVT_HDR_W2_TIME_bits = 32;
36  const int EVT_HDR_W2_TIME_lsb = 0;
37 
38 
39  // EVT_HDR_W3 word description
40  const int EVT_HDR_W3_STATUS_bits = 32;
41  const int EVT_HDR_W3_STATUS_lsb = 32;
42 
43  const int EVT_HDR_W3_CRC_bits = 32;
44  const int EVT_HDR_W3_CRC_lsb = 0;
45 
46 
47  // Event header format
48  typedef struct EVT_HDR_w1 {
54 
55  typedef struct EVT_HDR_w2 {
59 
60  typedef struct EVT_HDR_w3 {
64 
65 
67  uint64_t temp = 0;
68  temp |= (static_cast<uint64_t>(in.flag) << EVT_HDR_W1_FLAG_lsb);
69  temp |= (static_cast<uint64_t>(in.l0id) << EVT_HDR_W1_L0ID_lsb);
70  temp |= (static_cast<uint64_t>(in.bcid) << EVT_HDR_W1_BCID_lsb);
71  temp |= (static_cast<uint64_t>(in.spare) << EVT_HDR_W1_SPARE_lsb);
72  return temp;
73  }
74 
76  uint64_t temp = 0;
77  temp |= (static_cast<uint64_t>(in.runnumber) << EVT_HDR_W2_RUNNUMBER_lsb);
78  temp |= (static_cast<uint64_t>(in.time) << EVT_HDR_W2_TIME_lsb);
79  return temp;
80  }
81 
83  uint64_t temp = 0;
84  temp |= (static_cast<uint64_t>(in.status) << EVT_HDR_W3_STATUS_lsb);
85  temp |= (static_cast<uint64_t>(in.crc) << EVT_HDR_W3_CRC_lsb);
86  return temp;
87  }
88 
89  EVT_HDR_w1 fill_EVT_HDR_w1 (const uint64_t& flag, const uint64_t& l0id, const uint64_t& bcid, const uint64_t& spare) {
90  EVT_HDR_w1 temp;
91  temp.flag = flag;
92  temp.l0id = l0id;
93  temp.bcid = bcid;
94  temp.spare = spare;
95  return temp;
96  }
97 
99  EVT_HDR_w2 temp;
100  temp.runnumber = runnumber;
101  temp.time = time;
102  return temp;
103  }
104 
106  EVT_HDR_w3 temp;
107  temp.status = status;
108  temp.crc = crc;
109  return temp;
110  }
111 
112  // Footer
113  // EVT_FTR_W1 word description
114  const int EVT_FTR_FLAG = 0xcd;
115  const int EVT_FTR_W1_FLAG_bits = 8 ;
116  const int EVT_FTR_W1_FLAG_lsb = 56;
117 
118  const int EVT_FTR_W1_SPARE_bits = 24;
119  const int EVT_FTR_W1_SPARE_lsb = 32;
120 
121  const int EVT_FTR_W1_HDR_CRC_bits = 32;
122  const int EVT_FTR_W1_HDR_CRC_lsb = 0 ;
123 
124  // EVT_FTR_W2 word description
127 
128  // EVT_FTR_W3 word description
131 
132  const int EVT_FTR_W3_CRC_bits = 32;
133  const int EVT_FTR_W3_CRC_lsb = 0 ;
134 
135 
136  typedef struct EVT_FTR_w1 {
141 
142  typedef struct EVT_FTR_w2 {
145 
146  typedef struct EVT_FTR_w3 {
150 
151 
152 
154  uint64_t temp = 0;
155  temp |= static_cast<uint64_t>(in.flag) << EVT_FTR_W1_FLAG_lsb;
156  temp |= static_cast<uint64_t>(in.spare) << EVT_FTR_W1_SPARE_lsb;
157  temp |= static_cast<uint64_t>(in.hdr_crc) << EVT_FTR_W1_HDR_CRC_lsb;
158  return temp;
159  }
160 
162  uint64_t temp = 0;
163  temp |= static_cast<uint64_t>(in.error_flags) << EVT_FTR_W2_ERROR_FLAGS_lsb;
164  return temp;
165  }
166 
168  uint64_t temp = 0;
169  temp |= static_cast<uint64_t>(in.word_count) << EVT_FTR_W3_WORD_COUNT_lsb;
170  temp |= static_cast<uint64_t>(in.crc) << EVT_FTR_W3_CRC_lsb;
171  return temp;
172  }
173 
174  EVT_FTR_w1 fill_EVT_FTR_w1 (const uint64_t flag, const uint64_t spare, const uint64_t hdr_crc) {
175  EVT_FTR_w1 temp;
176  temp.flag = flag;
177  temp.spare = spare;
178  temp.hdr_crc = hdr_crc;
179  return temp;
180  }
181 
182  EVT_FTR_w2 fill_EVT_FTR_w2 (const uint64_t error_flags) {
183  EVT_FTR_w2 temp;
184  temp.error_flags = error_flags;
185  return temp;
186  }
187 
188  EVT_FTR_w3 fill_EVT_FTR_w3 (const uint64_t word_count, const uint64_t crc) {
189  EVT_FTR_w3 temp;
190  temp.word_count = word_count;
191  temp.crc = crc;
192  return temp;
193  }
194 
195  // Module
196  // M_HDR defined flags
197  const int M_HDR_FLAG = 0x55;
198 
199  // M_HDR_W1 word description
200  const int M_HDR_W1_FLAG_bits = 8;
201  const int M_HDR_W1_FLAG_lsb = 56;
202 
203  const int M_HDR_W1_MODID_bits = 32;
204  const int M_HDR_W1_MODID_lsb = 24;
205 
206  const int M_HDR_W1_SPARE_bits = 24;
207  const int M_HDR_W1_SPARE_lsb = 0;
208 
209  typedef struct M_HDR_w3 {
214 
215 
217  uint64_t temp = 0;
218  temp |= static_cast<uint64_t>(in.flag) << M_HDR_W1_FLAG_lsb;
219  temp |= static_cast<uint64_t>(in.modid) << M_HDR_W1_MODID_lsb;
220  temp |= static_cast<uint64_t>(in.spare) << M_HDR_W1_SPARE_lsb;
221  return temp;
222  }
223 
224  M_HDR_w3 fill_M_HDR_w3 (const uint64_t flag, const uint64_t modid, const uint64_t spare) {
225  M_HDR_w3 temp;
226  temp.flag = flag;
227  temp.modid = modid;
228  temp.spare = spare;
229  return temp;
230  }
231 
232  // PIXEL_EF_RDO word description
233  const int PIXEL_EF_RDO_LAST_bits = 1 ;
234  const int PIXEL_EF_RDO_LAST_lsb = 63;
235 
236  const int PIXEL_EF_RDO_ROW_bits = 10;
237  const int PIXEL_EF_RDO_ROW_lsb = 53;
238 
239  const int PIXEL_EF_RDO_COL_bits = 10;
240  const int PIXEL_EF_RDO_COL_lsb = 43;
241 
242  const int PIXEL_EF_RDO_TOT_bits = 4 ;
243  const int PIXEL_EF_RDO_TOT_lsb = 39;
244 
245  const int PIXEL_EF_RDO_LVL1_bits = 1 ;
246  const int PIXEL_EF_RDO_LVL1_lsb = 38;
247 
248  const int PIXEL_EF_RDO_ID_bits = 13;
249  const int PIXEL_EF_RDO_ID_lsb = 25;
250 
251  const int PIXEL_EF_RDO_SPARE_bits = 25;
252  const int PIXEL_EF_RDO_SPARE_lsb = 0;
253 
254  // STRIP_EF_RDO word description
255  const int STRIP_EF_RDO_LAST_bits = 1 ;
256  const int STRIP_EF_RDO_LAST_lsb = 31;
257 
258  const int STRIP_EF_RDO_CHIPID_bits = 4 ;
259  const int STRIP_EF_RDO_CHIPID_lsb = 27;
260 
263 
266 
267  const int STRIP_EF_RDO_ID_bits = 13;
268  const int STRIP_EF_RDO_ID_lsb = 3 ;
269 
270  const int STRIP_EF_RDO_SPARE_bits = 3 ;
271  const int STRIP_EF_RDO_SPARE_lsb = 0 ;
272 
273  typedef struct PIXEL_EF_RDO {
274  unsigned int last : PIXEL_EF_RDO_LAST_bits;
275  unsigned int row : PIXEL_EF_RDO_ROW_bits;
276  unsigned int col : PIXEL_EF_RDO_COL_bits;
277  unsigned int tot : PIXEL_EF_RDO_TOT_bits;
278  unsigned int lvl1 : PIXEL_EF_RDO_LVL1_bits;
279  unsigned int id : PIXEL_EF_RDO_ID_bits;
282 
284  uint64_t temp = 0;
285  temp |= static_cast<uint64_t>(in.last) << PIXEL_EF_RDO_LAST_lsb;
286  temp |= static_cast<uint64_t>(in.row) << PIXEL_EF_RDO_ROW_lsb;
287  temp |= static_cast<uint64_t>(in.col) << PIXEL_EF_RDO_COL_lsb;
288  temp |= static_cast<uint64_t>(in.tot) << PIXEL_EF_RDO_TOT_lsb;
289  temp |= static_cast<uint64_t>(in.lvl1) << PIXEL_EF_RDO_LVL1_lsb;
290  temp |= static_cast<uint64_t>(in.id) << PIXEL_EF_RDO_ID_lsb;
291  temp |= static_cast<uint64_t>(in.spare) << PIXEL_EF_RDO_SPARE_lsb;
292  return temp;
293  }
294 
295  PIXEL_EF_RDO fill_PIXEL_EF_RDO (const uint64_t last, const uint64_t row, const uint64_t col, const uint64_t tot, const uint64_t lvl1, const uint64_t id, const uint64_t spare) {
296  PIXEL_EF_RDO temp;
297  temp.last = last;
298  temp.row = row;
299  temp.col = col;
300  temp.tot = tot;
301  temp.lvl1 = lvl1;
302  temp.id = id;
303  temp.spare = spare;
304  return temp;
305  }
306 
307  typedef struct STRIP_EF_RDO {
308  unsigned int last : STRIP_EF_RDO_LAST_bits;
312  unsigned int id : STRIP_EF_RDO_ID_bits;
315 
317  uint64_t temp = 0;
318  temp |= static_cast<uint64_t>(in.last) << STRIP_EF_RDO_LAST_lsb;
319  temp |= static_cast<uint64_t>(in.chipid) << STRIP_EF_RDO_CHIPID_lsb;
320  temp |= static_cast<uint64_t>(in.strip_num) << STRIP_EF_RDO_STRIP_NUM_lsb;
321  temp |= static_cast<uint64_t>(in.cluster_map) << STRIP_EF_RDO_CLUSTER_MAP_lsb;
322  temp |= static_cast<uint64_t>(in.id) << STRIP_EF_RDO_ID_lsb;
323  temp |= static_cast<uint64_t>(in.spare) << STRIP_EF_RDO_SPARE_lsb;
324  return temp;
325  }
326 
327  STRIP_EF_RDO fill_STRIP_EF_RDO (const uint64_t last, const uint64_t chipid, const uint64_t strip_num, const uint64_t cluster_map, const uint64_t id, const uint64_t spare) {
328  STRIP_EF_RDO temp;
329  temp.last = last;
330  temp.chipid = chipid;
331  temp.strip_num = strip_num;
332  temp.cluster_map = cluster_map;
333  temp.id = id;
334  temp.spare = spare;
335  return temp;
336  }
337 
338 
339 };
340 
341 #endif // EFTRACKING_FPGA_INTEGRATION_FPGADATAFORMATUTILITIES_H
FPGADataFormatUtilites::STRIP_EF_RDO_CLUSTER_MAP_lsb
const int STRIP_EF_RDO_CLUSTER_MAP_lsb
Definition: FPGADataFormatUtilities.h:265
FPGADataFormatUtilites::fill_EVT_FTR_w2
EVT_FTR_w2 fill_EVT_FTR_w2(const uint64_t error_flags)
Definition: FPGADataFormatUtilities.h:182
FPGADataFormatUtilites::STRIP_EF_RDO_SPARE_bits
const int STRIP_EF_RDO_SPARE_bits
Definition: FPGADataFormatUtilities.h:270
query_example.row
row
Definition: query_example.py:24
FPGADataFormatUtilites::EVT_FTR_w3::word_count
uint64_t word_count
Definition: FPGADataFormatUtilities.h:147
FPGADataFormatUtilites::M_HDR_W1_MODID_lsb
const int M_HDR_W1_MODID_lsb
Definition: FPGADataFormatUtilities.h:204
FPGADataFormatUtilites::STRIP_EF_RDO_ID_lsb
const int STRIP_EF_RDO_ID_lsb
Definition: FPGADataFormatUtilities.h:268
FPGADataFormatUtilites::PIXEL_EF_RDO::tot
unsigned int tot
Definition: FPGADataFormatUtilities.h:277
FPGADataFormatUtilites::EVT_HDR_FLAG
const int EVT_HDR_FLAG
Definition: FPGADataFormatUtilities.h:16
FPGADataFormatUtilites::PIXEL_EF_RDO::id
unsigned int id
Definition: FPGADataFormatUtilities.h:279
FPGADataFormatUtilites::EVT_HDR_w2
struct FPGADataFormatUtilites::EVT_HDR_w2 EVT_HDR_w2
FPGADataFormatUtilites::get_dataformat_EVT_FTR_w3
uint64_t get_dataformat_EVT_FTR_w3(const EVT_FTR_w3 in)
Definition: FPGADataFormatUtilities.h:167
FPGADataFormatUtilites::PIXEL_EF_RDO_LVL1_lsb
const int PIXEL_EF_RDO_LVL1_lsb
Definition: FPGADataFormatUtilities.h:246
FPGADataFormatUtilites::EVT_FTR_w2
struct FPGADataFormatUtilites::EVT_FTR_w2 EVT_FTR_w2
FPGADataFormatUtilites::EVT_HDR_W3_CRC_bits
const int EVT_HDR_W3_CRC_bits
Definition: FPGADataFormatUtilities.h:43
FPGADataFormatUtilites::EVT_FTR_W1_FLAG_bits
const int EVT_FTR_W1_FLAG_bits
Definition: FPGADataFormatUtilities.h:115
FPGADataFormatUtilites::EVT_HDR_W1_BCID_bits
const int EVT_HDR_W1_BCID_bits
Definition: FPGADataFormatUtilities.h:25
FPGADataFormatUtilites::PIXEL_EF_RDO::spare
unsigned int spare
Definition: FPGADataFormatUtilities.h:280
FPGADataFormatUtilites::EVT_HDR_w3
Definition: FPGADataFormatUtilities.h:60
FPGADataFormatUtilites::EVT_FTR_w1::spare
uint64_t spare
Definition: FPGADataFormatUtilities.h:138
FPGADataFormatUtilites::PIXEL_EF_RDO_COL_lsb
const int PIXEL_EF_RDO_COL_lsb
Definition: FPGADataFormatUtilities.h:240
FPGADataFormatUtilites::PIXEL_EF_RDO_TOT_bits
const int PIXEL_EF_RDO_TOT_bits
Definition: FPGADataFormatUtilities.h:242
FPGADataFormatUtilites::EVT_HDR_W3_STATUS_bits
const int EVT_HDR_W3_STATUS_bits
Definition: FPGADataFormatUtilities.h:40
FPGADataFormatUtilites::EVT_HDR_w3
struct FPGADataFormatUtilites::EVT_HDR_w3 EVT_HDR_w3
FPGADataFormatUtilites::EVT_HDR_W1_FLAG_lsb
const int EVT_HDR_W1_FLAG_lsb
Definition: FPGADataFormatUtilities.h:20
FPGADataFormatUtilites::EVT_HDR_w2::time
uint64_t time
Definition: FPGADataFormatUtilities.h:57
FPGADataFormatUtilites::STRIP_EF_RDO_LAST_bits
const int STRIP_EF_RDO_LAST_bits
Definition: FPGADataFormatUtilities.h:255
FPGADataFormatUtilites::EVT_FTR_w2::error_flags
uint64_t error_flags
Definition: FPGADataFormatUtilities.h:143
FPGADataFormatUtilites::PIXEL_EF_RDO_ID_bits
const int PIXEL_EF_RDO_ID_bits
Definition: FPGADataFormatUtilities.h:248
FPGADataFormatUtilites::STRIP_EF_RDO_ID_bits
const int STRIP_EF_RDO_ID_bits
Definition: FPGADataFormatUtilities.h:267
FPGADataFormatUtilites::PIXEL_EF_RDO::row
unsigned int row
Definition: FPGADataFormatUtilities.h:275
FPGADataFormatUtilites::STRIP_EF_RDO::cluster_map
unsigned int cluster_map
Definition: FPGADataFormatUtilities.h:311
FPGADataFormatUtilites::EVT_HDR_w2::runnumber
uint64_t runnumber
Definition: FPGADataFormatUtilities.h:56
FPGADataFormatUtilites::M_HDR_w3::modid
uint64_t modid
Definition: FPGADataFormatUtilities.h:211
FPGADataFormatUtilites::fill_EVT_HDR_w2
EVT_HDR_w2 fill_EVT_HDR_w2(const uint64_t &runnumber, const uint64_t &time)
Definition: FPGADataFormatUtilities.h:98
FPGADataFormatUtilites::STRIP_EF_RDO_STRIP_NUM_bits
const int STRIP_EF_RDO_STRIP_NUM_bits
Definition: FPGADataFormatUtilities.h:261
FPGADataFormatUtilites::M_HDR_w3
Definition: FPGADataFormatUtilities.h:209
FPGADataFormatUtilites::get_dataformat_EVT_HDR_w1
uint64_t get_dataformat_EVT_HDR_w1(const EVT_HDR_w1 &in)
Definition: FPGADataFormatUtilities.h:66
FPGADataFormatUtilites::get_dataformat_STRIP_EF_RDO
uint64_t get_dataformat_STRIP_EF_RDO(const STRIP_EF_RDO in)
Definition: FPGADataFormatUtilities.h:316
FPGADataFormatUtilites::EVT_HDR_W1_L0ID_bits
const int EVT_HDR_W1_L0ID_bits
Definition: FPGADataFormatUtilities.h:22
FPGADataFormatUtilites::fill_EVT_HDR_w1
EVT_HDR_w1 fill_EVT_HDR_w1(const uint64_t &flag, const uint64_t &l0id, const uint64_t &bcid, const uint64_t &spare)
Definition: FPGADataFormatUtilities.h:89
FPGADataFormatUtilites::M_HDR_W1_FLAG_bits
const int M_HDR_W1_FLAG_bits
Definition: FPGADataFormatUtilities.h:200
FPGADataFormatUtilites::EVT_HDR_W1_SPARE_lsb
const int EVT_HDR_W1_SPARE_lsb
Definition: FPGADataFormatUtilities.h:29
FPGADataFormatUtilites::STRIP_EF_RDO_SPARE_lsb
const int STRIP_EF_RDO_SPARE_lsb
Definition: FPGADataFormatUtilities.h:271
FPGADataFormatUtilites::EVT_HDR_W2_RUNNUMBER_bits
const int EVT_HDR_W2_RUNNUMBER_bits
Definition: FPGADataFormatUtilities.h:32
FPGADataFormatUtilites::STRIP_EF_RDO
Definition: FPGADataFormatUtilities.h:307
FPGADataFormatUtilites::PIXEL_EF_RDO
Definition: FPGADataFormatUtilities.h:273
FPGADataFormatUtilites::PIXEL_EF_RDO_SPARE_bits
const int PIXEL_EF_RDO_SPARE_bits
Definition: FPGADataFormatUtilities.h:251
FPGADataFormatUtilites::EVT_HDR_w2
Definition: FPGADataFormatUtilities.h:55
FPGADataFormatUtilites::fill_M_HDR_w3
M_HDR_w3 fill_M_HDR_w3(const uint64_t flag, const uint64_t modid, const uint64_t spare)
Definition: FPGADataFormatUtilities.h:224
FPGADataFormatUtilites::EVT_HDR_W1_FLAG_bits
const int EVT_HDR_W1_FLAG_bits
Definition: FPGADataFormatUtilities.h:19
FPGADataFormatUtilites::PIXEL_EF_RDO_ROW_bits
const int PIXEL_EF_RDO_ROW_bits
Definition: FPGADataFormatUtilities.h:236
FPGADataFormatUtilites::STRIP_EF_RDO::spare
unsigned int spare
Definition: FPGADataFormatUtilities.h:313
FPGADataFormatUtilites::PIXEL_EF_RDO_ROW_lsb
const int PIXEL_EF_RDO_ROW_lsb
Definition: FPGADataFormatUtilities.h:237
FPGADataFormatUtilites::fill_PIXEL_EF_RDO
PIXEL_EF_RDO fill_PIXEL_EF_RDO(const uint64_t last, const uint64_t row, const uint64_t col, const uint64_t tot, const uint64_t lvl1, const uint64_t id, const uint64_t spare)
Definition: FPGADataFormatUtilities.h:295
FPGADataFormatUtilites::M_HDR_w3::flag
uint64_t flag
Definition: FPGADataFormatUtilities.h:210
FPGADataFormatUtilites::EVT_FTR_W2_ERROR_FLAGS_lsb
const int EVT_FTR_W2_ERROR_FLAGS_lsb
Definition: FPGADataFormatUtilities.h:126
FPGADataFormatUtilites::fill_EVT_FTR_w1
EVT_FTR_w1 fill_EVT_FTR_w1(const uint64_t flag, const uint64_t spare, const uint64_t hdr_crc)
Definition: FPGADataFormatUtilities.h:174
FPGADataFormatUtilites::EVT_HDR_W2_TIME_lsb
const int EVT_HDR_W2_TIME_lsb
Definition: FPGADataFormatUtilities.h:36
FPGADataFormatUtilites::STRIP_EF_RDO_CHIPID_bits
const int STRIP_EF_RDO_CHIPID_bits
Definition: FPGADataFormatUtilities.h:258
FPGADataFormatUtilites::EVT_HDR_W2_TIME_bits
const int EVT_HDR_W2_TIME_bits
Definition: FPGADataFormatUtilities.h:35
FPGADataFormatUtilites::M_HDR_W1_FLAG_lsb
const int M_HDR_W1_FLAG_lsb
Definition: FPGADataFormatUtilities.h:201
FPGADataFormatUtilites::get_dataformat_M_HDR_w3
uint64_t get_dataformat_M_HDR_w3(const M_HDR_w3 in)
Definition: FPGADataFormatUtilities.h:216
master.flag
bool flag
Definition: master.py:29
FPGADataFormatUtilites::PIXEL_EF_RDO::last
unsigned int last
Definition: FPGADataFormatUtilities.h:274
FPGADataFormatUtilites::EVT_HDR_w1::l0id
uint64_t l0id
Definition: FPGADataFormatUtilities.h:50
FPGADataFormatUtilites::EVT_FTR_w1::hdr_crc
uint64_t hdr_crc
Definition: FPGADataFormatUtilities.h:139
FPGADataFormatUtilites::EVT_FTR_W3_WORD_COUNT_bits
const int EVT_FTR_W3_WORD_COUNT_bits
Definition: FPGADataFormatUtilities.h:129
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
FPGADataFormatUtilites::EVT_HDR_W3_STATUS_lsb
const int EVT_HDR_W3_STATUS_lsb
Definition: FPGADataFormatUtilities.h:41
FPGADataFormatUtilites::STRIP_EF_RDO::chipid
unsigned int chipid
Definition: FPGADataFormatUtilities.h:309
FPGADataFormatUtilites::EVT_HDR_W2_RUNNUMBER_lsb
const int EVT_HDR_W2_RUNNUMBER_lsb
Definition: FPGADataFormatUtilities.h:33
FPGADataFormatUtilites::EVT_HDR_w1
struct FPGADataFormatUtilites::EVT_HDR_w1 EVT_HDR_w1
FPGADataFormatUtilites::EVT_FTR_W1_SPARE_bits
const int EVT_FTR_W1_SPARE_bits
Definition: FPGADataFormatUtilities.h:118
FPGADataFormatUtilites::EVT_HDR_W1_L0ID_lsb
const int EVT_HDR_W1_L0ID_lsb
Definition: FPGADataFormatUtilities.h:23
FPGADataFormatUtilites::EVT_HDR_w1
Definition: FPGADataFormatUtilities.h:48
FPGADataFormatUtilites::EVT_FTR_W3_WORD_COUNT_lsb
const int EVT_FTR_W3_WORD_COUNT_lsb
Definition: FPGADataFormatUtilities.h:130
FPGADataFormatUtilites::PIXEL_EF_RDO_LAST_bits
const int PIXEL_EF_RDO_LAST_bits
Definition: FPGADataFormatUtilities.h:233
FPGADataFormatUtilites::fill_EVT_FTR_w3
EVT_FTR_w3 fill_EVT_FTR_w3(const uint64_t word_count, const uint64_t crc)
Definition: FPGADataFormatUtilities.h:188
FPGADataFormatUtilites::EVT_HDR_LWORDS
const int EVT_HDR_LWORDS
Definition: FPGADataFormatUtilities.h:13
FPGADataFormatUtilites::EVT_HDR_w1::spare
uint64_t spare
Definition: FPGADataFormatUtilities.h:52
DeMoScan.runnumber
runnumber
Definition: DeMoScan.py:266
FPGADataFormatUtilites::PIXEL_EF_RDO_LVL1_bits
const int PIXEL_EF_RDO_LVL1_bits
Definition: FPGADataFormatUtilities.h:245
FPGADataFormatUtilites::M_HDR_w3
struct FPGADataFormatUtilites::M_HDR_w3 M_HDR_w3
FPGADataFormatUtilites::EVT_FTR_w3
Definition: FPGADataFormatUtilities.h:146
FPGADataFormatUtilites::STRIP_EF_RDO_CHIPID_lsb
const int STRIP_EF_RDO_CHIPID_lsb
Definition: FPGADataFormatUtilities.h:259
FPGADataFormatUtilites::EVT_FTR_W3_CRC_lsb
const int EVT_FTR_W3_CRC_lsb
Definition: FPGADataFormatUtilities.h:133
FPGADataFormatUtilites::fill_STRIP_EF_RDO
STRIP_EF_RDO fill_STRIP_EF_RDO(const uint64_t last, const uint64_t chipid, const uint64_t strip_num, const uint64_t cluster_map, const uint64_t id, const uint64_t spare)
Definition: FPGADataFormatUtilities.h:327
FPGADataFormatUtilites::EVT_FTR_w1
Definition: FPGADataFormatUtilities.h:136
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:227
FPGADataFormatUtilites::get_dataformat_EVT_HDR_w2
uint64_t get_dataformat_EVT_HDR_w2(const EVT_HDR_w2 &in)
Definition: FPGADataFormatUtilities.h:75
FPGADataFormatUtilites::get_dataformat_PIXEL_EF_RDO
uint64_t get_dataformat_PIXEL_EF_RDO(const PIXEL_EF_RDO in)
Definition: FPGADataFormatUtilities.h:283
FPGADataFormatUtilites::EVT_FTR_W1_HDR_CRC_bits
const int EVT_FTR_W1_HDR_CRC_bits
Definition: FPGADataFormatUtilities.h:121
xAOD::bcid
setEventNumber setTimeStamp bcid
Definition: EventInfo_v1.cxx:133
FPGADataFormatUtilites::PIXEL_EF_RDO::col
unsigned int col
Definition: FPGADataFormatUtilities.h:276
FPGADataFormatUtilites::get_dataformat_EVT_FTR_w2
uint64_t get_dataformat_EVT_FTR_w2(const EVT_FTR_w2 in)
Definition: FPGADataFormatUtilities.h:161
FPGADataFormatUtilites::EVT_HDR_W3_CRC_lsb
const int EVT_HDR_W3_CRC_lsb
Definition: FPGADataFormatUtilities.h:44
FPGADataFormatUtilites::PIXEL_EF_RDO_ID_lsb
const int PIXEL_EF_RDO_ID_lsb
Definition: FPGADataFormatUtilities.h:249
FPGADataFormatUtilites
Definition: FPGADataFormatUtilities.h:12
query_example.col
col
Definition: query_example.py:7
FPGADataFormatUtilites::EVT_HDR_W1_SPARE_bits
const int EVT_HDR_W1_SPARE_bits
Definition: FPGADataFormatUtilities.h:28
FPGADataFormatUtilites::EVT_HDR_w3::crc
uint64_t crc
Definition: FPGADataFormatUtilities.h:62
FPGADataFormatUtilites::EVT_FTR_W1_SPARE_lsb
const int EVT_FTR_W1_SPARE_lsb
Definition: FPGADataFormatUtilities.h:119
FPGADataFormatUtilites::STRIP_EF_RDO::strip_num
unsigned int strip_num
Definition: FPGADataFormatUtilities.h:310
FPGADataFormatUtilites::M_HDR_w3::spare
uint64_t spare
Definition: FPGADataFormatUtilities.h:212
FPGADataFormatUtilites::STRIP_EF_RDO_STRIP_NUM_lsb
const int STRIP_EF_RDO_STRIP_NUM_lsb
Definition: FPGADataFormatUtilities.h:262
FPGADataFormatUtilites::PIXEL_EF_RDO_SPARE_lsb
const int PIXEL_EF_RDO_SPARE_lsb
Definition: FPGADataFormatUtilities.h:252
FPGADataFormatUtilites::EVT_HDR_W1_BCID_lsb
const int EVT_HDR_W1_BCID_lsb
Definition: FPGADataFormatUtilities.h:26
FPGADataFormatUtilites::PIXEL_EF_RDO::lvl1
unsigned int lvl1
Definition: FPGADataFormatUtilities.h:278
FPGADataFormatUtilites::STRIP_EF_RDO::last
unsigned int last
Definition: FPGADataFormatUtilities.h:308
FPGADataFormatUtilites::EVT_FTR_w3::crc
uint64_t crc
Definition: FPGADataFormatUtilities.h:148
FPGADataFormatUtilites::M_HDR_W1_SPARE_lsb
const int M_HDR_W1_SPARE_lsb
Definition: FPGADataFormatUtilities.h:207
FPGADataFormatUtilites::EVT_FTR_W2_ERROR_FLAGS_bits
const int EVT_FTR_W2_ERROR_FLAGS_bits
Definition: FPGADataFormatUtilities.h:125
FPGADataFormatUtilites::STRIP_EF_RDO::id
unsigned int id
Definition: FPGADataFormatUtilities.h:312
FPGADataFormatUtilites::PIXEL_EF_RDO
struct FPGADataFormatUtilites::PIXEL_EF_RDO PIXEL_EF_RDO
FPGADataFormatUtilites::EVT_FTR_w3
struct FPGADataFormatUtilites::EVT_FTR_w3 EVT_FTR_w3
FPGADataFormatUtilites::M_HDR_W1_MODID_bits
const int M_HDR_W1_MODID_bits
Definition: FPGADataFormatUtilities.h:203
FPGADataFormatUtilites::EVT_HDR_w1::flag
uint64_t flag
Definition: FPGADataFormatUtilities.h:49
FPGADataFormatUtilites::get_dataformat_EVT_HDR_w3
uint64_t get_dataformat_EVT_HDR_w3(const EVT_HDR_w3 &in)
Definition: FPGADataFormatUtilities.h:82
FPGADataFormatUtilites::EVT_FTR_w1::flag
uint64_t flag
Definition: FPGADataFormatUtilities.h:137
FPGADataFormatUtilites::M_HDR_W1_SPARE_bits
const int M_HDR_W1_SPARE_bits
Definition: FPGADataFormatUtilities.h:206
FPGADataFormatUtilites::PIXEL_EF_RDO_COL_bits
const int PIXEL_EF_RDO_COL_bits
Definition: FPGADataFormatUtilities.h:239
FPGADataFormatUtilites::STRIP_EF_RDO
struct FPGADataFormatUtilites::STRIP_EF_RDO STRIP_EF_RDO
FPGADataFormatUtilites::PIXEL_EF_RDO_LAST_lsb
const int PIXEL_EF_RDO_LAST_lsb
Definition: FPGADataFormatUtilities.h:234
FPGADataFormatUtilites::M_HDR_FLAG
const int M_HDR_FLAG
Definition: FPGADataFormatUtilities.h:197
merge.status
status
Definition: merge.py:17
FPGADataFormatUtilites::EVT_FTR_w2
Definition: FPGADataFormatUtilities.h:142
FPGADataFormatUtilites::EVT_FTR_W3_CRC_bits
const int EVT_FTR_W3_CRC_bits
Definition: FPGADataFormatUtilities.h:132
FPGADataFormatUtilites::EVT_FTR_FLAG
const int EVT_FTR_FLAG
Definition: FPGADataFormatUtilities.h:114
FPGADataFormatUtilites::EVT_FTR_W1_HDR_CRC_lsb
const int EVT_FTR_W1_HDR_CRC_lsb
Definition: FPGADataFormatUtilities.h:122
FPGADataFormatUtilites::STRIP_EF_RDO_LAST_lsb
const int STRIP_EF_RDO_LAST_lsb
Definition: FPGADataFormatUtilities.h:256
FPGADataFormatUtilites::EVT_FTR_w1
struct FPGADataFormatUtilites::EVT_FTR_w1 EVT_FTR_w1
FPGADataFormatUtilites::get_dataformat_EVT_FTR_w1
uint64_t get_dataformat_EVT_FTR_w1(const EVT_FTR_w1 in)
Definition: FPGADataFormatUtilities.h:153
FPGADataFormatUtilites::EVT_HDR_w3::status
uint64_t status
Definition: FPGADataFormatUtilities.h:61
FPGADataFormatUtilites::fill_EVT_HDR_w3
EVT_HDR_w3 fill_EVT_HDR_w3(const uint64_t &status, const uint64_t &crc)
Definition: FPGADataFormatUtilities.h:105
FPGADataFormatUtilites::EVT_FTR_W1_FLAG_lsb
const int EVT_FTR_W1_FLAG_lsb
Definition: FPGADataFormatUtilities.h:116
FPGADataFormatUtilites::EVT_HDR_w1::bcid
uint64_t bcid
Definition: FPGADataFormatUtilities.h:51
FPGADataFormatUtilites::STRIP_EF_RDO_CLUSTER_MAP_bits
const int STRIP_EF_RDO_CLUSTER_MAP_bits
Definition: FPGADataFormatUtilities.h:264
FPGADataFormatUtilites::PIXEL_EF_RDO_TOT_lsb
const int PIXEL_EF_RDO_TOT_lsb
Definition: FPGADataFormatUtilities.h:243