ATLAS Offline Software
InDetUsedInVertexFitTrackDecorator.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // InDetUsedInVertexFitTrackDecorator.cxx, (c) ATLAS Detector software
8 // Author: Matthew Basso (matthew.joseph.basso@cern.ch)
9 // A very simple tool for decorating tracks with their "used-in-fit" info (AMVF fit vertices and weights)
10 
11 // Local include(s):
13 
14 // Constructor with parameters:
16  AthReentrantAlgorithm(name, pSvcLocator) {}
17 
18 
20 {
21  // Print configuration
22  ATH_MSG_DEBUG("Initializing " << name() << "...");
23  ATH_MSG_DEBUG("Using UsedInFitDecoratorTool: " << m_decoTool);
24 
25  // Retrieve our tool
26  ATH_CHECK(m_decoTool.retrieve());
27 
28  return StatusCode::SUCCESS;
29 }
30 
32 {
33  ATH_MSG_DEBUG("Finalizing " << name() << "...");
34 
35  // Release our tool
36  ATH_CHECK(m_decoTool.release());
37 
38  return StatusCode::SUCCESS;
39 }
40 
42 {
43  ATH_MSG_DEBUG("In addBranches(...) for " << name() << "...");
44 
45  // Decorate our tracks
46  m_decoTool->decorate();
47 
48  return StatusCode::SUCCESS;
49 }
InDet::InDetUsedInVertexFitTrackDecorator::execute
virtual StatusCode execute(const EventContext &ctx) const
Function decorating the inputs.
Definition: InDetUsedInVertexFitTrackDecorator.cxx:41
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
InDet::InDetUsedInVertexFitTrackDecorator::finalize
virtual StatusCode finalize()
Function finalizing the tool.
Definition: InDetUsedInVertexFitTrackDecorator.cxx:31
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
InDetUsedInVertexFitTrackDecorator.h
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
unused
void unused(Args &&...)
Definition: VP1ExpertSettings.cxx:39
__attribute__
__attribute__((always_inline)) inline uint16_t TileCalibDrawerBase
Definition: TileCalibDrawerBase.h:190
InDet::InDetUsedInVertexFitTrackDecorator::initialize
virtual StatusCode initialize()
Function initialising the tool.
Definition: InDetUsedInVertexFitTrackDecorator.cxx:19
InDet::InDetUsedInVertexFitTrackDecorator::InDetUsedInVertexFitTrackDecorator
InDetUsedInVertexFitTrackDecorator(const std::string &name, ISvcLocator *pSvcLocator)
Definition: InDetUsedInVertexFitTrackDecorator.cxx:15
InDet::InDetUsedInVertexFitTrackDecorator::m_decoTool
ToolHandle< InDet::IInDetUsedInFitTrackDecoratorTool > m_decoTool
ToolHandle for the IInDetUsedInFitTrackDecoratorTool.
Definition: InDetUsedInVertexFitTrackDecorator.h:62