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 
5 #ifndef DERIVATIONFRAMEWORK_EGammaCookieCutClusterTool_H
6 #define DERIVATIONFRAMEWORK_EGammaCookieCutClusterTool_H
7 
10 
16 
18 
19 namespace DerivationFramework {
20 
22  : public extends<AthAlgTool, IAugmentationTool>
23  {
24  public:
25 
26  using base_class::base_class;
27 
28  virtual StatusCode initialize() override final;
29  virtual StatusCode addBranches(const EventContext& ctx) const override final;
30 
31  private:
32 
35  this,
36  "ClusterContainerName",
37  "ForwardElectronCookieCutClusters",
38  "Name of the output cookie cut cluster container"
39  };
40 
43  this,
44  "ClusterContainerLinksName",
45  "ForwardElectronCookieCutClusters_links",
46  "Name of the output cluster container cell links container"
47  };
48 
51  this,
52  "CaloDetDescrManager",
53  "CaloDetDescrManager",
54  "SG Key for CaloDetDescrManager in the Condition Store"
55  };
56 
58  this,
59  "SGKey_electrons",
60  "ForwardElectrons",
61  "SG key of electron container"
62  };
63 
66  this,
67  "SGKey_electrons_decorations",
69  "SG keys for electrons decorations"
70  };
71 
73  Gaudi::Property<int> m_maxDelEtaCells{
74  this,
75  "MaxWindowDelEtaCells",
76  3,
77  "Size of maximum search window in eta"
78  };
79 
81  Gaudi::Property<int> m_maxDelPhiCells{
82  this,
83  "MaxWindowDelPhiCells",
84  3,
85  "Size of maximum search window in phi"
86  };
87 
89  Gaudi::Property<float> m_maxDelR{
90  this,
91  "MaxWindowDelR",
92  0.3,
93  "Cone size to collect cells around hottest-cell FCAL"
94  };
95 
97  Gaudi::Property<bool> m_fixCellWeights{
98  this,
99  "FixCellWeights",
100  false,
101  "Fix cell weights to one for the cookie-cut cluster"
102  };
103 
105  Gaudi::Property<bool> m_storeOrigMom{
106  this,
107  "StoreInputMoments",
108  false,
109  "Decorate also with the moments from the original cluster"
110  };
111 
113  Gaudi::Property<bool> m_storeCookMom{
114  this,
115  "StoreCookedMoments",
116  false,
117  "Decorate also with the moments from the cookie-cut cluster"
118  };
119 
121 
122  mutable std::once_flag m_Seen;
123  unsigned short m_nDecor = 0;
124 
126  Gaudi::Property<std::vector<int>> m_vecM{
127  this,
128  "Moments",
129  {},
130  "The moments to be added"
131  };
132 
134  Gaudi::Property<std::vector<std::string>> m_vecMName{
135  this,
136  "MomentNames",
137  {},
138  "The names of the moments to be added"
139  };
140 
141  ToolHandleArray<CaloClusterCollectionProcessor> m_clusterCorrectionTools {
142  this,
143  "ClusterMomentMaker",
144  {},
145  "The moment maker"
146  };
147 
148  };
149 
150 }
151 
152 #endif // DERIVATIONFRAMEWORK_EGammaCookieCutClusterTool_H
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:65
DerivationFramework::EGammaCookieCutClusterTool::m_clusterCorrectionTools
ToolHandleArray< CaloClusterCollectionProcessor > m_clusterCorrectionTools
Definition: EGammaCookieCutClusterTool.h:141
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:45
DerivationFramework::EGammaCookieCutClusterTool::m_nDecor
unsigned short m_nDecor
Definition: EGammaCookieCutClusterTool.h:123
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
EgammaContainer.h
DerivationFramework::EGammaCookieCutClusterTool::m_outClusterContainerKey
SG::WriteHandleKey< xAOD::CaloClusterContainer > m_outClusterContainerKey
Output cluster container.
Definition: EGammaCookieCutClusterTool.h:34
egammaClusterCookieCut.h
DerivationFramework::EGammaCookieCutClusterTool::initialize
virtual StatusCode initialize() override final
Definition: EGammaCookieCutClusterTool.cxx:21
DerivationFramework::EGammaCookieCutClusterTool::m_outClusterContainerCellLinkKey
SG::WriteHandleKey< CaloClusterCellLinkContainer > m_outClusterContainerCellLinkKey
Output cluster container cell links: should match output containter name.
Definition: EGammaCookieCutClusterTool.h:42
DerivationFramework::EGammaCookieCutClusterTool::m_maxDelR
Gaudi::Property< float > m_maxDelR
Size of cone to cookie cut on FCal.
Definition: EGammaCookieCutClusterTool.h:89
SG::WriteHandleKey< xAOD::CaloClusterContainer >
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
DerivationFramework::EGammaCookieCutClusterTool::m_fixCellWeights
Gaudi::Property< bool > m_fixCellWeights
if true, use cell weights = 1 for cookie-cut cluster
Definition: EGammaCookieCutClusterTool.h:97
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::EGammaCookieCutClusterTool
Definition: EGammaCookieCutClusterTool.h:23
DerivationFramework::EGammaCookieCutClusterTool::m_maxDelPhiCells
Gaudi::Property< int > m_maxDelPhiCells
Size of maximum search window in phi.
Definition: EGammaCookieCutClusterTool.h:81
DerivationFramework::EGammaCookieCutClusterTool::m_storeCookMom
Gaudi::Property< bool > m_storeCookMom
Decide whether or not to store cooked cluster moments.
Definition: EGammaCookieCutClusterTool.h:113
CaloClusterCollectionProcessor.h
Base class for cluster processing tools called from CaloClusterMaker.
DerivationFramework::EGammaCookieCutClusterTool::m_vecMName
Gaudi::Property< std::vector< std::string > > m_vecMName
Name of the cluster moments to be added.
Definition: EGammaCookieCutClusterTool.h:134
DerivationFramework::EGammaCookieCutClusterTool::m_maxDelEtaCells
Gaudi::Property< int > m_maxDelEtaCells
Size of maximum search window in eta.
Definition: EGammaCookieCutClusterTool.h:73
SG::ReadCondHandleKey< CaloDetDescrManager >
DerivationFramework::EGammaCookieCutClusterTool::m_Seen
std::once_flag m_Seen
Definition: EGammaCookieCutClusterTool.h:122
DerivationFramework::EGammaCookieCutClusterTool::m_caloDetDescrMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloDetDescrMgrKey
Calorimeter description.
Definition: EGammaCookieCutClusterTool.h:50
DerivationFramework::EGammaCookieCutClusterTool::addBranches
virtual StatusCode addBranches(const EventContext &ctx) const override final
Definition: EGammaCookieCutClusterTool.cxx:60
WriteDecorHandleKeyArray.h
DerivationFramework::EGammaCookieCutClusterTool::m_storeOrigMom
Gaudi::Property< bool > m_storeOrigMom
Decide whether or not to store input cluster moments.
Definition: EGammaCookieCutClusterTool.h:105
DerivationFramework::EGammaCookieCutClusterTool::m_SGKey_electrons
SG::ReadHandleKey< xAOD::EgammaContainer > m_SGKey_electrons
Definition: EGammaCookieCutClusterTool.h:57
DerivationFramework::EGammaCookieCutClusterTool::m_CookieCutPars
egammaClusterCookieCut::CookieCutPars m_CookieCutPars
Definition: EGammaCookieCutClusterTool.h:120
DerivationFramework::EGammaCookieCutClusterTool::m_vecM
Gaudi::Property< std::vector< int > > m_vecM
The cluster moments to be added.
Definition: EGammaCookieCutClusterTool.h:126
egammaClusterCookieCut::CookieCutPars
Definition: egammaClusterCookieCut.h:11