ATLAS Offline Software
Loading...
Searching...
No Matches
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
6
9 const std::string& name,
10 ISvcLocator* pSvcLocator
11) : AthReentrantAlgorithm(name, pSvcLocator)
12{}
13
15 ATH_MSG_INFO("Initializing " << name());
18
19 return StatusCode::SUCCESS;
20}
21
22StatusCode TestVectorChecker::execute(const EventContext& ctx) const {
25 ctx
26 );
27
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
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_INFO(x)
An algorithm that can be simultaneously executed in multiple threads.
StatusCode execute(const EventContext &ctx) const override final
TestVectorChecker(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadHandleKey< std::vector< unsigned long > > m_outputDataStreamBKey
SG::ReadHandleKey< std::vector< unsigned long > > m_outputDataStreamAKey
Definition index.py:1