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  HadronOriginDecorator(const std::string& t, const std::string& n, const IInterface* p);
32  virtual StatusCode addBranches(const EventContext& ctx) const;
33 
34  private:
36  {this, "TruthEventName", "TruthParticles", "ReadHandleKey for input TruthParticleContainer"};
37  // Decorator keys
39  {this, "classifierParticleOrigin", m_particlesKey, "TopHadronOriginFlag", "Top Hadron origin decoration"};
40  PublicToolHandle<DerivationFramework::HadronOriginClassifier> m_Tool{this, "ToolName", ""};
41 
42 
43  };
44 
45 }
46 
47 
48 #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:36
DerivationFramework::HadronOriginDecorator::~HadronOriginDecorator
~HadronOriginDecorator()
Definition: HadronOriginDecorator.cxx:15
IAugmentationTool.h
TruthParticleContainer.h
HadronOriginClassifier.h
DerivationFramework::HadronOriginDecorator::m_originDecoratorKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_originDecoratorKey
Definition: HadronOriginDecorator.h:39
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::ReadHandleKey< xAOD::TruthParticleContainer >
DerivationFramework::HadronOriginDecorator::addBranches
virtual StatusCode addBranches(const EventContext &ctx) const
Definition: HadronOriginDecorator.cxx:25
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
DerivationFramework::HadronOriginDecorator::HadronOriginDecorator
HadronOriginDecorator(const std::string &t, const std::string &n, const IInterface *p)
Definition: HadronOriginDecorator.cxx:10
beamspotman.n
n
Definition: beamspotman.py:727
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:40
DerivationFramework::HadronOriginDecorator
Definition: HadronOriginDecorator.h:27
DerivationFramework::HadronOriginDecorator::initialize
StatusCode initialize()
Definition: HadronOriginDecorator.cxx:17