ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
DerivationFramework
DerivationFrameworkCalo
DerivationFrameworkCalo
MaxCellDecorator.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
#ifndef DERIVATIONFRAMEWORK_MAXCELLDECORATOR_H
6
#define DERIVATIONFRAMEWORK_MAXCELLDECORATOR_H
7
8
#include <string>
9
10
#include "
AthenaBaseComps/AthAlgTool.h
"
11
#include "
DerivationFrameworkInterfaces/IAugmentationTool.h
"
12
//
13
#include "GaudiKernel/EventContext.h"
14
#include "
LArCabling/LArOnOffIdMapping.h
"
15
#include "
StoreGate/ReadCondHandleKey.h
"
16
#include "
StoreGate/ReadHandleKey.h
"
17
#include "
StoreGate/WriteDecorHandleKeyArray.h
"
18
#include "
xAODEgamma/EgammaContainer.h
"
19
#include "
xAODCaloEvent/CaloClusterContainer.h
"
20
#include "
xAODCaloEvent/CaloCluster.h
"
21
#include "
xAODTau/TauJetContainer.h
"
22
#include "
xAODJet/Jet.h
"
23
#include "
xAODPFlow/PFO.h
"
24
#include "
xAODPFlow/FlowElement.h
"
25
26
namespace
DerivationFramework
{
27
28
class
MaxCellDecorator
:
public
extends<AthAlgTool, IAugmentationTool>
29
{
30
public
:
31
32
using
base_class::base_class;
33
34
virtual
StatusCode
initialize
()
override
final
;
35
virtual
StatusCode
addBranches
(
const
EventContext& ctx)
const
override
final
;
36
37
struct
calculation
38
{
39
float
maxEcell_time
= -9999.9;
40
float
maxEcell_energy
= -9999.9;
41
int
maxEcell_gain
= -1;
42
uint64_t
maxEcell_onlId
= 0;
43
float
maxEcell_x
= -9999.9;
44
float
maxEcell_y
= -9999.9;
45
float
maxEcell_z
= -9999.9;
46
};
47
48
private
:
49
SG::ReadCondHandleKey<LArOnOffIdMapping>
m_cablingKey
{
50
this
,
51
"CablingKey"
,
52
"LArOnOffIdMap"
,
53
"SG Key of LArOnOffIdMapping object"
54
};
55
56
SG::ReadHandleKey<xAOD::EgammaContainer>
57
m_SGKey_photons
{
this
,
"SGKey_photons"
,
""
,
"SG key of photon container"
};
58
59
SG::ReadHandleKey<xAOD::EgammaContainer>
m_SGKey_electrons
{
60
this
,
61
"SGKey_electrons"
,
62
""
,
63
"SG key of electron container"
64
};
65
69
SG::ReadHandleKey<xAOD::CaloClusterContainer>
m_SGKey_egammaClusters
{
70
this
,
71
"SGKey_egammaClusters"
,
72
""
,
73
"SG key of cluster container associated to standard egammas"
74
};
75
76
SG::ReadHandleKey<xAOD::TauJetContainer>
77
m_SGKey_taus
{
this
,
"SGKey_taus"
,
""
,
"SG key of tau container"
};
78
79
SG::ReadHandleKey<xAOD::JetContainer>
80
m_SGKey_jets
{
this
,
"SGKey_jets"
,
""
,
"SG key of jet container"
};
81
83
Gaudi::Property<double>
m_dRLRTegClusegClusMax
{
84
this
,
"dRLRTegClusegClusMax"
,
85
0.05,
86
"Maximum delta R to match LRT egammaCluster to std egammaCluster"
87
};
88
89
SG::WriteDecorHandleKeyArray<xAOD::EgammaContainer>
90
m_SGKey_photons_decorations
{
91
this
,
92
"SGKey_photons_decorations"
,
93
m_SGKey_photons
, {
"maxEcell_time"
,
"maxEcell_energy"
,
"maxEcell_gain"
,
94
"maxEcell_onlId"
,
"maxEcell_x"
,
"maxEcell_y"
,
"maxEcell_z"
},
95
"SG keys for photon decorations not really configurable"
96
};
97
98
SG::WriteDecorHandleKeyArray<xAOD::EgammaContainer>
99
m_SGKey_electrons_decorations
{
100
this
,
101
"SGKey_electrons_decorations"
,
102
m_SGKey_electrons
, {
"maxEcell_time"
,
"maxEcell_energy"
,
"maxEcell_gain"
,
103
"maxEcell_onlId"
,
"maxEcell_x"
,
"maxEcell_y"
,
"maxEcell_z"
},
104
"SG keys for electrons decorations not really configurable"
105
};
106
107
SG::WriteDecorHandleKeyArray<xAOD::TauJetContainer>
108
m_SGKey_taus_decorations
{
109
this
,
110
"SGKey_taus_decorations"
,
111
m_SGKey_taus
, {
"maxEcell_time"
,
"maxEcell_energy"
,
"maxEcell_gain"
,
112
"maxEcell_onlId"
,
"maxEcell_x"
,
"maxEcell_y"
,
"maxEcell_z"
},
113
"SG keys for tau decorations not really configurable"
114
};
115
116
SG::WriteDecorHandleKeyArray<xAOD::JetContainer>
117
m_SGKey_jets_decorations
{
118
this
,
119
"SGKey_jets_decorations"
,
120
m_SGKey_jets
, {
"maxEcell_time"
,
"maxEcell_energy"
,
"maxEcell_gain"
,
121
"maxEcell_onlId"
,
"maxEcell_x"
,
"maxEcell_y"
,
"maxEcell_z"
},
122
"SG keys for jet decorations not really configurable"
123
};
124
125
calculation
decorateObject
(
const
xAOD::CaloCluster
* cluster,
126
const
EventContext& ctx)
const
;
127
};
128
}
129
130
#endif
// DERIVATIONFRAMEWORK_MAXCELLDECORATOR_H
AthAlgTool.h
EgammaContainer.h
CaloClusterContainer.h
CaloCluster.h
Jet.h
FlowElement.h
IAugmentationTool.h
LArOnOffIdMapping.h
PFO.h
ReadCondHandleKey.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKeyArray.h
TauJetContainer.h
DerivationFramework::MaxCellDecorator
Definition
MaxCellDecorator.h:29
DerivationFramework::MaxCellDecorator::m_SGKey_jets_decorations
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_SGKey_jets_decorations
Definition
MaxCellDecorator.h:117
DerivationFramework::MaxCellDecorator::m_SGKey_taus
SG::ReadHandleKey< xAOD::TauJetContainer > m_SGKey_taus
Definition
MaxCellDecorator.h:77
DerivationFramework::MaxCellDecorator::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition
MaxCellDecorator.h:49
DerivationFramework::MaxCellDecorator::m_SGKey_photons
SG::ReadHandleKey< xAOD::EgammaContainer > m_SGKey_photons
Definition
MaxCellDecorator.h:57
DerivationFramework::MaxCellDecorator::m_SGKey_taus_decorations
SG::WriteDecorHandleKeyArray< xAOD::TauJetContainer > m_SGKey_taus_decorations
Definition
MaxCellDecorator.h:108
DerivationFramework::MaxCellDecorator::m_SGKey_electrons_decorations
SG::WriteDecorHandleKeyArray< xAOD::EgammaContainer > m_SGKey_electrons_decorations
Definition
MaxCellDecorator.h:99
DerivationFramework::MaxCellDecorator::m_SGKey_egammaClusters
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_SGKey_egammaClusters
This should be only for using run 2 reprocessing, which misses the cell link from LRT electron cluste...
Definition
MaxCellDecorator.h:69
DerivationFramework::MaxCellDecorator::m_SGKey_electrons
SG::ReadHandleKey< xAOD::EgammaContainer > m_SGKey_electrons
Definition
MaxCellDecorator.h:59
DerivationFramework::MaxCellDecorator::decorateObject
calculation decorateObject(const xAOD::CaloCluster *cluster, const EventContext &ctx) const
Definition
MaxCellDecorator.cxx:320
DerivationFramework::MaxCellDecorator::m_dRLRTegClusegClusMax
Gaudi::Property< double > m_dRLRTegClusegClusMax
matching cone size
Definition
MaxCellDecorator.h:83
DerivationFramework::MaxCellDecorator::initialize
virtual StatusCode initialize() override final
Definition
MaxCellDecorator.cxx:15
DerivationFramework::MaxCellDecorator::m_SGKey_photons_decorations
SG::WriteDecorHandleKeyArray< xAOD::EgammaContainer > m_SGKey_photons_decorations
Definition
MaxCellDecorator.h:90
DerivationFramework::MaxCellDecorator::m_SGKey_jets
SG::ReadHandleKey< xAOD::JetContainer > m_SGKey_jets
Definition
MaxCellDecorator.h:80
DerivationFramework::MaxCellDecorator::addBranches
virtual StatusCode addBranches(const EventContext &ctx) const override final
Definition
MaxCellDecorator.cxx:53
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
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
xAOD::CaloCluster
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloCluster.h:19
DerivationFramework::MaxCellDecorator::calculation
Definition
MaxCellDecorator.h:38
DerivationFramework::MaxCellDecorator::calculation::maxEcell_gain
int maxEcell_gain
Definition
MaxCellDecorator.h:41
DerivationFramework::MaxCellDecorator::calculation::maxEcell_z
float maxEcell_z
Definition
MaxCellDecorator.h:45
DerivationFramework::MaxCellDecorator::calculation::maxEcell_onlId
uint64_t maxEcell_onlId
Definition
MaxCellDecorator.h:42
DerivationFramework::MaxCellDecorator::calculation::maxEcell_energy
float maxEcell_energy
Definition
MaxCellDecorator.h:40
DerivationFramework::MaxCellDecorator::calculation::maxEcell_x
float maxEcell_x
Definition
MaxCellDecorator.h:43
DerivationFramework::MaxCellDecorator::calculation::maxEcell_y
float maxEcell_y
Definition
MaxCellDecorator.h:44
DerivationFramework::MaxCellDecorator::calculation::maxEcell_time
float maxEcell_time
Definition
MaxCellDecorator.h:39
Generated on
for ATLAS Offline Software by
1.17.0