ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
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
AthAlgTool.h
EventShape.h
IAugmentationTool.h
ReadHandleKeyArray.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKeyArray.h
DerivationFramework::TruthEDDecorator
Definition
TruthEDDecorator.h:32
DerivationFramework::TruthEDDecorator::initialize
virtual StatusCode initialize() override final
Definition
TruthEDDecorator.cxx:10
DerivationFramework::TruthEDDecorator::m_eventDensityDecorKeys
SG::WriteDecorHandleKeyArray< xAOD::EventInfo > m_eventDensityDecorKeys
Definition
TruthEDDecorator.h:44
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
DerivationFramework::TruthEDDecorator::m_eventShapeKeys
SG::ReadHandleKeyArray< xAOD::EventShape > m_eventShapeKeys
Definition
TruthEDDecorator.h:43
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
DerivationFramework
THE reconstruction tool.
Definition
CascadeTools.h:16
SG::WriteDecorHandleKeyArray
DecorHandleKeyArray< WriteDecorHandle< T, S >, WriteDecorHandleKey< T >, Gaudi::DataHandle::Writer > WriteDecorHandleKeyArray
Definition
StoreGate/StoreGate/WriteDecorHandleKeyArray.h:35
SG::ReadHandleKeyArray
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray
Definition
StoreGate/StoreGate/ReadHandleKeyArray.h:32
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0