ATLAS Offline Software
Loading...
Searching...
No Matches
DiTauToolBase.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7static const InterfaceID DiTauToolBaseID( "DiTauToolBase", 1, 0 );
8
9const InterfaceID& DiTauToolBase::interfaceID() {
10 return DiTauToolBaseID;
11}
12
13
15 const std::string &name,
16 const IInterface *parent ):
17 AthAlgTool(type, name, parent)
18{
19}
20
21
23= default;
24
25
27{
28 return StatusCode::SUCCESS;
29}
30
31
33{
34 return StatusCode::SUCCESS;
35}
36
37
39 const EventContext& /*ctx*/) const
40{
41 return StatusCode::SUCCESS;
42}
43
45 const EventContext& /*ctx*/) const
46{
47 return StatusCode::SUCCESS;
48}
49
51{
52 return StatusCode::SUCCESS;
53}
54
55
56// Helpers
57
58template <class T>
60 if (tool.retrieve().isFailure()) {
61 ATH_MSG_FATAL("Failed to retrieve tool " << tool);
62 return false;
63 } else {
64 ATH_MSG_VERBOSE("Retrieved tool " << tool);
65 }
66 return true;
67}
#define ATH_MSG_FATAL(x)
#define ATH_MSG_VERBOSE(x)
static const InterfaceID DiTauToolBaseID("DiTauToolBase", 1, 0)
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
virtual StatusCode execute(DiTauCandidateData *data, const EventContext &ctx) const
Execute - called for each Ditau candidate.
virtual StatusCode executeObj(xAOD::DiTauJet &xDiTau, const EventContext &ctx) const
Execute - called for each Ditau jet.
virtual StatusCode finalize()
Finalizer.
static const InterfaceID & interfaceID()
InterfaceID implementation needed for ToolHandle.
virtual ~DiTauToolBase()
virtual StatusCode eventInitialize(DiTauCandidateData *data)
Event initializer - called at the beginning of each event.
virtual StatusCode initialize()
Tool initializer.
bool retrieveTool(T &tool)
Convenience functions to handle storegate objects.
DiTauToolBase(const std::string &type, const std::string &name, const IInterface *parent)
DiTauJet_v1 DiTauJet
Definition of the current version.
Definition DiTauJet.h:17