ATLAS Offline Software
InDetUsedInFitTrackDecoratorTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef INDETUSEDINFITTRACKDECORATORTOOL_INDETUSEDINFITTRACKDECORATORTOOL_H
6 #define INDETUSEDINFITTRACKDECORATORTOOL_INDETUSEDINFITTRACKDECORATORTOOL_H
7 
8 // Framework include(s):
9 #include "AsgTools/AsgTool.h"
12 
13 // EDM include(s):
16 
17 // Tool include(s)
19 
20 // STL includes:
21 #include <string>
22 
28 namespace InDet {
29 
32  : public asg::AsgTool,
34  {
35 
37 
38 
39  // Public methods:
41  public:
42 
45 
47  InDetUsedInFitTrackDecoratorTool(const std::string& name);
48 
51 
53 
56 
58  virtual StatusCode initialize() override;
59 
61  virtual StatusCode finalize() override;
62 
64 
67 
69  virtual void decorate(const xAOD::TrackParticleContainer* trkCont, const xAOD::VertexContainer* vtxCont) const override;
70  virtual void decorate() const override;
71 
73 
75  // Private data:
77  private:
78 
81 
83  StringProperty m_vtxDecoName
84  {this, "AMVFVerticesDecoName", "TTVA_AMVFVertices",
85  "Name of the per-track AMVF vertices decoration"};
86 
88  StringProperty m_wgtDecoName
89  {this, "AMVFWeightsDecoName", "TTVA_AMVFWeights",
90  "Name of the per-track AMVF weights decoration"};
91 
94  {this, "TrackContainer", "InDetTrackParticles",
95  "Name of the track particle container"};
96 
99  {this, "VertexContainer", "PrimaryVertices",
100  "Name of the primary vertex container"};
101 
103 
104  private:
105 
108 
111 
114 
116 
117  }; // class: InDetUsedInFitTrackDecoratorTool
118 } // namespace: InDet
119 
120 #endif // end: INDETUSEDINFITTRACKDECORATORTOOL_INDETUSEDINFITTRACKDECORATORTOOL_H
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >
InDet::InDetUsedInFitTrackDecoratorTool::decorate
virtual void decorate() const override
Definition: InDetUsedInFitTrackDecoratorTool.cxx:128
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition: AsgTool.h:47
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
InDet::InDetUsedInFitTrackDecoratorTool::m_vtxContKey
SG::ReadHandleKey< xAOD::VertexContainer > m_vtxContKey
Name of the primary vertex container (needed for container-less function calls)
Definition: InDetUsedInFitTrackDecoratorTool.h:99
InDet::InDetUsedInFitTrackDecoratorTool::InDetUsedInFitTrackDecoratorTool
InDetUsedInFitTrackDecoratorTool(const std::string &name)
Constructor.
Definition: InDetUsedInFitTrackDecoratorTool.cxx:21
InDet::InDetUsedInFitTrackDecoratorTool::m_wgtDecoKey
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_wgtDecoKey
Per-track decorator for the AMVF fit weights.
Definition: InDetUsedInFitTrackDecoratorTool.h:113
SG::ReadHandleKey< xAOD::TrackParticleContainer >
IInDetUsedInFitTrackDecoratorTool.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
InDet::InDetUsedInFitTrackDecoratorTool::finalize
virtual StatusCode finalize() override
Function finalizing the tool.
Definition: InDetUsedInFitTrackDecoratorTool.cxx:61
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
InDet::InDetUsedInFitTrackDecoratorTool::m_trkContKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trkContKey
Name of the track particle container (needed for container-less function calls)
Definition: InDetUsedInFitTrackDecoratorTool.h:94
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
InDet::InDetUsedInFitTrackDecoratorTool::~InDetUsedInFitTrackDecoratorTool
~InDetUsedInFitTrackDecoratorTool()
Destructor.
InDet::IInDetUsedInFitTrackDecoratorTool
Definition: IInDetUsedInFitTrackDecoratorTool.h:24
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
InDet::InDetUsedInFitTrackDecoratorTool::m_vtxDecoKey
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_vtxDecoKey
Per-track decorator for the AMVF fit vertices.
Definition: InDetUsedInFitTrackDecoratorTool.h:110
WriteDecorHandleKey.h
VertexContainer.h
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition: AsgToolMacros.h:68
InDet::InDetUsedInFitTrackDecoratorTool
Implementation of the hardscatter selection tool.
Definition: InDetUsedInFitTrackDecoratorTool.h:34
InDet::InDetUsedInFitTrackDecoratorTool::m_wgtDecoName
StringProperty m_wgtDecoName
Name of the per-track decoration for the AMVF fit weights.
Definition: InDetUsedInFitTrackDecoratorTool.h:89
AsgTool.h
InDet::InDetUsedInFitTrackDecoratorTool::m_vtxDecoName
StringProperty m_vtxDecoName
Name of the per-track decoration for the AMVF fit vertices.
Definition: InDetUsedInFitTrackDecoratorTool.h:84
TrackParticleContainer.h
InDet::InDetUsedInFitTrackDecoratorTool::initialize
virtual StatusCode initialize() override
Function initialising the tool.
Definition: InDetUsedInFitTrackDecoratorTool.cxx:30