ATLAS Offline Software
Loading...
Searching...
No Matches
UsedInVertexFitTrackDecorator.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// UsedInVertexFitTrackDecorator.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
14namespace DerivationFramework {
15
17 {
18 // Print configuration
19 ATH_MSG_DEBUG("Initializing " << name() << "...");
20 ATH_MSG_DEBUG("Using UsedInFitDecoratorTool: " << m_decoTool);
21
22 // Retrieve our tool
23 ATH_CHECK(m_decoTool.retrieve());
24
25 return StatusCode::SUCCESS;
26 }
27
29 {
30 ATH_MSG_DEBUG("Finalizing " << name() << "...");
31
32 // Release our tool
33 ATH_CHECK(m_decoTool.release());
34
35 return StatusCode::SUCCESS;
36 }
37
38 StatusCode UsedInVertexFitTrackDecorator::addBranches(const EventContext& ctx) const
39 {
40 ATH_MSG_DEBUG("In addBranches(...) for " << name() << "...");
41
42 // Decorate our tracks
43 m_decoTool->decorate(ctx);
44
45 return StatusCode::SUCCESS;
46 }
47
48} // end: namespace DerivationFramework
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x)
virtual StatusCode addBranches(const EventContext &ctx) const
Function decorating the inputs.
ToolHandle< InDet::IInDetUsedInFitTrackDecoratorTool > m_decoTool
ToolHandle for the IInDetUsedInFitTrackDecoratorTool.
THE reconstruction tool.