src
RecoEcal
EgammaCoreTools
interface
EcalTools.h
Go to the documentation of this file.
1
9
#ifndef __EcalTools_h_
10
#define __EcalTools_h_
11
12
#include "
DataFormats/DetId/interface/DetId.h
"
13
#include "
DataFormats/EcalRecHit/interface/EcalRecHitCollections.h
"
14
#include "
CondFormats/EcalObjects/interface/EcalChannelStatus.h
"
15
#include "
RecoEcal/EgammaCoreTools/interface/EcalNextToDeadChannel.h
"
16
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
17
18
class
EcalTools
{
19
public
:
21
static
float
swissCross
(
const
DetId
&
id
,
22
const
EcalRecHitCollection
&
recHits
,
23
float
recHitThreshold
,
24
bool
avoidIeta85 =
true
);
25
27
31
static
bool
isNextToDead
(
const
DetId
&
id
,
const
EcalNextToDeadChannel
& es);
32
34
40
static
bool
isNextToDeadFromNeighbours
(
const
DetId
&
id
,
const
EcalChannelStatus
& chs,
int
chStatusThreshold);
41
43
static
bool
isNextToBoundary
(
const
DetId
&
id
);
44
46
static
bool
deadNeighbour
(
const
DetId
&
id
,
const
EcalChannelStatus
& chs,
int
chStatusThreshold,
int
dx
,
int
dy
);
47
49
static
inline
bool
isHGCalDet
(
DetId::Detector
thedet) {
50
return
(thedet ==
DetId::Forward
|| thedet ==
DetId::Hcal
|| thedet ==
DetId::HGCalEE
||
51
thedet ==
DetId::HGCalHSi
|| thedet ==
DetId::HGCalHSc
);
52
}
53
54
private
:
55
static
float
recHitE
(
const
DetId
id
,
const
EcalRecHitCollection
&
recHits
);
56
static
float
recHitE
(
const
DetId
id
,
const
EcalRecHitCollection
&
recHits
,
int
dEta
,
int
dPhi
);
57
static
float
recHitApproxEt
(
const
DetId
id
,
const
EcalRecHitCollection
&
recHits
);
58
};
59
60
#endif // __EcalTools_h_
61
62
// Configure (x)emacs for this file ...
63
// Local Variables:
64
// mode:c++
65
// compile-command: "scram b -k"
66
// End:
EcalTools::isNextToBoundary
static bool isNextToBoundary(const DetId &id)
true if near a crack or ecal border
DetId::Hcal
Definition:
DetId.h:28
EcalTools::isHGCalDet
static bool isHGCalDet(DetId::Detector thedet)
identify HGCal cells
Definition:
EcalTools.h:49
edm::SortedCollection< EcalRecHit >
FastTrackerRecHitMaskProducer_cfi.recHits
recHits
Definition:
FastTrackerRecHitMaskProducer_cfi.py:8
HLT_2024v11_cff.dPhi
dPhi
Definition:
HLT_2024v11_cff.py:10659
HLT_2024v11_cff.dEta
dEta
Definition:
HLT_2024v11_cff.py:10658
EcalRecHitCollections.h
Frameworkfwd.h
EcalTools
Definition:
EcalTools.h:18
DetId::HGCalHSi
Definition:
DetId.h:33
DetId::HGCalEE
Definition:
DetId.h:32
PVValHelper::dx
Definition:
PVValidationHelpers.h:49
OccupancyTask_cfi.recHitThreshold
recHitThreshold
Definition:
OccupancyTask_cfi.py:4
EcalTools::isNextToDeadFromNeighbours
static bool isNextToDeadFromNeighbours(const DetId &id, const EcalChannelStatus &chs, int chStatusThreshold)
same as isNextToDead, but will use information from the neighbour
Definition:
EcalTools.cc:66
EcalTools::isNextToDead
static bool isNextToDead(const DetId &id, const EcalNextToDeadChannel &es)
true if the channel is near a dead one (in the 3x3)
Definition:
EcalTools.cc:54
DetId
Definition:
DetId.h:17
DetId::Forward
Definition:
DetId.h:30
EcalNextToDeadChannel.h
DetId::Detector
Detector
Definition:
DetId.h:24
EcalTools::recHitE
static float recHitE(const DetId id, const EcalRecHitCollection &recHits)
Definition:
EcalTools.cc:123
DetId::HGCalHSc
Definition:
DetId.h:34
EcalTools::swissCross
static float swissCross(const DetId &id, const EcalRecHitCollection &recHits, float recHitThreshold, bool avoidIeta85=true)
the good old 1-e4/e1. Ignore hits below recHitThreshold
Definition:
EcalTools.cc:9
EcalTools::deadNeighbour
static bool deadNeighbour(const DetId &id, const EcalChannelStatus &chs, int chStatusThreshold, int dx, int dy)
return true if the channel at offsets dx,dy is dead
Definition:
EcalTools.cc:87
EcalTools::recHitApproxEt
static float recHitApproxEt(const DetId id, const EcalRecHitCollection &recHits)
Definition:
EcalTools.cc:134
PVValHelper::dy
Definition:
PVValidationHelpers.h:50
EcalChannelStatus.h
DetId.h
EcalCondObjectContainer
Definition:
EcalCondObjectContainer.h:13
Generated for CMSSW Reference Manual by
1.8.14