ATLAS Offline Software
PhysicsAnalysis
DerivationFramework
DerivationFrameworkMCTruth
src
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
16
#include "
AthenaBaseComps/AthAlgTool.h
"
17
#include "
DerivationFrameworkInterfaces/IAugmentationTool.h
"
18
19
// Members
20
#include "
StoreGate/ReadHandleKey.h
"
21
#include "
StoreGate/ReadHandleKeyArray.h
"
22
#include "
StoreGate/WriteDecorHandleKeyArray.h
"
23
#include "
xAODEventShape/EventShape.h
"
24
#include "
xAODEventInfo/EventInfo.h
"
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
Generated on Fri Nov 21 2025 21:22:34 for ATLAS Offline Software by
1.8.18