ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
EFTracking
EFTrackingFPGAIntegration
EFTrackingFPGAUtility
EFTrackingFPGAUtility
TestVectorTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
11
12
#ifndef EFTRACKING_FPGA_INTEGRATION__TEST_VECTOR_TOOL_H
13
#define EFTRACKING_FPGA_INTEGRATION__TEST_VECTOR_TOOL_H
14
15
#include "
AthenaBaseComps/AthAlgTool.h
"
16
#include "
EFTrackingFPGAUtility/IEFTrackingFPGAIntegrationTool.h
"
17
#include "
xAODInDetMeasurement/PixelClusterContainer.h
"
18
#include "
xAODInDetMeasurement/StripClusterContainer.h
"
19
20
#include <string>
21
#include <vector>
22
23
namespace
EFTrackingFPGAIntegration
24
{
28
struct
TVHolder
29
{
30
TVHolder
() =
default
;
31
TVHolder
(
const
std::string &
name
) :
name
(
name
) {}
32
std::string
name
=
""
;
33
std::vector<uint64_t>
inputTV
{0};
34
std::vector<uint64_t>
refTV
{0};
35
};
36
}
37
45
46
class
TestVectorTool
:
public
extends<AthAlgTool, IEFTrackingFPGAIntegrationTool>
47
{
48
public
:
49
using
extends::extends;
50
51
StatusCode
initialize
()
override
;
52
58
StatusCode
prepareTV
(
const
std::string &inputFile, std::vector<uint64_t> &testVector)
const
;
59
63
StatusCode
compare
(
const
std::vector<uint64_t> &tv_1,
const
std::vector<uint64_t> &tv_2)
const
;
64
70
StatusCode
compare
(
const
EFTrackingFPGAIntegration::TVHolder
&tvHolder,
const
std::vector<uint64_t> &tv_comp)
const
;
71
77
StatusCode
encodePixelL2G
(
const
xAOD::PixelClusterContainer
*pixelClusters, std::vector<uint64_t> &encodedData)
const
;
78
85
StatusCode
encodeStripL2G
(
const
xAOD::StripClusterContainer
*stripClusters, std::vector<uint64_t> &encodedData)
const
;
86
};
87
88
#endif
// EFTRACKING_FPGA_INTEGRATION__TEST_VECTOR_TOOL_H
AthAlgTool.h
PixelClusterContainer.h
IEFTrackingFPGAIntegrationTool.h
StripClusterContainer.h
TestVectorTool
Definition
TestVectorTool.h:47
TestVectorTool::encodePixelL2G
StatusCode encodePixelL2G(const xAOD::PixelClusterContainer *pixelClusters, std::vector< uint64_t > &encodedData) const
Encode xAOD pixel cluster to L2G EDM TV.
Definition
TestVectorTool.cxx:161
TestVectorTool::initialize
StatusCode initialize() override
Definition
TestVectorTool.cxx:17
TestVectorTool::prepareTV
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.
Definition
TestVectorTool.cxx:24
TestVectorTool::encodeStripL2G
StatusCode encodeStripL2G(const xAOD::StripClusterContainer *stripClusters, std::vector< uint64_t > &encodedData) const
Encode xAOD strip cluster to L2G EDM TV.
Definition
TestVectorTool.cxx:269
TestVectorTool::compare
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>.
Definition
TestVectorTool.cxx:81
EFTrackingFPGAIntegration
The class for enconding RDO to FPGA format.
Definition
F100DataEncodingAlg.h:27
xAOD::PixelClusterContainer
PixelClusterContainer_v1 PixelClusterContainer
Define the version of the pixel cluster container.
Definition
Event/xAOD/xAODInDetMeasurement/xAODInDetMeasurement/PixelClusterContainer.h:14
xAOD::StripClusterContainer
StripClusterContainer_v1 StripClusterContainer
Define the version of the strip cluster container.
Definition
StripClusterContainer.h:14
EFTrackingFPGAIntegration::TVHolder
Definition
TestVectorTool.h:29
EFTrackingFPGAIntegration::TVHolder::refTV
std::vector< uint64_t > refTV
Definition
TestVectorTool.h:34
EFTrackingFPGAIntegration::TVHolder::name
std::string name
Definition
TestVectorTool.h:32
EFTrackingFPGAIntegration::TVHolder::TVHolder
TVHolder()=default
EFTrackingFPGAIntegration::TVHolder::inputTV
std::vector< uint64_t > inputTV
Definition
TestVectorTool.h:33
EFTrackingFPGAIntegration::TVHolder::TVHolder
TVHolder(const std::string &name)
Definition
TestVectorTool.h:31
Generated on
for ATLAS Offline Software by
1.17.0