Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | List of all members
TestVectorTool Class Reference

#include <TestVectorTool.h>

Inheritance diagram for TestVectorTool:
Collaboration diagram for TestVectorTool:

Public Member Functions

StatusCode initialize () override
 
StatusCode prepareTV (const std::string &inputFile, std::vector< uint64_t > &testVector) const
 Prepare test vector in the form of std::vector<uint64_t>, can be either .txt or .bin. More...
 
StatusCode compare (const std::vector< uint64_t > &tv_1, const std::vector< uint64_t > &tv_2) const
 Compare two TV in the form of std::vector<uint64_t> More...
 
StatusCode compare (const EFTrackingFPGAIntegration::TVHolder &tvHolder, const std::vector< uint64_t > &tv_comp) const
 Compare two TV in the form of TVHolder and std::vector<uint64_t> More...
 
StatusCode encodePixelL2G (const xAOD::PixelClusterContainer *pixelClusters, std::vector< uint64_t > &encodedData) const
 Encode xAOD pixel cluster to L2G EDM TV. More...
 
StatusCode encodeStripL2G (const xAOD::StripClusterContainer *stripClusters, std::vector< uint64_t > &encodedData) const
 Encode xAOD strip cluster to L2G EDM TV. More...
 

Detailed Description

Definition at line 46 of file TestVectorTool.h.

Member Function Documentation

◆ compare() [1/2]

StatusCode TestVectorTool::compare ( const EFTrackingFPGAIntegration::TVHolder tvHolder,
const std::vector< uint64_t > &  tv_comp 
) const

Compare two TV in the form of TVHolder and std::vector<uint64_t>

Parameters
tvHolderThe TVHolder object, the refTV in the TVHolder will be compared to the output
tv_compThe vector to be compared to the refTV

Definition at line 119 of file TestVectorTool.cxx.

120 {
121  ATH_MSG_DEBUG("Comparing the FPGA output to the reference vector for " << tvHolder.name);
122 
123  std::vector<uint64_t>::size_type size = -1;
124 
125  if (tvHolder.refTV.size() != tv_comp.size())
126  {
127  ATH_MSG_WARNING("The two test vectors have different sizes: " << tvHolder.refTV.size() << " and " << tv_comp.size());
128  // Use the shorter one for comparison
129  size = tvHolder.refTV.size() < tv_comp.size() ? tvHolder.refTV.size() : tv_comp.size();
130  }
131  else
132  {
133  ATH_MSG_DEBUG("The two test vectors have the same size: " << tvHolder.refTV.size());
134  size = tvHolder.refTV.size();
135  }
136 
137  bool pass = true;
138  for (std::vector<uint64_t>::size_type i = 0; i < size; i++)
139  {
140  if (tvHolder.refTV[i] != tv_comp[i])
141  {
142  ATH_MSG_DEBUG("The two test vectors are different at index " << i);
143  pass = false;
144  }
145  }
146 
147  if (pass)
148  {
149  ATH_MSG_DEBUG(tvHolder.name << " FPGA output matches the reference vector");
150  }
151  else
152  {
153  ATH_MSG_WARNING(tvHolder.name << " FPGA output does not match the reference vector");
154  }
155 
156  return StatusCode::SUCCESS;
157 }

◆ compare() [2/2]

StatusCode TestVectorTool::compare ( const std::vector< uint64_t > &  tv_1,
const std::vector< uint64_t > &  tv_2 
) const

Compare two TV in the form of std::vector<uint64_t>

Definition at line 79 of file TestVectorTool.cxx.

80 {
81  ATH_MSG_DEBUG("Comparing two test vectors");
82 
83  std::vector<uint64_t>::size_type size = -1;
84 
85  if (tv_1.size() != tv_2.size())
86  {
87  ATH_MSG_WARNING("The two test vectors have different sizes: " << tv_1.size() << " and " << tv_2.size());
88  // Use the shorter one for comparison
89  size = tv_1.size() < tv_2.size() ? tv_1.size() : tv_2.size();
90  }
91  else
92  {
93  ATH_MSG_DEBUG("The two test vectors have the same size: " << tv_1.size());
94  size = tv_1.size();
95  }
96 
97  bool pass = true;
98  for (std::vector<uint64_t>::size_type i = 0; i < size; i++)
99  {
100  if (tv_1[i] != tv_2[i])
101  {
102  ATH_MSG_DEBUG("The two test vectors are different at index " << i);
103  pass = false;
104  }
105  }
106 
107  if (pass)
108  {
109  ATH_MSG_DEBUG("The two test vectors are the same");
110  }
111  else
112  {
113  ATH_MSG_WARNING("The two test vectors are different!");
114  }
115 
116  return StatusCode::SUCCESS;
117 }

