ATLAS Offline Software
Loading...
Searching...
No Matches
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
15namespace 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::ReadHandleKey< xAOD::TrackParticleContainer > m_trackPartContainerKey
virtual StatusCode addBranches(const EventContext &ctx) const override final
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_exampleDecorKey
SG::WriteHandleKey< std::vector< float > > m_decisionKey
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexContainerKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
THE reconstruction tool.