src
RecoEcal
EgammaCoreTools
interface
EcalClusterSeverityLevelAlgo.h
Go to the documentation of this file.
1
#ifndef RecoEcal_EgammaCoreTools_EcalClusterSeverityLevelAlgo_hh
2
#define RecoEcal_EgammaCoreTools_EcalClusterSeverityLevelAlgo_hh
3
4
#include "
DataFormats/DetId/interface/DetId.h
"
5
#include "
DataFormats/CaloRecHit/interface/CaloCluster.h
"
6
#include "
DataFormats/EcalRecHit/interface/EcalRecHitCollections.h
"
7
#include "
RecoLocalCalo/EcalRecAlgos/interface/EcalSeverityLevelAlgo.h
"
8
#include "
CondFormats/EcalObjects/interface/EcalChannelStatus.h
"
9
#include "
FWCore/Framework/interface/EventSetup.h
"
10
11
class
CaloTopology
;
12
class
EBDetId
;
13
class
EcalClusterSeverityLevelAlgo
{
14
public
:
15
// the severity is the fraction of cluster energy
16
// taken by good channels
17
// (e.g. not noisy, dead and recovered etc.)
18
static
float
goodFraction
(
const
reco::CaloCluster
&,
const
EcalRecHitCollection
&,
const
EcalSeverityLevelAlgo
&);
19
// fraction of SC energy around closest problematic
20
static
float
fractionAroundClosestProblematic
(
const
reco::CaloCluster
&,
21
const
EcalRecHitCollection
&,
22
const
CaloTopology
*
topology
,
23
const
EcalSeverityLevelAlgo
&);
24
// retrieve closest problematic channel wrt seed crystal using as distance sqrt(ieta^2+ieta^2+iphi^2+iphi^2). Return a null detId in case not found within a search region of 11 (ieta) x 51 (iphi)
25
static
DetId
closestProblematic
(
const
reco::CaloCluster
&,
26
const
EcalRecHitCollection
&,
27
const
CaloTopology
*
topology
,
28
const
EcalSeverityLevelAlgo
&);
29
// retrieve the distance in ieta,iphi (number of crystals) of the closest problematic channel wrt seed crystal (defined as above)
30
// return -1,-1 if no crystal is found within a search region of 11 (eta) x 51 (phi)
31
static
std::pair<int, int>
etaphiDistanceClosestProblematic
(
const
reco::CaloCluster
&,
32
const
EcalRecHitCollection
&,
33
const
CaloTopology
*
topology
,
34
const
EcalSeverityLevelAlgo
&);
35
};
36
37
#endif
pfClusterHBHEAlpaka_cff.topology
topology
Definition:
pfClusterHBHEAlpaka_cff.py:53
EBDetId
Definition:
EBDetId.h:17
edm::SortedCollection< EcalRecHit >
EcalClusterSeverityLevelAlgo::etaphiDistanceClosestProblematic
static std::pair< int, int > etaphiDistanceClosestProblematic(const reco::CaloCluster &, const EcalRecHitCollection &, const CaloTopology *topology, const EcalSeverityLevelAlgo &)
Definition:
EcalClusterSeverityLevelAlgo.cc:112
EventSetup.h
EcalRecHitCollections.h
EcalSeverityLevelAlgo.h
CaloCluster.h
EcalClusterSeverityLevelAlgo
Definition:
EcalClusterSeverityLevelAlgo.h:13
EcalClusterSeverityLevelAlgo::goodFraction
static float goodFraction(const reco::CaloCluster &, const EcalRecHitCollection &, const EcalSeverityLevelAlgo &)
Definition:
EcalClusterSeverityLevelAlgo.cc:10
EcalClusterSeverityLevelAlgo::fractionAroundClosestProblematic
static float fractionAroundClosestProblematic(const reco::CaloCluster &, const EcalRecHitCollection &, const CaloTopology *topology, const EcalSeverityLevelAlgo &)
Definition:
EcalClusterSeverityLevelAlgo.cc:36
reco::CaloCluster
Definition:
CaloCluster.h:31
DetId
Definition:
DetId.h:17
EcalClusterSeverityLevelAlgo::closestProblematic
static DetId closestProblematic(const reco::CaloCluster &, const EcalRecHitCollection &, const CaloTopology *topology, const EcalSeverityLevelAlgo &)
Definition:
EcalClusterSeverityLevelAlgo.cc:74
CaloTopology
Definition:
CaloTopology.h:19
EcalChannelStatus.h
DetId.h
EcalSeverityLevelAlgo
Definition:
EcalSeverityLevelAlgo.h:33
Generated for CMSSW Reference Manual by
1.8.14