◆ encodePixelL2G()

StatusCode TestVectorTool::encodePixelL2G ( const xAOD::PixelClusterContainer pixelClusters,
std::vector< uint64_t > &  encodedData 
) const

Encode xAOD pixel cluster to L2G EDM TV.

Parameters
pixelClustersThe xAOD::PixelClusterContainer object
encodedDataThe encoded data in the form of std::vector<uint64_t>

Definition at line 159 of file TestVectorTool.cxx.

160 {
161  ATH_MSG_DEBUG("Encoding xAOD pixel clusters to L2G EDM TV");
162 
163  // Fill the event header
164  // Event header w1
166  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EVT_HDR_w1(header_w1));
167 
168  // Event header w2
169  auto header_w2 = FPGADataFormatUtilities::fill_EVT_HDR_w2(242000, 0);
170  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EVT_HDR_w2(header_w2));
171 
172  // Event header w3
173  auto header_w3 = FPGADataFormatUtilities::fill_EVT_HDR_w3(0, 0);
174  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EVT_HDR_w3(header_w3));
175 
176  // L2G conetent
177  // Loop over the pixel clusters
178  unsigned int isLast = 0;
179  for (unsigned int i = 0; i < pixelClusters->size(); i++)
180  {
181  // Pixel cluster w1
183  pixelClusters->at(i)->identifierHash(),
184  0);
185  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EDM_PIXELCLUSTER_w1(pixelCluster_w1));
186 
187  // Pixel cluster w2
188  auto pixelCluster_w2 = FPGADataFormatUtilities::fill_EDM_PIXELCLUSTER_w2(pixelClusters->at(i)->identifier());
189  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EDM_PIXELCLUSTER_w2(pixelCluster_w2));
190 
191  // Determine the size of rdo list and retrieve accordingly
192  uint64_t rdoList[4] = {0, 0, 0, 0}; // Current dataformat only supports 4 RDOs
193 
194  unsigned int rdoListSize = pixelClusters->at(i)->rdoList().size();
195  rdoListSize = rdoListSize > 4 ? 4 : rdoListSize; // restrict to 4 RDOs if more
196  for (unsigned int j = 0; j < rdoListSize; j++)
197  {
198  rdoList[j] = pixelClusters->at(i)->rdoList().at(j).get_compact();
199  }
200 
201  // Pixel cluster w3
202  auto pixelCluster_w3 = FPGADataFormatUtilities::fill_EDM_PIXELCLUSTER_w3(rdoList[0]);
203  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EDM_PIXELCLUSTER_w3(pixelCluster_w3));
204 
205  // Pixel cluster w4
206  auto pixelCluster_w4 = FPGADataFormatUtilities::fill_EDM_PIXELCLUSTER_w4(rdoList[1]);
207  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EDM_PIXELCLUSTER_w4(pixelCluster_w4));
208 
209  // Pixel cluster w5
210  auto pixelCluster_w5 = FPGADataFormatUtilities::fill_EDM_PIXELCLUSTER_w5(rdoList[2]);
211  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EDM_PIXELCLUSTER_w5(pixelCluster_w5));
212 
213  // Pixel cluster w6
214  auto pixelCluster_w6 = FPGADataFormatUtilities::fill_EDM_PIXELCLUSTER_w6(rdoList[3]);
215  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EDM_PIXELCLUSTER_w6(pixelCluster_w6));
216 
217  // Pixel cluster w7
218  auto pixelCluster_w7 = FPGADataFormatUtilities::fill_EDM_PIXELCLUSTER_w7(pixelClusters->at(i)->localPosition<2>()(0, 0),
219  pixelClusters->at(i)->localPosition<2>()(1, 0),
220  pixelClusters->at(i)->channelsInPhi(),
221  pixelClusters->at(i)->channelsInEta(),
222  pixelClusters->at(i)->widthInEta(),
223  0);
224  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EDM_PIXELCLUSTER_w7(pixelCluster_w7));
225 
226  // Pixel cluster w8
227  auto pixelCluster_w8 = FPGADataFormatUtilities::fill_EDM_PIXELCLUSTER_w8(pixelClusters->at(i)->localCovariance<2>()(0, 0),
228  pixelClusters->at(i)->localCovariance<2>()(1, 1),
229  pixelClusters->at(i)->omegaX(),
230  pixelClusters->at(i)->omegaY(),
231  0);
232  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EDM_PIXELCLUSTER_w8(pixelCluster_w8));
233 
234  // Pixel cluster w9
235  auto pixelCluster_w9 = FPGADataFormatUtilities::fill_EDM_PIXELCLUSTER_w9(pixelClusters->at(i)->globalPosition()[0],
236  pixelClusters->at(i)->globalPosition()[1],
237  0);
238  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EDM_PIXELCLUSTER_w9(pixelCluster_w9));
239 
240  // Pixel cluster w10
241  isLast = i == (pixelClusters->size() - 1) ? 1 : 0;
242  auto pixelCluster_w10 = FPGADataFormatUtilities::fill_EDM_PIXELCLUSTER_w10(pixelClusters->at(i)->globalPosition()[2],
243  pixelClusters->at(i)->totalToT(),
244  isLast,
245  0);
246  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EDM_PIXELCLUSTER_w10(pixelCluster_w10));
247  }
248 
249  // Fill the event footer
250  // Event footer w1
252  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EVT_FTR_w1(footer_w1));
253 
254  // Event footer w2
255  auto footer_w2 = FPGADataFormatUtilities::fill_EVT_FTR_w2(0);
256  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EVT_FTR_w2(footer_w2));
257 
258  // Event footer w3
259  auto footer_w3 = FPGADataFormatUtilities::fill_EVT_FTR_w3(encodedData.size(), 44939973);
260  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EVT_FTR_w3(footer_w3));
261 
262  return StatusCode::SUCCESS;
263 }

