Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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 "
FWCore/Framework/interface/Frameworkfwd.h
"
16
17
class
EcalTools
{
18
19
public
:
20
22
static
float
swissCross
(
const
DetId
&
id
,
23
const
EcalRecHitCollection
&
recHits
,
24
float
recHitThreshold
,
25
bool
avoidIeta85=
true
);
26
28
32
static
bool
isNextToDead
(
const
DetId
&
id
,
const
edm::EventSetup
& es);
33
35
41
static
bool
isNextToDeadFromNeighbours
(
const
DetId
&
id
,
42
const
EcalChannelStatus
& chs,
43
int
chStatusThreshold) ;
44
46
static
bool
isNextToBoundary
(
const
DetId
&
id
);
47
49
static
bool
deadNeighbour
(
const
DetId
&
id
,
const
EcalChannelStatus
& chs,
50
int
chStatusThreshold,
51
int
dx,
int
dy);
52
53
private
:
54
55
static
float
recHitE
(
const
DetId
id
,
const
EcalRecHitCollection
&recHits );
56
static
float
recHitE
(
const
DetId
id
,
const
EcalRecHitCollection
& recHits,
57
int
dEta,
int
dPhi
);
58
static
float
recHitApproxEt
(
const
DetId
id
,
59
const
EcalRecHitCollection
&recHits );
60
61
62
63
};
64
65
66
#endif // __EcalTools_h_
67
68
// Configure (x)emacs for this file ...
69
// Local Variables:
70
// mode:c++
71
// compile-command: "scram b -k"
72
// End:
EcalTools::isNextToBoundary
static bool isNextToBoundary(const DetId &id)
true if near a crack or ecal border
edm::SortedCollection< EcalRecHit >
EcalTools::isNextToDead
static bool isNextToDead(const DetId &id, const edm::EventSetup &es)
true if the channel is near a dead one (in the 3x3)
Definition:
EcalTools.cc:52
EcalRecHitCollections.h
Frameworkfwd.h
EcalTools
Definition:
EcalTools.h:17
dPhi
double dPhi(double phi1, double phi2)
Definition:
JetUtil.h:30
edm::EventSetup
Definition:
EventSetup.h:45
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:71
DetId
Definition:
DetId.h:18
EcalTools::recHitE
static float recHitE(const DetId id, const EcalRecHitCollection &recHits)
Definition:
EcalTools.cc:132
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:11
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:88
EcalTools::recHitApproxEt
static float recHitApproxEt(const DetId id, const EcalRecHitCollection &recHits)
Definition:
EcalTools.cc:142
EcalChannelStatus.h
OccupancyTask_cfi.recHitThreshold
float recHitThreshold
Definition:
OccupancyTask_cfi.py:4
DetId.h
HLT_25ns10e33_v2_cff.recHits
tuple recHits
Definition:
HLT_25ns10e33_v2_cff.py:61597
EcalCondObjectContainer< EcalChannelStatusCode >
Generated for CMSSW Reference Manual by
1.8.5