ATLAS Offline Software
PhysicsAnalysis
DerivationFramework
DerivationFrameworkInDet
src
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):
12
#include "
DerivationFrameworkInDet/UsedInVertexFitTrackDecorator.h
"
13
14
namespace
DerivationFramework
{
15
16
StatusCode
UsedInVertexFitTrackDecorator::initialize
()
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
28
StatusCode
UsedInVertexFitTrackDecorator::finalize
()
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
DerivationFramework::UsedInVertexFitTrackDecorator::addBranches
virtual StatusCode addBranches(const EventContext &ctx) const
Function decorating the inputs.
Definition:
UsedInVertexFitTrackDecorator.cxx:38
DerivationFramework::UsedInVertexFitTrackDecorator::initialize
StatusCode initialize()
Function initialising the tool.
Definition:
UsedInVertexFitTrackDecorator.cxx:16
DerivationFramework::UsedInVertexFitTrackDecorator::finalize
StatusCode finalize()
Function finalizing the tool.
Definition:
UsedInVertexFitTrackDecorator.cxx:28
DerivationFramework::UsedInVertexFitTrackDecorator::m_decoTool
ToolHandle< InDet::IInDetUsedInFitTrackDecoratorTool > m_decoTool
ToolHandle for the IInDetUsedInFitTrackDecoratorTool.
Definition:
UsedInVertexFitTrackDecorator.h:62
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
ATH_CHECK
#define ATH_CHECK
Definition:
AthCheckMacros.h:40
DerivationFramework
THE reconstruction tool.
Definition:
ParticleSortingAlg.h:24
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:240
UsedInVertexFitTrackDecorator.h
Generated on Fri Nov 21 2025 21:22:44 for ATLAS Offline Software by
1.8.18