CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalTools.h
Go to the documentation of this file.
1 
10 #ifndef __EcalTools_h_
11 #define __EcalTools_h_
12 
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:
static bool isNextToBoundary(const DetId &id)
true if near a crack or ecal border
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
double dPhi(double phi1, double phi2)
Definition: JetUtil.h:30
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
Definition: DetId.h:20
static float recHitE(const DetId id, const EcalRecHitCollection &recHits)
Definition: EcalTools.cc:133
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
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
static float recHitApproxEt(const DetId id, const EcalRecHitCollection &recHits)
Definition: EcalTools.cc:143