ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
EFTracking
EFTrackingFPGAIntegration
EFTrackingFPGAUtility
src
TestVectorChecker.cxx
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
EFTrackingFPGAUtility/TestVectorChecker.h
"
6
7
namespace
EFTrackingFPGAUtility
{
8
TestVectorChecker::TestVectorChecker
(
9
const
std::string& name,
10
ISvcLocator* pSvcLocator
11
) :
AthReentrantAlgorithm
(name, pSvcLocator)
12
{}
13
14
StatusCode
TestVectorChecker::initialize
() {
15
ATH_MSG_INFO
(
"Initializing "
<< name());
16
ATH_CHECK
(
m_outputDataStreamAKey
.initialize());
17
ATH_CHECK
(
m_outputDataStreamBKey
.initialize());
18
19
return
StatusCode::SUCCESS;
20
}
21
22
StatusCode
TestVectorChecker::execute
(
const
EventContext& ctx)
const
{
23
SG::ReadHandle<std::vector<unsigned long>
> outputDataStreamA(
24
m_outputDataStreamAKey
,
25
ctx
26
);
27
28
SG::ReadHandle<std::vector<unsigned long>
> outputDataStreamB(
29
m_outputDataStreamAKey
,
30
ctx
31
);
32
33
ATH_CHECK
(outputDataStreamA->size() == outputDataStreamB->size());
34
35
for
(std::size_t
index
= 0;
index
< outputDataStreamA->size();
index
++) {
36
ATH_CHECK
(outputDataStreamA->at(
index
) == outputDataStreamB->at(
index
));
37
}
38
39
return
StatusCode::SUCCESS;
40
}
41
}
42
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition
AthMsgStreamMacros.h:31
TestVectorChecker.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
EFTrackingFPGAUtility::TestVectorChecker::execute
StatusCode execute(const EventContext &ctx) const override final
Definition
TestVectorChecker.cxx:22
EFTrackingFPGAUtility::TestVectorChecker::TestVectorChecker
TestVectorChecker(const std::string &name, ISvcLocator *pSvcLocator)
Definition
TestVectorChecker.cxx:8
EFTrackingFPGAUtility::TestVectorChecker::m_outputDataStreamBKey
SG::ReadHandleKey< std::vector< unsigned long > > m_outputDataStreamBKey
Definition
TestVectorChecker.h:15
EFTrackingFPGAUtility::TestVectorChecker::m_outputDataStreamAKey
SG::ReadHandleKey< std::vector< unsigned long > > m_outputDataStreamAKey
Definition
TestVectorChecker.h:14
EFTrackingFPGAUtility::TestVectorChecker::initialize
StatusCode initialize() override final
Definition
TestVectorChecker.cxx:14
SG::ReadHandle
Definition
StoreGate/StoreGate/ReadHandle.h:67
EFTrackingFPGAUtility
Definition
TestVectorChecker.h:11
index
Definition
index.py:1
Generated on
for ATLAS Offline Software by
1.17.0