ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetRecAlgs
InDetUsedInVertexFitTrackDecorator
src
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):
12
#include "
InDetUsedInVertexFitTrackDecorator/InDetUsedInVertexFitTrackDecorator.h
"
13
14
// Constructor with parameters:
15
InDet::InDetUsedInVertexFitTrackDecorator::InDetUsedInVertexFitTrackDecorator
(
const
std::string& name, ISvcLocator* pSvcLocator) :
16
AthReentrantAlgorithm
(name, pSvcLocator) {}
17
18
19
StatusCode
InDet::InDetUsedInVertexFitTrackDecorator::initialize
()
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
31
StatusCode
InDet::InDetUsedInVertexFitTrackDecorator::finalize
()
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
41
StatusCode
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
}
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
InDetUsedInVertexFitTrackDecorator.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
InDet::InDetUsedInVertexFitTrackDecorator::m_decoTool
ToolHandle< InDet::IInDetUsedInFitTrackDecoratorTool > m_decoTool
ToolHandle for the IInDetUsedInFitTrackDecoratorTool.
Definition
InDetUsedInVertexFitTrackDecorator.h:62
InDet::InDetUsedInVertexFitTrackDecorator::finalize
virtual StatusCode finalize()
Function finalizing the tool.
Definition
InDetUsedInVertexFitTrackDecorator.cxx:31
InDet::InDetUsedInVertexFitTrackDecorator::initialize
virtual StatusCode initialize()
Function initialising the tool.
Definition
InDetUsedInVertexFitTrackDecorator.cxx:19
InDet::InDetUsedInVertexFitTrackDecorator::execute
virtual StatusCode execute(const EventContext &ctx) const
Function decorating the inputs.
Definition
InDetUsedInVertexFitTrackDecorator.cxx:41
InDet::InDetUsedInVertexFitTrackDecorator::InDetUsedInVertexFitTrackDecorator
InDetUsedInVertexFitTrackDecorator(const std::string &name, ISvcLocator *pSvcLocator)
Definition
InDetUsedInVertexFitTrackDecorator.cxx:15
Generated on
for ATLAS Offline Software by
1.17.0