ATLAS Offline Software
EGammaCookieCutClusterTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // EGammaCookieCutClusterTool.h, (c) ATLAS Detector software
8 
9 #ifndef DERIVATIONFRAMEWORK_EGammaCookieCutClusterTool_H
10 #define DERIVATIONFRAMEWORK_EGammaCookieCutClusterTool_H
11 
14 
20 
22 
23 namespace DerivationFramework {
24 
26  : public extends<AthAlgTool, IAugmentationTool>
27  {
28  public:
29  EGammaCookieCutClusterTool(const std::string& t,
30  const std::string& n,
31  const IInterface* p);
32  StatusCode initialize() override final;
33  virtual StatusCode addBranches() const override final;
34 
35  private:
36 
39  this,
40  "ClusterContainerName",
41  "ForwardElectronCookieCutClusters",
42  "Name of the output cookie cut cluster container"
43  };
44 
47 
50  this,
51  "CaloDetDescrManager",
52  "CaloDetDescrManager",
53  "SG Key for CaloDetDescrManager in the Condition Store"
54  };
55 
57  this,
58  "SGKey_electrons",
59  "ForwardElectrons",
60  "SG key of electron container"
61  };
62 
65  this,
66  "SGKey_electrons_decorations_noConf",
67  {},
68  "SG keys for electrons decorations not really configurable"
69  };
70 
72  Gaudi::Property<int> m_maxDelEtaCells{
73  this,
74  "MaxWindowDelEtaCells",
75  3,
76  "Size of maximum search window in eta"
77  };
78 
80  Gaudi::Property<int> m_maxDelPhiCells{
81  this,
82  "MaxWindowDelPhiCells",
83  3,
84  "Size of maximum search window in phi"
85  };
86 
88  Gaudi::Property<float> m_maxDelR{
89  this,
90  "MaxWindowDelR",
91  0.3,
92  "Cone size to collect cells around hottest-cell FCAL"
93  };
94 
96  Gaudi::Property<bool> m_storeOrigMom{
97  this,
98  "StoreInputMoments",
99  false,
100  "Decorate also with the moments from the original cluster"
101  };
102 
104  Gaudi::Property<bool> m_storeCookMom{
105  this,
106  "StoreCookedMoments",
107  false,
108  "Decorate also with the moments from the cookie-cut cluster"
109  };
110 
112 
113  mutable std::once_flag m_Seen;
114  unsigned short m_nDecor = 0;
115  const std::vector<xAOD::CaloCluster::MomentType> m_vecM{
124  };
125  const std::vector<std::string> m_vecMName{
126  "SECOND_LAMBDA",
127  "LATERAL",
128  "LONGITUDINAL",
129  "ENG_FRAC_MAX",
130  "SECOND_R",
131  "CENTER_LAMBDA",
132  "SECOND_ENG_DENS",
133  "SIGNIFICANCE"
134  };
135 
136  ToolHandleArray<CaloClusterCollectionProcessor> m_clusterCorrectionTools {
137  this,
138  "ClusterMomentMaker",
139  {},
140  "The moment maker"
141  };
142 
143  };
144 
145 }
146 
147 #endif // DERIVATIONFRAMEWORK_EGammaCookieCutClusterTool_H
xAOD::CaloCluster_v1::SECOND_R
@ SECOND_R
Second Moment in .
Definition: CaloCluster_v1.h:126
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
IAugmentationTool.h
DerivationFramework::EGammaCookieCutClusterTool::m_SGKey_electrons_decorations
SG::WriteDecorHandleKeyArray< xAOD::EgammaContainer > m_SGKey_electrons_decorations
Definition: EGammaCookieCutClusterTool.h:64
DerivationFramework::EGammaCookieCutClusterTool::m_vecMName
const std::vector< std::string > m_vecMName
Definition: EGammaCookieCutClusterTool.h:125
DerivationFramework::EGammaCookieCutClusterTool::addBranches
virtual StatusCode addBranches() const override final
Definition: EGammaCookieCutClusterTool.cxx:86
xAOD::CaloCluster_v1::CENTER_LAMBDA
@ CENTER_LAMBDA
Shower depth at Cluster Centroid.
Definition: CaloCluster_v1.h:139
DerivationFramework::EGammaCookieCutClusterTool::m_clusterCorrectionTools
ToolHandleArray< CaloClusterCollectionProcessor > m_clusterCorrectionTools
Definition: EGammaCookieCutClusterTool.h:136
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
DerivationFramework::EGammaCookieCutClusterTool::m_nDecor
unsigned short m_nDecor
Definition: EGammaCookieCutClusterTool.h:114
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
xAOD::CaloCluster_v1::ENG_FRAC_MAX
@ ENG_FRAC_MAX
Energy fraction of hottest cell.
Definition: CaloCluster_v1.h:143
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
xAOD::CaloCluster_v1::SECOND_LAMBDA
@ SECOND_LAMBDA
Second Moment in .
Definition: CaloCluster_v1.h:127
EgammaContainer.h
DerivationFramework::EGammaCookieCutClusterTool::m_vecM
const std::vector< xAOD::CaloCluster::MomentType > m_vecM
Definition: EGammaCookieCutClusterTool.h:115
DerivationFramework::EGammaCookieCutClusterTool::m_outClusterContainerKey
SG::WriteHandleKey< xAOD::CaloClusterContainer > m_outClusterContainerKey
Output cluster container.
Definition: EGammaCookieCutClusterTool.h:38
egammaClusterCookieCut.h
xAOD::CaloCluster_v1::SECOND_ENG_DENS
@ SECOND_ENG_DENS
Second Moment in E/V.
Definition: CaloCluster_v1.h:147
DerivationFramework::EGammaCookieCutClusterTool::initialize
StatusCode initialize() override final
Definition: EGammaCookieCutClusterTool.cxx:32
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
DerivationFramework::EGammaCookieCutClusterTool::m_outClusterContainerCellLinkKey
SG::WriteHandleKey< CaloClusterCellLinkContainer > m_outClusterContainerCellLinkKey
Output cluster container cell links: name taken from containter name.
Definition: EGammaCookieCutClusterTool.h:46
DerivationFramework::EGammaCookieCutClusterTool::m_maxDelR
Gaudi::Property< float > m_maxDelR
Size of cone to cookie cut on FCal.
Definition: EGammaCookieCutClusterTool.h:88
SG::WriteHandleKey< xAOD::CaloClusterContainer >
beamspotman.n
n
Definition: beamspotman.py:729
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::EGammaCookieCutClusterTool
Definition: EGammaCookieCutClusterTool.h:27
DerivationFramework::EGammaCookieCutClusterTool::m_maxDelPhiCells
Gaudi::Property< int > m_maxDelPhiCells
Size of maximum search window in phi.
Definition: EGammaCookieCutClusterTool.h:80
DerivationFramework::EGammaCookieCutClusterTool::m_storeCookMom
Gaudi::Property< bool > m_storeCookMom
Decide whether or not to store cooked cluster moments.
Definition: EGammaCookieCutClusterTool.h:104
CaloClusterCollectionProcessor.h
Base class for cluster processing tools called from CaloClusterMaker.
DerivationFramework::EGammaCookieCutClusterTool::EGammaCookieCutClusterTool
EGammaCookieCutClusterTool(const std::string &t, const std::string &n, const IInterface *p)
Definition: EGammaCookieCutClusterTool.cxx:21
DerivationFramework::EGammaCookieCutClusterTool::m_maxDelEtaCells
Gaudi::Property< int > m_maxDelEtaCells
Size of maximum search window in eta.
Definition: EGammaCookieCutClusterTool.h:72
SG::ReadCondHandleKey< CaloDetDescrManager >
DerivationFramework::EGammaCookieCutClusterTool::m_Seen
std::once_flag m_Seen
Definition: EGammaCookieCutClusterTool.h:113
DerivationFramework::EGammaCookieCutClusterTool::m_caloDetDescrMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloDetDescrMgrKey
Calorimeter description.
Definition: EGammaCookieCutClusterTool.h:49
xAOD::CaloCluster_v1::SIGNIFICANCE
@ SIGNIFICANCE
Cluster significance.
Definition: CaloCluster_v1.h:160
WriteDecorHandleKeyArray.h
DerivationFramework::EGammaCookieCutClusterTool::m_storeOrigMom
Gaudi::Property< bool > m_storeOrigMom
Decide whether or not to store input cluster moments.
Definition: EGammaCookieCutClusterTool.h:96
DerivationFramework::EGammaCookieCutClusterTool::m_SGKey_electrons
SG::ReadHandleKey< xAOD::EgammaContainer > m_SGKey_electrons
Definition: EGammaCookieCutClusterTool.h:56
xAOD::CaloCluster_v1::LATERAL
@ LATERAL
Normalized lateral moment.
Definition: CaloCluster_v1.h:140
DerivationFramework::EGammaCookieCutClusterTool::m_CookieCutPars
egammaClusterCookieCut::CookieCutPars m_CookieCutPars
Definition: EGammaCookieCutClusterTool.h:111
xAOD::CaloCluster_v1::LONGITUDINAL
@ LONGITUDINAL
Normalized longitudinal moment.
Definition: CaloCluster_v1.h:141
egammaClusterCookieCut::CookieCutPars
Definition: egammaClusterCookieCut.h:11