ATLAS Offline Software
Loading...
Searching...
No Matches
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
30namespace 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
Property holding a SG store/key/clid from which a ReadHandle is made.
virtual StatusCode initialize() override final
SG::WriteDecorHandleKeyArray< xAOD::EventInfo > m_eventDensityDecorKeys
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
virtual StatusCode addBranches(const EventContext &ctx) const override final
SG::ReadHandleKeyArray< xAOD::EventShape > m_eventShapeKeys
Property holding a SG store/key/clid from which a ReadHandle is made.
THE reconstruction tool.
DecorHandleKeyArray< WriteDecorHandle< T, S >, WriteDecorHandleKey< T >, Gaudi::DataHandle::Writer > WriteDecorHandleKeyArray
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray