ATLAS Offline Software
UsedInVertexFitTrackDecorator.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // UsedInVertexFitTrackDecorator.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 namespace DerivationFramework {
15 
16  UsedInVertexFitTrackDecorator::UsedInVertexFitTrackDecorator(const std::string& type, const std::string& name, const IInterface* parent) :
18  m_decoTool("InDet::InDetUsedInFitTrackDecoratorTool/" + name + "_IDUsedInFitDecoratorTool", this)
19  {
20  // Property declarations
21  declareProperty("UsedInFitDecoratorTool", m_decoTool, "IInDetUsedInFitTrackDecoratorTool for decorating tracks");
22  declareInterface<DerivationFramework::IAugmentationTool>(this);
23  }
24 
26  {
27  // Print configuration
28  ATH_MSG_DEBUG("Initializing " << name() << "...");
29  ATH_MSG_DEBUG("Using UsedInFitDecoratorTool: " << m_decoTool);
30 
31  // Retrieve our tool
32  ATH_CHECK(m_decoTool.retrieve());
33 
34  return StatusCode::SUCCESS;
35  }
36 
38  {
39  ATH_MSG_DEBUG("Finalizing " << name() << "...");
40 
41  // Release our tool
42  ATH_CHECK(m_decoTool.release());
43 
44  return StatusCode::SUCCESS;
45  }
46 
48  {
49  ATH_MSG_DEBUG("In addBranches(...) for " << name() << "...");
50 
51  // Decorate our tracks
52  m_decoTool->decorate();
53 
54  return StatusCode::SUCCESS;
55  }
56 
57 } // end: namespace DerivationFramework
DerivationFramework::UsedInVertexFitTrackDecorator::UsedInVertexFitTrackDecorator
UsedInVertexFitTrackDecorator(const std::string &type, const std::string &name, const IInterface *parent)
Definition: UsedInVertexFitTrackDecorator.cxx:16
DerivationFramework::UsedInVertexFitTrackDecorator::initialize
StatusCode initialize()
Function initialising the tool.
Definition: UsedInVertexFitTrackDecorator.cxx:25
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
DerivationFramework::UsedInVertexFitTrackDecorator::finalize
StatusCode finalize()
Function finalizing the tool.
Definition: UsedInVertexFitTrackDecorator.cxx:37
DerivationFramework::UsedInVertexFitTrackDecorator::m_decoTool
ToolHandle< InDet::IInDetUsedInFitTrackDecoratorTool > m_decoTool
ToolHandle for the IInDetUsedInFitTrackDecoratorTool.
Definition: UsedInVertexFitTrackDecorator.h:64
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
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::UsedInVertexFitTrackDecorator::addBranches
virtual StatusCode addBranches() const
Function decorating the inputs.
Definition: UsedInVertexFitTrackDecorator.cxx:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
AthAlgTool
Definition: AthAlgTool.h:26
UsedInVertexFitTrackDecorator.h