ATLAS Offline Software
PhysicsAnalysis
DerivationFramework
DerivationFrameworkInDet
src
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):
12
#include "
DerivationFrameworkInDet/UsedInVertexFitTrackDecorator.h
"
13
14
namespace
DerivationFramework
{
15
16
UsedInVertexFitTrackDecorator::UsedInVertexFitTrackDecorator
(
const
std::string&
type
,
const
std::string&
name
,
const
IInterface*
parent
) :
17
base_class(
type
,
name
,
parent
),
18
m_decoTool(
"InDet::InDetUsedInFitTrackDecoratorTool/"
+
name
+
"_IDUsedInFitDecoratorTool"
, this)
19
{
20
// Property declarations
21
declareProperty(
"UsedInFitDecoratorTool"
,
m_decoTool
,
"IInDetUsedInFitTrackDecoratorTool for decorating tracks"
);
22
}
23
24
StatusCode
UsedInVertexFitTrackDecorator::initialize
()
25
{
26
// Print configuration
27
ATH_MSG_DEBUG
(
"Initializing "
<<
name
() <<
"..."
);
28
ATH_MSG_DEBUG
(
"Using UsedInFitDecoratorTool: "
<<
m_decoTool
);
29
30
// Retrieve our tool
31
ATH_CHECK
(
m_decoTool
.retrieve());
32
33
return
StatusCode::SUCCESS;
34
}
35
36
StatusCode
UsedInVertexFitTrackDecorator::finalize
()
37
{
38
ATH_MSG_DEBUG
(
"Finalizing "
<<
name
() <<
"..."
);
39
40
// Release our tool
41
ATH_CHECK
(
m_decoTool
.release());
42
43
return
StatusCode::SUCCESS;
44
}
45
46
StatusCode
UsedInVertexFitTrackDecorator::addBranches
()
const
47
{
48
ATH_MSG_DEBUG
(
"In addBranches(...) for "
<<
name
() <<
"..."
);
49
50
// Decorate our tracks
51
m_decoTool
->decorate();
52
53
return
StatusCode::SUCCESS;
54
}
55
56
}
// 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:24
DerivationFramework::UsedInVertexFitTrackDecorator::finalize
StatusCode finalize()
Function finalizing the tool.
Definition:
UsedInVertexFitTrackDecorator.cxx:36
python.CaloAddPedShiftConfig.type
type
Definition:
CaloAddPedShiftConfig.py:42
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
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:46
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:240
UsedInVertexFitTrackDecorator.h
Generated on Wed Sep 3 2025 21:23:10 for ATLAS Offline Software by
1.8.18