◆ encodeStripL2G()

StatusCode TestVectorTool::encodeStripL2G ( const xAOD::StripClusterContainer stripClusters,
std::vector< uint64_t > &  encodedData 
) const

Encode xAOD strip cluster to L2G EDM TV.

Parameters
stripClustersThe xAOD::StripClusterContainer object
encodedDataThe encoded data in the form of std::vector<uint64_t>

Definition at line 265 of file TestVectorTool.cxx.

266 {
267  ATH_MSG_DEBUG("Encoding xAOD strip clusters to L2G EDM TV");
268 
269  // Fill the event header
270  // Event header w1
272  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EVT_HDR_w1(header_w1));
273 
274  // Event header w2
275  auto header_w2 = FPGADataFormatUtilities::fill_EVT_HDR_w2(242000, 0);
276  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EVT_HDR_w2(header_w2));
277 
278  // Event header w3
279  auto header_w3 = FPGADataFormatUtilities::fill_EVT_HDR_w3(0, 0);
280  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EVT_HDR_w3(header_w3));
281 
282  // L2G conetent
283  // Loop over the strip clusters
284  unsigned int isLast = 0;
285  for (unsigned int i = 0; i < stripClusters->size(); i++)
286  {
287  // Strip cluster w1
289  stripClusters->at(i)->identifierHash(),
290  0);
291  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EDM_STRIPCLUSTER_w1(stripCluster_w1));
292 
293  // Strip cluster w2
294  auto stripCluster_w2 = FPGADataFormatUtilities::fill_EDM_STRIPCLUSTER_w2(stripClusters->at(i)->identifier());
295  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EDM_STRIPCLUSTER_w2(stripCluster_w2));
296 
297  // Determine the size of rdo list and retrieve accordingly
298  uint64_t rdoList[4] = {0, 0, 0, 0}; // Current dataformat only supports 4 RDOs
299 
300  unsigned int rdoListSize = stripClusters->at(i)->rdoList().size();
301  rdoListSize = rdoListSize > 4 ? 4 : rdoListSize; // restrict to 4 RDOs if more
302  for (unsigned int j = 0; j < rdoListSize; j++)
303  {
304  rdoList[j] = stripClusters->at(i)->rdoList().at(j).get_compact();
305  }
306 
307  // Strip cluster w3
308  auto stripCluster_w3 = FPGADataFormatUtilities::fill_EDM_STRIPCLUSTER_w3(rdoList[0]);
309  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EDM_STRIPCLUSTER_w3(stripCluster_w3));
310 
311  // Strip cluster w4
312  auto stripCluster_w4 = FPGADataFormatUtilities::fill_EDM_STRIPCLUSTER_w4(rdoList[1]);
313  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EDM_STRIPCLUSTER_w4(stripCluster_w4));
314 
315  // Strip cluster w5
316  auto stripCluster_w5 = FPGADataFormatUtilities::fill_EDM_STRIPCLUSTER_w5(rdoList[2]);
317  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EDM_STRIPCLUSTER_w5(stripCluster_w5));
318 
319  // Strip cluster w6
320  auto stripCluster_w6 = FPGADataFormatUtilities::fill_EDM_STRIPCLUSTER_w6(rdoList[3]);
321  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EDM_STRIPCLUSTER_w6(stripCluster_w6));
322 
323  // Strip cluster w7
324  auto stripCluster_w7 = FPGADataFormatUtilities::fill_EDM_STRIPCLUSTER_w7(stripClusters->at(i)->localPosition<1>()(0, 0),
325  0, // Strip cluster has no local position y
326  stripClusters->at(i)->localCovariance<1>()(0, 0),
327  0);
328  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EDM_STRIPCLUSTER_w7(stripCluster_w7));
329 
330  // Strip cluster w8
331  auto stripCluster_w8 = FPGADataFormatUtilities::fill_EDM_STRIPCLUSTER_w8(stripClusters->at(i)->globalPosition()[0],
332  stripClusters->at(i)->globalPosition()[1],
333  stripClusters->at(i)->channelsInPhi(),
334  0);
335  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EDM_STRIPCLUSTER_w8(stripCluster_w8));
336 
337  // Strip cluster w9
338  isLast = i == (stripClusters->size() - 1) ? 1 : 0;
339  auto stripCluster_w9 = FPGADataFormatUtilities::fill_EDM_STRIPCLUSTER_w9(stripClusters->at(i)->globalPosition()[2],
340  isLast, i, 0);
341  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EDM_STRIPCLUSTER_w9(stripCluster_w9));
342  }
343 
344  // Fill the event footer
345  // Event footer w1
347  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EVT_FTR_w1(footer_w1));
348 
349  // Event footer w2
350  auto footer_w2 = FPGADataFormatUtilities::fill_EVT_FTR_w2(0);
351  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EVT_FTR_w2(footer_w2));
352 
353  // Event footer w3
354  // 44939973 in the crc field is a dummy value for now
355  auto footer_w3 = FPGADataFormatUtilities::fill_EVT_FTR_w3(encodedData.size(), 44939973);
356  encodedData.push_back(FPGADataFormatUtilities::get_dataformat_EVT_FTR_w3(footer_w3));
357 
358  return StatusCode::SUCCESS;
359 }

