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
10
#ifndef __EcalTools_h_
11
#define __EcalTools_h_
12
13
#include "
DataFormats/DetId/interface/DetId.h
"
14
#include "
DataFormats/EcalRecHit/interface/EcalRecHitCollections.h
"
15
#include "
CondFormats/EcalObjects/interface/EcalChannelStatus.h
"
16
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
17
18
class
EcalTools
{
19
20
public
:
21
23
static
float
swissCross
(
const
DetId
&
id
,
24
const
EcalRecHitCollection
& recHits,
25
float
recHitThreshold ,
26
bool
avoidIeta85=
true
);
27
29
33
static
bool
isNextToDead
(
const
DetId
&
id
,
const
edm::EventSetup
& es);
34
36
42
static
bool
isNextToDeadFromNeighbours
(
const
DetId
&
id
,
43
const
EcalChannelStatus
& chs,
44
int
chStatusThreshold) ;
45
47
static
bool
isNextToBoundary
(
const
DetId
&
id
);
48
50
static
bool
deadNeighbour
(
const
DetId
&
id
,
const
EcalChannelStatus
& chs,
51
int
chStatusThreshold,
52
int
dx,
int
dy);
53
54
private
:
55
56
static
float
recHitE
(
const
DetId
id
,
const
EcalRecHitCollection
&recHits );
57
static
float
recHitE
(
const
DetId
id
,
const
EcalRecHitCollection
& recHits,
58
int
dEta,
int
dPhi
);
59
static
float
recHitApproxEt
(
const
DetId
id
,
60
const
EcalRecHitCollection
&recHits );
61
62
63
64
};
65
66
67
#endif // __EcalTools_h_
68
69
// Configure (x)emacs for this file ...
70
// Local Variables:
71
// mode:c++
72
// compile-command: "scram b -k"
73
// 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:53
EcalRecHitCollections.h
Frameworkfwd.h
EcalTools
Definition:
EcalTools.h:18
dPhi
double dPhi(double phi1, double phi2)
Definition:
JetUtil.h:30
edm::EventSetup
Definition:
EventSetup.h:44
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:72
DetId
Definition:
DetId.h:20
EcalTools::recHitE
static float recHitE(const DetId id, const EcalRecHitCollection &recHits)
Definition:
EcalTools.cc:133
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:12
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:89
EcalTools::recHitApproxEt
static float recHitApproxEt(const DetId id, const EcalRecHitCollection &recHits)
Definition:
EcalTools.cc:143
EcalChannelStatus.h
DetId.h
EcalCondObjectContainer
Definition:
EcalCondObjectContainer.h:9
Generated for CMSSW Reference Manual by
1.8.5