ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
DerivationFramework
DerivationFrameworkCalo
DerivationFrameworkCalo
EGammaClusterCoreCellRecovery.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
// Decorate egamma objects with the energies in L2 and L3 that are in cells
6
// not included in the original supercluser due to the timing cut in topocluster
7
// building. This is an AOD fix for data (and mc, but effect is small for mc)
8
// produced with rel23 (and 24 ?)
9
10
#ifndef DERIVATIONFRAMEWORK_EGammaClusterCoreCellRecovery_H
11
#define DERIVATIONFRAMEWORK_EGammaClusterCoreCellRecovery_H
12
13
#include "
AthenaBaseComps/AthAlgTool.h
"
14
#include "
DerivationFrameworkInterfaces/IAugmentationTool.h
"
15
16
#include "
StoreGate/ReadHandleKey.h
"
17
#include "
StoreGate/WriteDecorHandleKeyArray.h
"
18
#include "
xAODEgamma/EgammaContainer.h
"
19
#include "
CaloEvent/CaloCellContainer.h
"
20
#include "
xAODCaloEvent/CaloCluster.h
"
21
#include "
egammaInterfaces/IegammaCellRecoveryTool.h
"
22
23
namespace
DerivationFramework
{
24
25
class
EGammaClusterCoreCellRecovery
:
public
extends<AthAlgTool, IAugmentationTool>
26
{
27
public
:
28
29
using
base_class::base_class;
30
31
virtual
StatusCode
initialize
()
override
final
;
32
virtual
StatusCode
addBranches
(
const
EventContext& ctx)
const
override
final
;
33
34
private
:
35
SG::ReadHandleKey<xAOD::EgammaContainer>
m_SGKey_photons
36
{
this
,
"SGKey_photons"
,
"Photons"
,
"SG key of photon container"
};
37
38
SG::ReadHandleKey<xAOD::EgammaContainer>
m_SGKey_electrons
39
{
this
,
"SGKey_electrons"
,
"Electrons"
,
"SG key of electron container"
};
40
41
SG::ReadHandleKey<CaloCellContainer>
m_SGKey_CaloCells
42
{
this
,
"SGKey_CaloCells"
,
"AllCalo"
,
"SG key of calo cell container"
};
43
44
SG::WriteDecorHandleKeyArray<xAOD::EgammaContainer>
45
m_SGKey_photons_decorations
{
46
this
,
47
"SGKey_photons_decorations"
,
48
m_SGKey_photons
, {
"nadded_Lr2"
,
"Eadded_Lr2"
,
"nadded_Lr3"
,
"Eadded_Lr3"
},
49
"SG keys for photon decorations"
50
};
51
52
SG::WriteDecorHandleKeyArray<xAOD::EgammaContainer>
53
m_SGKey_electrons_decorations
{
54
this
,
55
"SGKey_electrons_decorations"
,
56
m_SGKey_electrons
, {
"nadded_Lr2"
,
"Eadded_Lr2"
,
"nadded_Lr3"
,
"Eadded_Lr3"
},
57
"SG keys for electrons"
58
};
59
60
Gaudi::Property<bool>
m_UseWeightForMaxCell
{
61
this
,
62
"UseWeightForMaxCell"
,
63
false
,
64
"Use the cell weights when finding the L2 max energy cell"
65
};
66
67
68
IegammaCellRecoveryTool::Info
decorateObject
(
const
xAOD::Egamma
*&
egamma
)
const
;
69
StatusCode
findMaxECell
(
const
xAOD::CaloCluster
*clus,
70
double
&etamax,
double
&phimax)
const
;
71
73
ToolHandle<IegammaCellRecoveryTool>
m_egammaCellRecoveryTool
{
74
this
,
75
"egammaCellRecoveryTool"
,
76
"egammaCellRecoveryTool/egammaCellRecoveryTool"
,
77
"Optional tool that adds cells in L2 or L3 "
78
"that could have been rejected by timing cut"
79
};
80
81
};
82
83
}
84
85
#endif
// DERIVATIONFRAMEWORK_EGammaClusterCoreCellRecovery_H
AthAlgTool.h
CaloCellContainer.h
EgammaContainer.h
CaloCluster.h
IAugmentationTool.h
IegammaCellRecoveryTool.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKeyArray.h
DerivationFramework::EGammaClusterCoreCellRecovery
Definition
EGammaClusterCoreCellRecovery.h:26
DerivationFramework::EGammaClusterCoreCellRecovery::m_SGKey_photons_decorations
SG::WriteDecorHandleKeyArray< xAOD::EgammaContainer > m_SGKey_photons_decorations
Definition
EGammaClusterCoreCellRecovery.h:45
DerivationFramework::EGammaClusterCoreCellRecovery::decorateObject
IegammaCellRecoveryTool::Info decorateObject(const xAOD::Egamma *&egamma) const
Definition
EGammaClusterCoreCellRecovery.cxx:122
DerivationFramework::EGammaClusterCoreCellRecovery::addBranches
virtual StatusCode addBranches(const EventContext &ctx) const override final
Definition
EGammaClusterCoreCellRecovery.cxx:64
DerivationFramework::EGammaClusterCoreCellRecovery::m_SGKey_electrons_decorations
SG::WriteDecorHandleKeyArray< xAOD::EgammaContainer > m_SGKey_electrons_decorations
Definition
EGammaClusterCoreCellRecovery.h:53
DerivationFramework::EGammaClusterCoreCellRecovery::m_egammaCellRecoveryTool
ToolHandle< IegammaCellRecoveryTool > m_egammaCellRecoveryTool
Pointer to the egammaCellRecoveryTool.
Definition
EGammaClusterCoreCellRecovery.h:73
DerivationFramework::EGammaClusterCoreCellRecovery::findMaxECell
StatusCode findMaxECell(const xAOD::CaloCluster *clus, double &etamax, double &phimax) const
Definition
EGammaClusterCoreCellRecovery.cxx:154
DerivationFramework::EGammaClusterCoreCellRecovery::m_SGKey_CaloCells
SG::ReadHandleKey< CaloCellContainer > m_SGKey_CaloCells
Definition
EGammaClusterCoreCellRecovery.h:42
DerivationFramework::EGammaClusterCoreCellRecovery::initialize
virtual StatusCode initialize() override final
Definition
EGammaClusterCoreCellRecovery.cxx:20
DerivationFramework::EGammaClusterCoreCellRecovery::m_SGKey_photons
SG::ReadHandleKey< xAOD::EgammaContainer > m_SGKey_photons
Definition
EGammaClusterCoreCellRecovery.h:36
DerivationFramework::EGammaClusterCoreCellRecovery::m_SGKey_electrons
SG::ReadHandleKey< xAOD::EgammaContainer > m_SGKey_electrons
Definition
EGammaClusterCoreCellRecovery.h:39
DerivationFramework::EGammaClusterCoreCellRecovery::m_UseWeightForMaxCell
Gaudi::Property< bool > m_UseWeightForMaxCell
Definition
EGammaClusterCoreCellRecovery.h:60
IegammaCellRecoveryTool::Info
Definition
IegammaCellRecoveryTool.h:36
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
egamma
elec/gamma data class.
Definition
egamma.h:59
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
xAOD::Egamma
Egamma_v1 Egamma
Definition of the current "egamma version".
Definition
Egamma.h:17
Generated on
for ATLAS Offline Software by
1.17.0