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 
9 #ifndef __EcalTools_h_
10 #define __EcalTools_h_
11 
16 
17 class EcalTools{
18 
19 public:
20 
22  static float swissCross( const DetId& id,
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:
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:52
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:71
Definition: DetId.h:18
static float recHitE(const DetId id, const EcalRecHitCollection &recHits)
Definition: EcalTools.cc:132
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
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
static float recHitApproxEt(const DetId id, const EcalRecHitCollection &recHits)
Definition: EcalTools.cc:142