ATLAS Offline Software
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 
25 namespace 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
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer >
DerivationFramework::HadronOriginDecorator::m_particlesKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_particlesKey
Definition: HadronOriginDecorator.h:37
DerivationFramework::HadronOriginDecorator::initialize
virtual StatusCode initialize() override final
Definition: HadronOriginDecorator.cxx:10
IAugmentationTool.h
TruthParticleContainer.h
HadronOriginClassifier.h
DerivationFramework::HadronOriginDecorator::m_originDecoratorKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_originDecoratorKey
Definition: HadronOriginDecorator.h:40
SG::ReadHandleKey< xAOD::TruthParticleContainer >
DerivationFramework::HadronOriginDecorator::addBranches
virtual StatusCode addBranches(const EventContext &ctx) const override final
Definition: HadronOriginDecorator.cxx:18
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
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::HadronOriginDecorator::m_Tool
PublicToolHandle< DerivationFramework::HadronOriginClassifier > m_Tool
Definition: HadronOriginDecorator.h:41
DerivationFramework::HadronOriginDecorator
Definition: HadronOriginDecorator.h:27