ATLAS Offline Software
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_MSG_INFO
#define ATH_MSG_INFO(x)
Definition:
AthMsgStreamMacros.h:31
EFTrackingFPGAUtility::TestVectorChecker::execute
StatusCode execute(const EventContext &ctx) const override final
Definition:
TestVectorChecker.cxx:22
SG::ReadHandle
Definition:
StoreGate/StoreGate/ReadHandle.h:67
index
Definition:
index.py:1
EFTrackingFPGAUtility::TestVectorChecker::initialize
StatusCode initialize() override final
Definition:
TestVectorChecker.cxx:14
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition:
AthReentrantAlgorithm.h:74
EFTrackingFPGAUtility::TestVectorChecker::TestVectorChecker
TestVectorChecker(const std::string &name, ISvcLocator *pSvcLocator)
Definition:
TestVectorChecker.cxx:8
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_CHECK
#define ATH_CHECK
Definition:
AthCheckMacros.h:40
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition:
AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:240
EFTrackingFPGAUtility
Definition:
TestVectorChecker.h:11
TestVectorChecker.h
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
Generated on Mon Sep 29 2025 21:19:56 for ATLAS Offline Software by
1.8.18