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 
22  using base_class::base_class;
23 
24  virtual StatusCode initialize() override final;
25  virtual StatusCode addBranches(const EventContext& ctx) const override final;
26  private:
27  // Properties
28  SG::ReadHandleKey<xAOD::TrackParticleContainer> m_trackName{this, "TrackName", "InDetTrackParticles"};
29  SG::ReadHandleKey<xAOD::VertexContainer> m_vertexName{this, "VertexName", "PrimaryVertices"};
30  SG::WriteDecorHandleKey<xAOD::TrackParticleContainer> m_vtxDec_key {this, "LinkName", m_trackName, "", "Decoration for associated vertex"};
31  PublicToolHandle<CP::ITrackVertexAssociationTool> m_tool{this, "TVATool", ""};
32  // Internals
34 
35  }; //> end class TVAAugmentationTool
36 } //> end namespace DerivationFramework
37 
38 #endif //> !DERIVATIONFRAMEWORK_TVAAUGMENTATIONTOOL_H
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >
DerivationFramework::TVAAugmentationTool
Definition: TVAAugmentationTool.h:19
IAugmentationTool.h
SG::ReadHandleKey< xAOD::TrackParticleContainer >
DerivationFramework::TVAAugmentationTool::initialize
virtual StatusCode initialize() override final
Definition: TVAAugmentationTool.cxx:10
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:29
DerivationFramework::TVAAugmentationTool::m_trackName
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackName
Definition: TVAAugmentationTool.h:28
DerivationFramework::TVAAugmentationTool::m_tool
PublicToolHandle< CP::ITrackVertexAssociationTool > m_tool
Definition: TVAAugmentationTool.h:31
DerivationFramework::TVAAugmentationTool::m_vtxDec_key
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_vtxDec_key
Definition: TVAAugmentationTool.h:30
VertexContainer.h
DerivationFramework::TVAAugmentationTool::addBranches
virtual StatusCode addBranches(const EventContext &ctx) const override final
Definition: TVAAugmentationTool.cxx:21
ToolHandle.h
TrackParticleContainer.h