ATLAS Offline Software
TVAAugmentationTool.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2002-2020 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"
14 #include <memory>
15 
16 namespace DerivationFramework {
17  class TVAAugmentationTool : public AthAlgTool, virtual public IAugmentationTool
18  {
19  public:
20  TVAAugmentationTool(const std::string& t, const std::string& n, const IInterface* p);
21 
22  virtual StatusCode initialize();
23  virtual StatusCode addBranches() const;
24  private:
25  // Properties
26  std::string m_linkName;
27  std::string m_trackName;
28  std::string m_vertexName;
29  ToolHandle<CP::ITrackVertexAssociationTool> m_tool;
30  // Internals
32  SG::WriteDecorHandleKey<xAOD::TrackParticleContainer> m_vtxDec_key {this, "vtxDecKey", "", "Decoration for associated vertex"};
33 
34  }; //> end class TVAAugmentationTool
35 } //> end namespace DerivationFramework
36 
37 #endif //> !DERIVATIONFRAMEWORK_TVAAUGMENTATIONTOOL_H
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >
DerivationFramework::TVAAugmentationTool
Definition: TVAAugmentationTool.h:18
IAugmentationTool.h
DerivationFramework::TVAAugmentationTool::addBranches
virtual StatusCode addBranches() const
Pass the thinning service
Definition: TVAAugmentationTool.cxx:35
DerivationFramework::TVAAugmentationTool::m_vertexName
std::string m_vertexName
Definition: TVAAugmentationTool.h:28
DerivationFramework::TVAAugmentationTool::m_tool
ToolHandle< CP::ITrackVertexAssociationTool > m_tool
Definition: TVAAugmentationTool.h:29
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
DerivationFramework::IAugmentationTool
Definition: IAugmentationTool.h:24
DerivationFramework::TVAAugmentationTool::m_linkName
std::string m_linkName
Definition: TVAAugmentationTool.h:26
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
DerivationFramework::TVAAugmentationTool::initialize
virtual StatusCode initialize()
Definition: TVAAugmentationTool.cxx:24
DerivationFramework::TVAAugmentationTool::TVAAugmentationTool
TVAAugmentationTool(const std::string &t, const std::string &n, const IInterface *p)
Definition: TVAAugmentationTool.cxx:11
beamspotman.n
n
Definition: beamspotman.py:731
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_vtxDec_key
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_vtxDec_key
Definition: TVAAugmentationTool.h:32
VertexContainer.h
ToolHandle.h
AthAlgTool
Definition: AthAlgTool.h:26
DerivationFramework::TVAAugmentationTool::m_trackName
std::string m_trackName
Definition: TVAAugmentationTool.h:27