ATLAS Offline Software
Loading...
Searching...
No Matches
HadronOriginDecorator.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/*
6 * @file DerivationFrameworkTop/TopHeavyFlavorFilterAugmentation.h
7 * @date Apr. 2015
8 * @brief tool to add a variable to the TruthParticles corresponding to the HF hadrons origin flag
9 */
10
11
12#ifndef DerivationFrameworkMCTruth_HadronOriginDecorator_H
13#define DerivationFrameworkMCTruth_HadronOriginDecorator_H
14
15#include <string>
16
18#include "GaudiKernel/ToolHandle.h"
24
25namespace DerivationFramework {
26
27 class HadronOriginDecorator : public extends<AthAlgTool, IAugmentationTool> {
28 public:
29
30 using base_class::base_class;
31
32 virtual StatusCode initialize() override final;
33 virtual StatusCode addBranches(const EventContext& ctx) const override final;
34
35 private:
37 {this, "TruthEventName", "TruthParticles", "ReadHandleKey for input TruthParticleContainer"};
38 // Decorator keys
40 {this, "classifierParticleOrigin", m_particlesKey, "TopHadronOriginFlag", "Top Hadron origin decoration"};
41 PublicToolHandle<DerivationFramework::HadronOriginClassifier> m_Tool{this, "ToolName", ""};
42
43
44 };
45
46}
47
48
49#endif
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.
PublicToolHandle< DerivationFramework::HadronOriginClassifier > m_Tool
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_particlesKey
virtual StatusCode initialize() override final
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_originDecoratorKey
virtual StatusCode addBranches(const EventContext &ctx) const override final
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.
THE reconstruction tool.