ATLAS Offline Software
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 
7 static const InterfaceID DiTauToolBaseID( "DiTauToolBase", 1, 0 );
8 
9 const InterfaceID& DiTauToolBase::interfaceID() {
10  return DiTauToolBaseID;
11 }
12 
13 
14 DiTauToolBase::DiTauToolBase( const std::string &type,
15  const std::string &name,
16  const IInterface *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 
44 
46 {
47  return StatusCode::SUCCESS;
48 }
49 
50 
51 // Helpers
52 
53 template <class T>
55  if (tool.retrieve().isFailure()) {
56  ATH_MSG_FATAL("Failed to retrieve tool " << tool);
57  return false;
58  } else {
59  ATH_MSG_VERBOSE("Retrieved tool " << tool);
60  }
61  return true;
62 }
DiTauToolBase::DiTauToolBase
DiTauToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Definition: DiTauToolBase.cxx:14
DiTauToolBase::finalize
virtual StatusCode finalize()
Finalizer.
Definition: DiTauToolBase.cxx:45
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
DiTauToolBase.h
DiTauToolBase::eventInitialize
virtual StatusCode eventInitialize(DiTauCandidateData *data)
Event initializer - called at the beginning of each event.
Definition: DiTauToolBase.cxx:32
DiTauToolBase::~DiTauToolBase
virtual ~DiTauToolBase()
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
DiTauToolBase::interfaceID
static const InterfaceID & interfaceID()
InterfaceID implementation needed for ToolHandle.
Definition: DiTauToolBase.cxx:9
DiTauToolBase::retrieveTool
bool retrieveTool(T &tool)
Convenience functions to handle storegate objects.
Definition: DiTauToolBase.cxx:54
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition: test_pyathena.py:15
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
AtlCoolConsole.tool
tool
Definition: AtlCoolConsole.py:453
DiTauToolBase::initialize
virtual StatusCode initialize()
Tool initializer.
Definition: DiTauToolBase.cxx:26
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
DiTauToolBase::execute
virtual StatusCode execute(DiTauCandidateData *data, const EventContext &ctx) const
Execute - called for each Ditau candidate.
Definition: DiTauToolBase.cxx:38
DiTauCandidateData
Definition: DiTauCandidateData.h:15
AthAlgTool
Definition: AthAlgTool.h:26
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35