◆ initialize()

StatusCode TestVectorTool::initialize ( )
override

Definition at line 15 of file TestVectorTool.cxx.

16 {
17  ATH_MSG_INFO("Initializing TestVectorTool tool");
18 
19  return StatusCode::SUCCESS;
20 }

◆ prepareTV()

StatusCode TestVectorTool::prepareTV ( const std::string &  inputFile,
std::vector< uint64_t > &  testVector 
) const

Prepare test vector in the form of std::vector<uint64_t>, can be either .txt or .bin.

Parameters
inputFileThe input file name to be opened
testVectorThe vector of uint64_t to be filled

Definition at line 22 of file TestVectorTool.cxx.

23 {
24  ATH_MSG_DEBUG("Preparing input test vector from " << inputFile);
25 
26  // Check if the input file ends with .txt or .bin
27  if (inputFile.find(".txt") == std::string::npos && inputFile.find(".bin") == std::string::npos)
28  {
29  ATH_MSG_ERROR("Input TV file must be either .txt or .bin");
30  return StatusCode::FAILURE;
31  }
32 
33  // clear the test vector before reading
34  testVector.clear();
35 
36  // if .txt
37  if (inputFile.find(".txt") != std::string::npos)
38  {
39  std::ifstream file(inputFile, std::ios::in);
40  if (!file.is_open())
41  {
42  ATH_MSG_ERROR("Cannot open file " << inputFile);
43  return StatusCode::FAILURE;
44  }
45 
46  uint64_t cache;
47  while (file >> std::hex >> cache)
48  {
49  testVector.push_back(cache);
50  }
51 
52  // close the file
53  file.close();
54  }
55  else
56  {
57  std::ifstream file(inputFile, std::ios::binary);
58  if (!file.is_open())
59  {
60  ATH_MSG_ERROR("Cannot open input TV file " << inputFile);
61  return StatusCode::FAILURE;
62  }
63 
64  uint64_t cache;
65  while (file.read(reinterpret_cast<char *>(&cache), sizeof(uint64_t)))
66  {
67  // Reverse the byte order
68  cache = __builtin_bswap64(cache);
69  testVector.push_back(cache);
70  }
71 
72  // close the file
73  file.close();
74  }
75 
76  return StatusCode::SUCCESS;
77 }

