ATLAS Offline Software
Loading...
Searching...
No Matches
InDetUsedInVertexFitTrackDecorator.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
6// InDetUsedInVertexFitTrackDecorator.cxx
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
41StatusCode InDet::InDetUsedInVertexFitTrackDecorator::execute(const EventContext& ctx) const
42{
43 ATH_MSG_DEBUG("In addBranches(...) for " << name() << "...");
44
45 // Decorate our tracks
46 m_decoTool->decorate(ctx);
47
48 return StatusCode::SUCCESS;
49}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x)
An algorithm that can be simultaneously executed in multiple threads.
ToolHandle< InDet::IInDetUsedInFitTrackDecoratorTool > m_decoTool
ToolHandle for the IInDetUsedInFitTrackDecoratorTool.
virtual StatusCode finalize()
Function finalizing the tool.
virtual StatusCode initialize()
Function initialising the tool.
virtual StatusCode execute(const EventContext &ctx) const
Function decorating the inputs.
InDetUsedInVertexFitTrackDecorator(const std::string &name, ISvcLocator *pSvcLocator)