ATLAS Offline Software
Loading...
Searching...
No Matches
ITest.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5//
6// ITest.h
7//
8// Abstract object that represents a trigger analysis test.
9//
10#ifndef TRIGANALYSISTEST_ITEST_H
11#define TRIGANALYSISTEST_ITEST_H
12
15
16namespace TrigAnalysisTest {
17
18 class ITest {
19 public:
20 virtual ~ITest() {}
21
22 // Called as even event in the file is processed.
23 virtual void processEvent(Trig::TrigDecisionTool &trigDecTool) = 0;
24
25 // Called at the end of the job - return 0 if the test passed.
26 // Otherwise some non-zero integer.
27 virtual int finalize() = 0;
28 inline void setEventStore(EventPtr_t store) { m_eventStore = store; }
29 inline EventPtr_t eventStore() { return m_eventStore; }
30 private:
32 };
33
34}
35
36#endif
StoreGateSvc * EventPtr_t
Definition EventPtrDef.h:20
EventPtr_t eventStore()
Definition ITest.h:29
EventPtr_t m_eventStore
Definition ITest.h:31
virtual int finalize()=0
void setEventStore(EventPtr_t store)
Definition ITest.h:28
virtual void processEvent(Trig::TrigDecisionTool &trigDecTool)=0