ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
egamma
egammaCaloTools
src
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
11
#include "
AthenaBaseComps/AthAlgTool.h
"
12
#include "
xAODCaloEvent/CaloClusterFwd.h
"
13
#include "
egammaInterfaces/IegammaCellRecoveryTool.h
"
14
15
class
egammaCellRecoveryTool
:
public
AthAlgTool
,
virtual
public
IegammaCellRecoveryTool
{
16
17
public
:
18
20
egammaCellRecoveryTool
(
const
std::string&
type
,
21
const
std::string& name,
22
const
IInterface* parent);
23
25
~egammaCellRecoveryTool
() =
default
;
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
52
existingCells
buildCellArrays
(
const
xAOD::CaloCluster
*clus,
53
double
etamax,
double
phimax)
const
;
54
55
};
56
57
#endif
M_PI
#define M_PI
Definition
ActiveFraction.h:14
AthAlgTool.h
CaloClusterFwd.h
IegammaCellRecoveryTool.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
IegammaCellRecoveryTool
Interface for the Reconstruction/egamma/egammaCaloTools/egammaCellRecoveryTool.
Definition
IegammaCellRecoveryTool.h:26
egammaCellRecoveryTool::m_nL3
static const int m_nL3
Definition
egammaCellRecoveryTool.h:45
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::egammaCellRecoveryTool
egammaCellRecoveryTool(const std::string &type, const std::string &name, const IInterface *parent)
Default constructor.
Definition
egammaCellRecoveryTool.cxx:9
egammaCellRecoveryTool::initialize
StatusCode initialize() override
initialize method
Definition
egammaCellRecoveryTool.cxx:17
egammaCellRecoveryTool::m_nL2
static const int m_nL2
Definition
egammaCellRecoveryTool.h:44
egammaCellRecoveryTool::m_phiSize
static constexpr double m_phiSize
Definition
egammaCellRecoveryTool.h:41
egammaCellRecoveryTool::m_timeCut
static constexpr double m_timeCut
Definition
egammaCellRecoveryTool.h:38
egammaCellRecoveryTool::buildCellArrays
existingCells buildCellArrays(const xAOD::CaloCluster *clus, double etamax, double phimax) const
Definition
egammaCellRecoveryTool.cxx:112
egammaCellRecoveryTool::~egammaCellRecoveryTool
~egammaCellRecoveryTool()=default
Destructor.
egammaCellRecoveryTool::finalize
StatusCode finalize() override
finalize method
Definition
egammaCellRecoveryTool.h:30
xAOD::CaloCluster
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloCluster.h:19
type
egammaCellRecoveryTool::existingCells
Definition
egammaCellRecoveryTool.h:47
egammaCellRecoveryTool::existingCells::existL2
bool existL2[m_nL2]
Definition
egammaCellRecoveryTool.h:48
egammaCellRecoveryTool::existingCells::existL3
bool existL3[m_nL3]
Definition
egammaCellRecoveryTool.h:49
Generated on
for ATLAS Offline Software by
1.17.0