ATLAS Offline Software
EGammaClusterCoreCellRecovery.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 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 
24 
25 
26 namespace DerivationFramework {
27 
29  : public AthAlgTool
30  , public IAugmentationTool
31  {
32  public:
33  EGammaClusterCoreCellRecovery(const std::string& t,
34  const std::string& n,
35  const IInterface* p);
38  StatusCode finalize() { return StatusCode::SUCCESS; }
39  virtual StatusCode addBranches() const;
40 
41  private:
43  { this, "SGKey_photons", "Photons", "SG key of photon container" };
44 
46  { this, "SGKey_electrons", "Electrons", "SG key of electron container" };
47 
50  this,
51  "SGKey_photons_decorations_noConf",
52  {},
53  "SG keys for photon decorations not really configurable"
54  };
55 
58  this,
59  "SGKey_electrons_decorations_noConf",
60  {},
61  "SG keys for electrons decorations not really configurable"
62  };
63 
64  Gaudi::Property<bool> m_UseWeightForMaxCell{
65  this,
66  "UseWeightForMaxCell",
67  false,
68  "Use the cell weights when finding the L2 max energy cell"
69  };
70 
71 
74  double &etamax, double &phimax) const;
75 
77  ToolHandle<IegammaCellRecoveryTool> m_egammaCellRecoveryTool{
78  this,
79  "egammaCellRecoveryTool",
80  "egammaCellRecoveryTool/egammaCellRecoveryTool",
81  "Optional tool that adds cells in L2 or L3 "
82  "that could have been rejected by timing cut"
83  };
84 
85  };
86 
87 }
88 
89 #endif // DERIVATIONFRAMEWORK_EGammaClusterCoreCellRecovery_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
DerivationFramework::EGammaClusterCoreCellRecovery::initialize
StatusCode initialize()
Definition: EGammaClusterCoreCellRecovery.cxx:33
IegammaCellRecoveryTool.h
IAugmentationTool.h
DerivationFramework::EGammaClusterCoreCellRecovery::addBranches
virtual StatusCode addBranches() const
Pass the thinning service
Definition: EGammaClusterCoreCellRecovery.cxx:90
IegammaCellRecoveryTool::Info
Definition: IegammaCellRecoveryTool.h:36
DerivationFramework::EGammaClusterCoreCellRecovery::m_SGKey_electrons_decorations
SG::WriteDecorHandleKeyArray< xAOD::EgammaContainer > m_SGKey_electrons_decorations
Definition: EGammaClusterCoreCellRecovery.h:57
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:149
DerivationFramework::EGammaClusterCoreCellRecovery::~EGammaClusterCoreCellRecovery
~EGammaClusterCoreCellRecovery()=default
DerivationFramework::IAugmentationTool
Definition: IAugmentationTool.h:24
egamma
Definition: egamma.h:58
EgammaContainer.h
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
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:49
CaloCluster.h
beamspotman.n
n
Definition: beamspotman.py:731
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:38
DerivationFramework::EGammaClusterCoreCellRecovery::m_egammaCellRecoveryTool
ToolHandle< IegammaCellRecoveryTool > m_egammaCellRecoveryTool
Pointer to the egammaCellRecoveryTool.
Definition: EGammaClusterCoreCellRecovery.h:77
WriteDecorHandleKeyArray.h
DerivationFramework::EGammaClusterCoreCellRecovery::findMaxECell
StatusCode findMaxECell(const xAOD::CaloCluster *clus, double &etamax, double &phimax) const
Definition: EGammaClusterCoreCellRecovery.cxx:181
DerivationFramework::EGammaClusterCoreCellRecovery::m_SGKey_photons
SG::ReadHandleKey< xAOD::EgammaContainer > m_SGKey_photons
Definition: EGammaClusterCoreCellRecovery.h:43
DerivationFramework::EGammaClusterCoreCellRecovery::m_UseWeightForMaxCell
Gaudi::Property< bool > m_UseWeightForMaxCell
Definition: EGammaClusterCoreCellRecovery.h:64
AthAlgTool
Definition: AthAlgTool.h:26
DerivationFramework::EGammaClusterCoreCellRecovery::m_SGKey_electrons
SG::ReadHandleKey< xAOD::EgammaContainer > m_SGKey_electrons
Definition: EGammaClusterCoreCellRecovery.h:46
DerivationFramework::EGammaClusterCoreCellRecovery
Definition: EGammaClusterCoreCellRecovery.h:31