ATLAS Offline Software
Loading...
Searching...
No Matches
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
13namespace 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
a wrapper around a CP tool in xAOD mdoe to call it in the PHYSLITE test
std::decay_t< decltype(*std::declval< asg::AsgTool >().evtStore())> EventStoreType
the type used for the event store
virtual StatusCode call()=0
call the tool for a single event
virtual StatusCode copyRecord(EventStoreType &evtStore, const std::string &postfix)=0
do any copying and recording needed
virtual StatusCode retrieve(EventStoreType &evtStore)=0
retrieve everything we need from the event store
virtual ~IXAODToolCaller() noexcept=default
STL namespace.