ATLAS Offline Software
JetUsedInFitTrackDecoratorTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #if !defined(XAOD_STANDALONE) && !defined(XAOD_ANALYSIS)
7 // Includes from this package:
9 
11  asg::AsgTool(name),
12  m_decoTool("InDet::InDetUsedInFitTrackDecoratorTool/IDUsedInFitDecoTool_" + name, this) // TODO Why is the suffix required?
13 {
14  declareProperty("Decorator", m_decoTool, "InDet::InDetUsedInFitTrackDecoratorTool instance");
15 }
16 
18  ATH_MSG_INFO("Initializing tool " << name() << "...");
19  ATH_CHECK(m_decoTool.retrieve());
20  return StatusCode::SUCCESS;
21 }
22 
24  ATH_MSG_DEBUG("Executing tool " << name() << "...");
25  const EventContext& ctx = Gaudi::Hive::currentContext();
26  m_decoTool->decorate(ctx);
27  return 0;
28 }
29 
30 #endif
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
asg
Definition: DataHandleTestTool.h:28
JetUsedInFitTrackDecoratorTool::m_decoTool
ToolHandle< InDet::IInDetUsedInFitTrackDecoratorTool > m_decoTool
Definition: JetUsedInFitTrackDecoratorTool.h:41
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Definition: AthCommonDataStore.h:145
JetUsedInFitTrackDecoratorTool::initialize
StatusCode initialize()
Dummy implementation of the initialisation function.
Definition: JetUsedInFitTrackDecoratorTool.cxx:17
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
CurrentContext.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
JetUsedInFitTrackDecoratorTool.h
JetUsedInFitTrackDecoratorTool::JetUsedInFitTrackDecoratorTool
JetUsedInFitTrackDecoratorTool(const std::string &name)
Definition: JetUsedInFitTrackDecoratorTool.cxx:10
JetUsedInFitTrackDecoratorTool::execute
int execute() const
Method to be called for each event.
Definition: JetUsedInFitTrackDecoratorTool.cxx:23