ATLAS Offline Software
TVAAugmentationTool.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3  */
4 
5 #ifndef DERIVATIONFRAMEWORK_TVAAUGMENTATIONTOOL_H
6 #define DERIVATIONFRAMEWORK_TVAAUGMENTATIONTOOL_H
7 
10 #include "AsgTools/ToolHandle.h"
12 #include "AthLinks/ElementLink.h"
15 #include <memory>
16 
17 namespace DerivationFramework {
18  class TVAAugmentationTool : public extends<AthAlgTool, IAugmentationTool>
19  {
20  public:
21  TVAAugmentationTool(const std::string& t, const std::string& n, const IInterface* p);
22 
23  virtual StatusCode initialize() override final;
24  virtual StatusCode addBranches(const EventContext& ctx) const override final;
25  private:
26  // Properties
27  SG::ReadHandleKey<xAOD::TrackParticleContainer> m_trackName{this, "TrackName", "InDetTrackParticles"};
28  SG::ReadHandleKey<xAOD::VertexContainer> m_vertexName{this, "VertexName", "PrimaryVertices"};
29  SG::WriteDecorHandleKey<xAOD::TrackParticleContainer> m_vtxDec_key {this, "LinkName", m_trackName, "", "Decoration for associated vertex"};
30  PublicToolHandle<CP::ITrackVertexAssociationTool> m_tool{this, "TVATool", ""};
31  // Internals
33 
34  }; //> end class TVAAugmentationTool
35 } //> end namespace DerivationFramework
36 
37 #endif //> !DERIVATIONFRAMEWORK_TVAAUGMENTATIONTOOL_H
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >
DerivationFramework::TVAAugmentationTool
Definition: TVAAugmentationTool.h:19
IAugmentationTool.h
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::ReadHandleKey< xAOD::TrackParticleContainer >
DerivationFramework::TVAAugmentationTool::initialize
virtual StatusCode initialize() override final
Definition: TVAAugmentationTool.cxx:18
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
DerivationFramework::TVAAugmentationTool::TVAAugmentationTool
TVAAugmentationTool(const std::string &t, const std::string &n, const IInterface *p)
Definition: TVAAugmentationTool.cxx:10
beamspotman.n
n
Definition: beamspotman.py:727
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
ITrackVertexAssociationTool.h
DerivationFramework::TVAAugmentationTool::m_vertexName
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexName
Definition: TVAAugmentationTool.h:28
DerivationFramework::TVAAugmentationTool::m_trackName
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackName
Definition: TVAAugmentationTool.h:27
DerivationFramework::TVAAugmentationTool::m_tool
PublicToolHandle< CP::ITrackVertexAssociationTool > m_tool
Definition: TVAAugmentationTool.h:30
DerivationFramework::TVAAugmentationTool::m_vtxDec_key
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_vtxDec_key
Definition: TVAAugmentationTool.h:29
VertexContainer.h
DerivationFramework::TVAAugmentationTool::addBranches
virtual StatusCode addBranches(const EventContext &ctx) const override final
Definition: TVAAugmentationTool.cxx:29
ToolHandle.h
TrackParticleContainer.h