ATLAS Offline Software
EGammaClusterCoreCellRecovery.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // EGammaClusterCoreCellRecovery.h, (c) ATLAS Detector software
8 // Decorate egamma objects with the energies in L2 and L3 that are in cells
9 // not included in the original supercluser due to the timing cut in topocluster
10 // building. This is an AOD fix for data (and mc, but effect is small for mc)
11 // produced with rel23 (and 24 ?)
12 
13 #ifndef DERIVATIONFRAMEWORK_EGammaClusterCoreCellRecovery_H
14 #define DERIVATIONFRAMEWORK_EGammaClusterCoreCellRecovery_H
15 
18 
25 
26 namespace DerivationFramework {
27 
28  class EGammaClusterCoreCellRecovery : public extends<AthAlgTool, IAugmentationTool>
29  {
30  public:
31  EGammaClusterCoreCellRecovery(const std::string& t,
32  const std::string& n,
33  const IInterface* p);
36  StatusCode finalize() { return StatusCode::SUCCESS; }
37  virtual StatusCode addBranches() const;
38 
39  private:
41  { this, "SGKey_photons", "Photons", "SG key of photon container" };
42 
44  { this, "SGKey_electrons", "Electrons", "SG key of electron container" };
45 
47  { this, "SGKey_CaloCells", "AllCalo", "SG key of calo cell container" };
48 
51  this,
52  "SGKey_photons_decorations_noConf",
53  {},
54  "SG keys for photon decorations not really configurable"
55  };
56 
59  this,
60  "SGKey_electrons_decorations_noConf",
61  {},
62  "SG keys for electrons decorations not really configurable"
63  };
64 
65  Gaudi::Property<bool> m_UseWeightForMaxCell{
66  this,
67  "UseWeightForMaxCell",
68  false,
69  "Use the cell weights when finding the L2 max energy cell"
70  };
71 
72 
75  double &etamax, double &phimax) const;
76 
78  ToolHandle<IegammaCellRecoveryTool> m_egammaCellRecoveryTool{
79  this,
80  "egammaCellRecoveryTool",
81  "egammaCellRecoveryTool/egammaCellRecoveryTool",
82  "Optional tool that adds cells in L2 or L3 "
83  "that could have been rejected by timing cut"
84  };
85 
86  };
87 
88 }
89 
90 #endif // DERIVATIONFRAMEWORK_EGammaClusterCoreCellRecovery_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
DerivationFramework::EGammaClusterCoreCellRecovery::initialize
StatusCode initialize()
Definition: EGammaClusterCoreCellRecovery.cxx:32
IegammaCellRecoveryTool.h
IAugmentationTool.h
DerivationFramework::EGammaClusterCoreCellRecovery::addBranches
virtual StatusCode addBranches() const
Definition: EGammaClusterCoreCellRecovery.cxx:92
IegammaCellRecoveryTool::Info
Definition: IegammaCellRecoveryTool.h:36
DerivationFramework::EGammaClusterCoreCellRecovery::m_SGKey_electrons_decorations
SG::WriteDecorHandleKeyArray< xAOD::EgammaContainer > m_SGKey_electrons_decorations
Definition: EGammaClusterCoreCellRecovery.h:58
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
xAOD::Egamma_v1
Definition: Egamma_v1.h:56
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
DerivationFramework::EGammaClusterCoreCellRecovery::decorateObject
IegammaCellRecoveryTool::Info decorateObject(const xAOD::Egamma *&egamma) const
Definition: EGammaClusterCoreCellRecovery.cxx:151
DerivationFramework::EGammaClusterCoreCellRecovery::m_SGKey_CaloCells
SG::ReadHandleKey< CaloCellContainer > m_SGKey_CaloCells
Definition: EGammaClusterCoreCellRecovery.h:47
DerivationFramework::EGammaClusterCoreCellRecovery::~EGammaClusterCoreCellRecovery
~EGammaClusterCoreCellRecovery()=default
egamma
Definition: egamma.h:58
EgammaContainer.h
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:62
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
DerivationFramework::EGammaClusterCoreCellRecovery::EGammaClusterCoreCellRecovery
EGammaClusterCoreCellRecovery(const std::string &t, const std::string &n, const IInterface *p)
Definition: EGammaClusterCoreCellRecovery.cxx:22
DerivationFramework::EGammaClusterCoreCellRecovery::m_SGKey_photons_decorations
SG::WriteDecorHandleKeyArray< xAOD::EgammaContainer > m_SGKey_photons_decorations
Definition: EGammaClusterCoreCellRecovery.h:50
CaloCluster.h
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::EGammaClusterCoreCellRecovery::finalize
StatusCode finalize()
Definition: EGammaClusterCoreCellRecovery.h:36
DerivationFramework::EGammaClusterCoreCellRecovery::m_egammaCellRecoveryTool
ToolHandle< IegammaCellRecoveryTool > m_egammaCellRecoveryTool
Pointer to the egammaCellRecoveryTool.
Definition: EGammaClusterCoreCellRecovery.h:78
CaloCellContainer.h
WriteDecorHandleKeyArray.h
DerivationFramework::EGammaClusterCoreCellRecovery::findMaxECell
StatusCode findMaxECell(const xAOD::CaloCluster *clus, double &etamax, double &phimax) const
Definition: EGammaClusterCoreCellRecovery.cxx:183
DerivationFramework::EGammaClusterCoreCellRecovery::m_SGKey_photons
SG::ReadHandleKey< xAOD::EgammaContainer > m_SGKey_photons
Definition: EGammaClusterCoreCellRecovery.h:41
DerivationFramework::EGammaClusterCoreCellRecovery::m_UseWeightForMaxCell
Gaudi::Property< bool > m_UseWeightForMaxCell
Definition: EGammaClusterCoreCellRecovery.h:65
DerivationFramework::EGammaClusterCoreCellRecovery::m_SGKey_electrons
SG::ReadHandleKey< xAOD::EgammaContainer > m_SGKey_electrons
Definition: EGammaClusterCoreCellRecovery.h:44
DerivationFramework::EGammaClusterCoreCellRecovery
Definition: EGammaClusterCoreCellRecovery.h:29