ATLAS Offline Software
AugmentationToolExample.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_AUGMENTATIONTOOLEXAMPLE_H
6 #define DERIVATIONFRAMEWORK_AUGMENTATIONTOOLEXAMPLE_H
7 
8 #include <string>
9 
14 
15 namespace DerivationFramework {
16 
17  class AugmentationToolExample : public extends<AthAlgTool, IAugmentationTool> {
18  public:
19  using base_class::base_class;
20  virtual StatusCode initialize() override final;
21  virtual StatusCode addBranches(const EventContext& ctx) const override final;
22 
23  private:
24  SG::ReadHandleKey<xAOD::VertexContainer> m_vertexContainerKey{this, "VertexContainer", "PrimaryVertices",""};
25  SG::ReadHandleKey<xAOD::TrackParticleContainer> m_trackPartContainerKey{this, "TrackParticleContainer", "InDetTrackParticles", "Container to be decorated"};
26  SG::WriteDecorHandleKey<xAOD::TrackParticleContainer> m_exampleDecorKey{this, "ExampleDecorKey", m_trackPartContainerKey, "DFDecoratorExample", "Decoration"};
27  SG::WriteHandleKey<std::vector<float> > m_decisionKey{this, "DecisionKey", "DFAugmentationExample", "Write decision to SG for access by downstream algs"};
28  };
29 }
30 
31 #endif // DERIVATIONFRAMEWORK_AUGMENTATIONTOOLEXAMPLE_H
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >
DerivationFramework::AugmentationToolExample::m_exampleDecorKey
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_exampleDecorKey
Definition: AugmentationToolExample.h:26
IAugmentationTool.h
DerivationFramework::AugmentationToolExample::initialize
virtual StatusCode initialize() override final
Definition: AugmentationToolExample.cxx:23
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
DerivationFramework::AugmentationToolExample::m_vertexContainerKey
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexContainerKey
Definition: AugmentationToolExample.h:24
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
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
DerivationFramework::AugmentationToolExample::m_decisionKey
SG::WriteHandleKey< std::vector< float > > m_decisionKey
Definition: AugmentationToolExample.h:27
VertexContainer.h
DerivationFramework::AugmentationToolExample
Definition: AugmentationToolExample.h:17
DerivationFramework::AugmentationToolExample::addBranches
virtual StatusCode addBranches(const EventContext &ctx) const override final
Definition: AugmentationToolExample.cxx:32
DerivationFramework::AugmentationToolExample::m_trackPartContainerKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackPartContainerKey
Definition: AugmentationToolExample.h:25
TrackParticleContainer.h