ATLAS Offline Software
egammaCellRecoveryTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef EGAMMACALOTOOLS_EGAMMACELLRECOVERYTOOL_H
6 #define EGAMMACALOTOOLS_EGAMMACELLRECOVERYTOOL_H
7 
10 
14 
16 
17  public:
18 
20  egammaCellRecoveryTool(const std::string& type,
21  const std::string& name,
22  const IInterface* parent);
23 
26 
28  StatusCode initialize() override;
30  StatusCode finalize() override { return StatusCode::SUCCESS; }
32  virtual StatusCode execute(const xAOD::CaloCluster& cluster,
33  Info& info) const override final;
34 
35  private:
36 
37  // time cut to recover, is this safe enough given the rounding of time ?
38  static constexpr double m_timeCut = 12.;
39 
40  // phi size of layer 2 and 3 cells
41  static constexpr double m_phiSize = 2*M_PI/256;
42 
43  // Sizes of the window to search for missing cells
44  static const int m_nL2 = 5*7;
45  static const int m_nL3 = 10;
46 
47  struct existingCells {
48  bool existL2[m_nL2];
49  bool existL3[m_nL3];
50  };
51 
53  double etamax, double phimax) const;
54 
55 };
56 
57 #endif
grepfile.info
info
Definition: grepfile.py:38
egammaCellRecoveryTool::existingCells::existL3
bool existL3[m_nL3]
Definition: egammaCellRecoveryTool.h:49
egammaCellRecoveryTool::m_timeCut
static constexpr double m_timeCut
Definition: egammaCellRecoveryTool.h:38
egammaCellRecoveryTool::execute
virtual StatusCode execute(const xAOD::CaloCluster &cluster, Info &info) const override final
Method to just calculate hadronic leakage.
Definition: egammaCellRecoveryTool.cxx:22
egammaCellRecoveryTool::m_nL3
static const int m_nL3
Definition: egammaCellRecoveryTool.h:45
egammaCellRecoveryTool
tool to recover cells lost because of the topocluster timing cut
Definition: egammaCellRecoveryTool.h:15
IegammaCellRecoveryTool.h
M_PI
#define M_PI
Definition: ActiveFraction.h:11
egammaCellRecoveryTool::m_phiSize
static constexpr double m_phiSize
Definition: egammaCellRecoveryTool.h:41
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
egammaCellRecoveryTool::initialize
StatusCode initialize() override
initialize method
Definition: egammaCellRecoveryTool.cxx:17
CaloClusterFwd.h
egammaCellRecoveryTool::finalize
StatusCode finalize() override
finalize method
Definition: egammaCellRecoveryTool.h:30
egammaCellRecoveryTool::m_nL2
static const int m_nL2
Definition: egammaCellRecoveryTool.h:44
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
egammaCellRecoveryTool::buildCellArrays
existingCells buildCellArrays(const xAOD::CaloCluster *clus, double etamax, double phimax) const
Definition: egammaCellRecoveryTool.cxx:112
test_pyathena.parent
parent
Definition: test_pyathena.py:15
egammaCellRecoveryTool::existingCells::existL2
bool existL2[m_nL2]
Definition: egammaCellRecoveryTool.h:48
egammaCellRecoveryTool::existingCells
Definition: egammaCellRecoveryTool.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
egammaCellRecoveryTool::~egammaCellRecoveryTool
~egammaCellRecoveryTool()=default
Destructor.
IegammaCellRecoveryTool
Interface for the Reconstruction/egamma/egammaCaloTools/egammaCellRecoveryTool.
Definition: IegammaCellRecoveryTool.h:26
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
AthAlgTool
Definition: AthAlgTool.h:26
egammaCellRecoveryTool::egammaCellRecoveryTool
egammaCellRecoveryTool(const std::string &type, const std::string &name, const IInterface *parent)
Default constructor.
Definition: egammaCellRecoveryTool.cxx:9