ATLAS Offline Software
IXAODToolCaller.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 
8 #ifndef COLUMNAR_TEST_FIXTURES_I_XAOD_TOOL_CALLER_H
9 #define COLUMNAR_TEST_FIXTURES_I_XAOD_TOOL_CALLER_H
10 
11 #include <AsgTools/AsgTool.h>
12 
13 namespace columnar
14 {
15  namespace TestUtils
16  {
30 
32  {
33  public:
34  virtual ~IXAODToolCaller () noexcept = default;
35 
37  using EventStoreType = std::decay_t<decltype (*std::declval<asg::AsgTool>().evtStore())>;
38 
40  virtual StatusCode retrieve (EventStoreType& evtStore) = 0;
41 
43  virtual StatusCode copyRecord (EventStoreType& evtStore, const std::string& postfix) = 0;
44 
46  virtual StatusCode call () = 0;
47  };
48  }
49 }
50 
51 #endif
columnar::TestUtils::IXAODToolCaller::retrieve
virtual StatusCode retrieve(EventStoreType &evtStore)=0
retrieve everything we need from the event store
columnar::TestUtils::IXAODToolCaller::~IXAODToolCaller
virtual ~IXAODToolCaller() noexcept=default
TestUtils
Definition: TestUtils.py:1
asg
Definition: DataHandleTestTool.h:28
columnar::TestUtils::IXAODToolCaller::call
virtual StatusCode call()=0
call the tool for a single event
columnar::TestUtils::IXAODToolCaller::copyRecord
virtual StatusCode copyRecord(EventStoreType &evtStore, const std::string &postfix)=0
do any copying and recording needed
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
columnar::TestUtils::IXAODToolCaller
a wrapper around a CP tool in xAOD mdoe to call it in the PHYSLITE test
Definition: IXAODToolCaller.h:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
python.CaloAddPedShiftConfig.default
default
Definition: CaloAddPedShiftConfig.py:43
columnar
Definition: ClusterDef.h:16
AsgTool.h
columnar::TestUtils::IXAODToolCaller::EventStoreType
std::decay_t< decltype(*std::declval< asg::AsgTool >().evtStore())> EventStoreType
the type used for the event store
Definition: IXAODToolCaller.h:37