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  TruthEDDecorator(const std::string& t, const std::string& n, const IInterface* p);
37  virtual StatusCode addBranches() const override final;
38  StatusCode initialize() override final;
39 
40  private:
41 
42  Gaudi::Property<std::string> m_ed_suffix {this, "DecorationSuffix", "_rho"};
43 
44  SG::ReadHandleKey<xAOD::EventInfo> m_eventInfoKey {this, "EventInfoName", "EventInfo", "EventInfo key"};
45  SG::ReadHandleKeyArray<xAOD::EventShape> m_eventShapeKeys {this, "EventShapeKeys", {}, "Truth EventShape keys"};
46  SG::WriteDecorHandleKeyArray<xAOD::EventInfo> m_eventDensityDecorKeys {this, "EnergyDensityDecorKeys", {}, "Truth energy density decoration keys"};
47  };
48 
49 }
50 
51 #endif
WriteDecorHandleKeyArray.h
DerivationFramework::TruthEDDecorator::initialize
StatusCode initialize() override final
Definition: TruthEDDecorator.cxx:19
EventShape.h
IAugmentationTool.h
DerivationFramework::TruthEDDecorator
Definition: TruthEDDecorator.h:32
DerivationFramework::TruthEDDecorator::m_eventShapeKeys
SG::ReadHandleKeyArray< xAOD::EventShape > m_eventShapeKeys
Definition: TruthEDDecorator.h:45
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::ReadHandleKey< xAOD::EventInfo >
DerivationFramework::TruthEDDecorator::TruthEDDecorator
TruthEDDecorator(const std::string &t, const std::string &n, const IInterface *p)
Definition: TruthEDDecorator.cxx:10
DerivationFramework::TruthEDDecorator::addBranches
virtual StatusCode addBranches() const override final
Definition: TruthEDDecorator.cxx:32
DerivationFramework::TruthEDDecorator::m_ed_suffix
Gaudi::Property< std::string > m_ed_suffix
Definition: TruthEDDecorator.h:42
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
beamspotman.n
n
Definition: beamspotman.py:729
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgTool.h
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::TruthEDDecorator::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition: TruthEDDecorator.h:44
EventInfo.h
ReadHandleKeyArray.h
DerivationFramework::TruthEDDecorator::~TruthEDDecorator
~TruthEDDecorator()
Definition: TruthEDDecorator.cxx:16
DerivationFramework::TruthEDDecorator::m_eventDensityDecorKeys
SG::WriteDecorHandleKeyArray< xAOD::EventInfo > m_eventDensityDecorKeys
Definition: TruthEDDecorator.h:46