The documentation for this class was generated from the following files:
EFTrackingFPGAIntegration::TVHolder::refTV
std::vector< uint64_t > refTV
Definition: TestVectorTool.h:34
FPGADataFormatUtilities::fill_EDM_STRIPCLUSTER_w5
EDM_STRIPCLUSTER_w5 fill_EDM_STRIPCLUSTER_w5(const uint64_t &rdo_list_w3)
Definition: FPGADataFormatUtilities.h:1579
FPGADataFormatUtilities::get_dataformat_EDM_PIXELCLUSTER_w4
uint64_t get_dataformat_EDM_PIXELCLUSTER_w4(const EDM_PIXELCLUSTER_w4 &in)
Definition: FPGADataFormatUtilities.h:1967
FPGADataFormatUtilities::get_dataformat_EVT_HDR_w3
uint64_t get_dataformat_EVT_HDR_w3(const EVT_HDR_w3 &in)
Definition: FPGADataFormatUtilities.h:112
FPGADataFormatUtilities::get_dataformat_EVT_FTR_w2
uint64_t get_dataformat_EVT_FTR_w2(const EVT_FTR_w2 &in)
Definition: FPGADataFormatUtilities.h:248
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
FPGADataFormatUtilities::fill_EDM_PIXELCLUSTER_w1
EDM_PIXELCLUSTER_w1 fill_EDM_PIXELCLUSTER_w1(const uint64_t &flag, const uint64_t &id_hash, const uint64_t &spare)
Definition: FPGADataFormatUtilities.h:2023
FPGADataFormatUtilities::get_dataformat_EDM_STRIPCLUSTER_w5
uint64_t get_dataformat_EDM_STRIPCLUSTER_w5(const EDM_STRIPCLUSTER_w5 &in)
Definition: FPGADataFormatUtilities.h:1514
FPGADataFormatUtilities::get_dataformat_EDM_STRIPCLUSTER_w1
uint64_t get_dataformat_EDM_STRIPCLUSTER_w1(const EDM_STRIPCLUSTER_w1 &in)
Definition: FPGADataFormatUtilities.h:1488
FPGADataFormatUtilities::EVT_HDR_FLAG
const int EVT_HDR_FLAG
Definition: FPGADataFormatUtilities.h:19
FPGADataFormatUtilities::fill_EDM_STRIPCLUSTER_w9
EDM_STRIPCLUSTER_w9 fill_EDM_STRIPCLUSTER_w9(const double &globalposition_z, const uint64_t &lastword, const uint64_t &index, const uint64_t &spare)
Definition: FPGADataFormatUtilities.h:1609
FPGADataFormatUtilities::get_dataformat_EDM_PIXELCLUSTER_w1
uint64_t get_dataformat_EDM_PIXELCLUSTER_w1(const EDM_PIXELCLUSTER_w1 &in)
Definition: FPGADataFormatUtilities.h:1947
FPGADataFormatUtilities::fill_EDM_STRIPCLUSTER_w4
EDM_STRIPCLUSTER_w4 fill_EDM_STRIPCLUSTER_w4(const uint64_t &rdo_list_w2)
Definition: FPGADataFormatUtilities.h:1573
FPGADataFormatUtilities::get_dataformat_EDM_STRIPCLUSTER_w3
uint64_t get_dataformat_EDM_STRIPCLUSTER_w3(const EDM_STRIPCLUSTER_w3 &in)
Definition: FPGADataFormatUtilities.h:1502
FPGADataFormatUtilities::get_dataformat_EDM_STRIPCLUSTER_w7
uint64_t get_dataformat_EDM_STRIPCLUSTER_w7(const EDM_STRIPCLUSTER_w7 &in)
Definition: FPGADataFormatUtilities.h:1526
FPGADataFormatUtilities::get_dataformat_EDM_PIXELCLUSTER_w2
uint64_t get_dataformat_EDM_PIXELCLUSTER_w2(const EDM_PIXELCLUSTER_w2 &in)
Definition: FPGADataFormatUtilities.h:1955
FPGADataFormatUtilities::get_dataformat_EDM_PIXELCLUSTER_w7
uint64_t get_dataformat_EDM_PIXELCLUSTER_w7(const EDM_PIXELCLUSTER_w7 &in)
Definition: FPGADataFormatUtilities.h:1985
FPGADataFormatUtilities::fill_EVT_HDR_w2
EVT_HDR_w2 fill_EVT_HDR_w2(const uint64_t &runnumber, const uint64_t &time)
Definition: FPGADataFormatUtilities.h:128
FPGADataFormatUtilities::fill_EVT_FTR_w3
EVT_FTR_w3 fill_EVT_FTR_w3(const uint64_t &word_count, const uint64_t &crc)
Definition: FPGADataFormatUtilities.h:275
EFTrackingFPGAIntegration::TVHolder::name
std::string name
Definition: TestVectorTool.h:32
FPGADataFormatUtilities::get_dataformat_EDM_STRIPCLUSTER_w8
uint64_t get_dataformat_EDM_STRIPCLUSTER_w8(const EDM_STRIPCLUSTER_w8 &in)
Definition: FPGADataFormatUtilities.h:1535
FPGADataFormatUtilities::fill_EDM_PIXELCLUSTER_w3
EDM_PIXELCLUSTER_w3 fill_EDM_PIXELCLUSTER_w3(const uint64_t &rdo_list_w1)
Definition: FPGADataFormatUtilities.h:2037
FPGADataFormatUtilities::EDM_STRIPCLUSTER_FLAG
const int EDM_STRIPCLUSTER_FLAG
Definition: FPGADataFormatUtilities.h:1285
FPGADataFormatUtilities::fill_EDM_PIXELCLUSTER_w10
EDM_PIXELCLUSTER_w10 fill_EDM_PIXELCLUSTER_w10(const double &globalposition_z, const uint64_t &total_tot, const uint64_t &lastword, const uint64_t &spare)
Definition: FPGADataFormatUtilities.h:2090
FPGADataFormatUtilities::fill_EDM_PIXELCLUSTER_w6
EDM_PIXELCLUSTER_w6 fill_EDM_PIXELCLUSTER_w6(const uint64_t &rdo_list_w4)
Definition: FPGADataFormatUtilities.h:2055
FPGADataFormatUtilities::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:119
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
FPGADataFormatUtilities::fill_EDM_PIXELCLUSTER_w5
EDM_PIXELCLUSTER_w5 fill_EDM_PIXELCLUSTER_w5(const uint64_t &rdo_list_w3)
Definition: FPGADataFormatUtilities.h:2049
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
FPGADataFormatUtilities::get_dataformat_EVT_HDR_w2
uint64_t get_dataformat_EVT_HDR_w2(const EVT_HDR_w2 &in)
Definition: FPGADataFormatUtilities.h:105
FPGADataFormatUtilities::get_dataformat_EDM_PIXELCLUSTER_w8
uint64_t get_dataformat_EDM_PIXELCLUSTER_w8(const EDM_PIXELCLUSTER_w8 &in)
Definition: FPGADataFormatUtilities.h:1996
FPGADataFormatUtilities::get_dataformat_EVT_FTR_w3
uint64_t get_dataformat_EVT_FTR_w3(const EVT_FTR_w3 &in)
Definition: FPGADataFormatUtilities.h:254
CaloCondBlobAlgs_fillNoiseFromASCII.inputFile
string inputFile
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:17
FPGADataFormatUtilities::EVT_FTR_FLAG
const int EVT_FTR_FLAG
Definition: FPGADataFormatUtilities.h:175
FPGADataFormatUtilities::fill_EDM_PIXELCLUSTER_w9
EDM_PIXELCLUSTER_w9 fill_EDM_PIXELCLUSTER_w9(const double &globalposition_x, const double &globalposition_y, const uint64_t &spare)
Definition: FPGADataFormatUtilities.h:2082
lumiFormat.i
int i
Definition: lumiFormat.py:85
FPGADataFormatUtilities::fill_EDM_STRIPCLUSTER_w7
EDM_STRIPCLUSTER_w7 fill_EDM_STRIPCLUSTER_w7(const double &localposition_x, const double &localposition_y, const double &localcovariance_xx, const uint64_t &spare)
Definition: FPGADataFormatUtilities.h:1591
FPGADataFormatUtilities::fill_EDM_STRIPCLUSTER_w6
EDM_STRIPCLUSTER_w6 fill_EDM_STRIPCLUSTER_w6(const uint64_t &rdo_list_w4)
Definition: FPGADataFormatUtilities.h:1585
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
file
TFile * file
Definition: tile_monitor.h:29
FPGADataFormatUtilities::get_dataformat_EDM_PIXELCLUSTER_w9
uint64_t get_dataformat_EDM_PIXELCLUSTER_w9(const EDM_PIXELCLUSTER_w9 &in)
Definition: FPGADataFormatUtilities.h:2006
FPGADataFormatUtilities::fill_EDM_STRIPCLUSTER_w1
EDM_STRIPCLUSTER_w1 fill_EDM_STRIPCLUSTER_w1(const uint64_t &flag, const uint64_t &id_hash, const uint64_t &spare)
Definition: FPGADataFormatUtilities.h:1553
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
FPGADataFormatUtilities::fill_EVT_HDR_w3
EVT_HDR_w3 fill_EVT_HDR_w3(const uint64_t &status, const uint64_t &crc)
Definition: FPGADataFormatUtilities.h:135
FPGADataFormatUtilities::get_dataformat_EDM_PIXELCLUSTER_w5
uint64_t get_dataformat_EDM_PIXELCLUSTER_w5(const EDM_PIXELCLUSTER_w5 &in)
Definition: FPGADataFormatUtilities.h:1973
FPGADataFormatUtilities::get_dataformat_EDM_PIXELCLUSTER_w6
uint64_t get_dataformat_EDM_PIXELCLUSTER_w6(const EDM_PIXELCLUSTER_w6 &in)
Definition: FPGADataFormatUtilities.h:1979
FPGADataFormatUtilities::get_dataformat_EDM_STRIPCLUSTER_w2
uint64_t get_dataformat_EDM_STRIPCLUSTER_w2(const EDM_STRIPCLUSTER_w2 &in)
Definition: FPGADataFormatUtilities.h:1496
FPGADataFormatUtilities::fill_EDM_STRIPCLUSTER_w3
EDM_STRIPCLUSTER_w3 fill_EDM_STRIPCLUSTER_w3(const uint64_t &rdo_list_w1)
Definition: FPGADataFormatUtilities.h:1567
FPGADataFormatUtilities::EDM_PIXELCLUSTER_FLAG
const int EDM_PIXELCLUSTER_FLAG
Definition: FPGADataFormatUtilities.h:1699
FPGADataFormatUtilities::fill_EDM_PIXELCLUSTER_w7
EDM_PIXELCLUSTER_w7 fill_EDM_PIXELCLUSTER_w7(const double &localposition_x, const double &localposition_y, const uint64_t &channels_in_phi, const uint64_t &channels_in_eta, const double &width_in_eta, const uint64_t &spare)
Definition: FPGADataFormatUtilities.h:2061
FPGADataFormatUtilities::fill_EDM_PIXELCLUSTER_w8
EDM_PIXELCLUSTER_w8 fill_EDM_PIXELCLUSTER_w8(const double &localcovariance_xx, const double &localcovariance_yy, const double &omega_x, const double &omega_y, const uint64_t &spare)
Definition: FPGADataFormatUtilities.h:2072
FPGADataFormatUtilities::get_dataformat_EVT_FTR_w1
uint64_t get_dataformat_EVT_FTR_w1(const EVT_FTR_w1 &in)
Definition: FPGADataFormatUtilities.h:240
FPGADataFormatUtilities::get_dataformat_EDM_STRIPCLUSTER_w4
uint64_t get_dataformat_EDM_STRIPCLUSTER_w4(const EDM_STRIPCLUSTER_w4 &in)
Definition: FPGADataFormatUtilities.h:1508
FPGADataFormatUtilities::fill_EDM_STRIPCLUSTER_w2
EDM_STRIPCLUSTER_w2 fill_EDM_STRIPCLUSTER_w2(const uint64_t &identifier)
Definition: FPGADataFormatUtilities.h:1561
FPGADataFormatUtilities::get_dataformat_EDM_PIXELCLUSTER_w3
uint64_t get_dataformat_EDM_PIXELCLUSTER_w3(const EDM_PIXELCLUSTER_w3 &in)
Definition: FPGADataFormatUtilities.h:1961
FPGADataFormatUtilities::get_dataformat_EDM_STRIPCLUSTER_w6
uint64_t get_dataformat_EDM_STRIPCLUSTER_w6(const EDM_STRIPCLUSTER_w6 &in)
Definition: FPGADataFormatUtilities.h:1520
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
FPGADataFormatUtilities::fill_EDM_STRIPCLUSTER_w8
EDM_STRIPCLUSTER_w8 fill_EDM_STRIPCLUSTER_w8(const double &globalposition_x, const double &globalposition_y, const uint64_t &channels_in_phi, const uint64_t &spare)
Definition: FPGADataFormatUtilities.h:1600
FPGADataFormatUtilities::get_dataformat_EDM_PIXELCLUSTER_w10
uint64_t get_dataformat_EDM_PIXELCLUSTER_w10(const EDM_PIXELCLUSTER_w10 &in)
Definition: FPGADataFormatUtilities.h:2014
FPGADataFormatUtilities::get_dataformat_EDM_STRIPCLUSTER_w9
uint64_t get_dataformat_EDM_STRIPCLUSTER_w9(const EDM_STRIPCLUSTER_w9 &in)
Definition: FPGADataFormatUtilities.h:1544
DataVector::at
const T * at(size_type n) const
Access an element, as an rvalue.
FPGADataFormatUtilities::fill_EVT_FTR_w2
EVT_FTR_w2 fill_EVT_FTR_w2(const uint64_t &error_flags)
Definition: FPGADataFormatUtilities.h:269
FPGADataFormatUtilities::fill_EDM_PIXELCLUSTER_w2
EDM_PIXELCLUSTER_w2 fill_EDM_PIXELCLUSTER_w2(const uint64_t &identifier)
Definition: FPGADataFormatUtilities.h:2031
FPGADataFormatUtilities::fill_EDM_PIXELCLUSTER_w4
EDM_PIXELCLUSTER_w4 fill_EDM_PIXELCLUSTER_w4(const uint64_t &rdo_list_w2)
Definition: FPGADataFormatUtilities.h:2043
FPGADataFormatUtilities::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:261
DataVector::size
size_type size() const noexcept
Returns the number of elements in the collection.
FPGADataFormatUtilities::get_dataformat_EVT_HDR_w1
uint64_t get_dataformat_EVT_HDR_w1(const EVT_HDR_w1 &in)
Definition: FPGADataFormatUtilities.h:96