ATLAS Offline Software
TruthEDDecorator.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 TruthEDDecorator.h
7  * @author Zach Marshall
8  * @date Nov 2019
9  * @brief tool to decorate EventInfo with truth-level energy density
10  */
11 
12 #ifndef DerivationFrameworkMCTruth_TruthEDDecorator_H
13 #define DerivationFrameworkMCTruth_TruthEDDecorator_H
14 
15 // Base classes
18 
19 // Members
25 
26 // STL includes
27 #include <string>
28 #include <vector>
29 
30 namespace DerivationFramework {
31 
32  class TruthEDDecorator : public extends<AthAlgTool, IAugmentationTool> {
33 
34  public:
35 
36  using base_class::base_class;
37 
38  virtual StatusCode initialize() override final;
39  virtual StatusCode addBranches(const EventContext& ctx) const override final;
40 
41  private:
42  SG::ReadHandleKey<xAOD::EventInfo> m_eventInfoKey {this, "EventInfoName", "EventInfo", "EventInfo key"};
43  SG::ReadHandleKeyArray<xAOD::EventShape> m_eventShapeKeys {this, "EventShapeKeys", {}, "Truth EventShape keys"};
44  SG::WriteDecorHandleKeyArray<xAOD::EventInfo> m_eventDensityDecorKeys {this, "EnergyDensityDecorKeys", m_eventInfoKey, {}, "Truth energy density decoration keys"};
45  };
46 
47 }
48 
49 #endif
ReadHandleKeyArray.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
DerivationFramework::TruthEDDecorator::initialize
virtual StatusCode initialize() override final
Definition: TruthEDDecorator.cxx:10
EventShape.h
IAugmentationTool.h
DerivationFramework::TruthEDDecorator
Definition: TruthEDDecorator.h:32
DerivationFramework::TruthEDDecorator::m_eventShapeKeys
SG::ReadHandleKeyArray< xAOD::EventShape > m_eventShapeKeys
Definition: TruthEDDecorator.h:43
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:45
SG::ReadHandleKey< xAOD::EventInfo >
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::TruthEDDecorator::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition: TruthEDDecorator.h:42
DerivationFramework::TruthEDDecorator::addBranches
virtual StatusCode addBranches(const EventContext &ctx) const override final
Definition: TruthEDDecorator.cxx:20
EventInfo.h
WriteDecorHandleKeyArray.h
DerivationFramework::TruthEDDecorator::m_eventDensityDecorKeys
SG::WriteDecorHandleKeyArray< xAOD::EventInfo > m_eventDensityDecorKeys
Definition: TruthEDDecorator.h:44