CMS 3D CMS Logo

EcalCleaningAlgo.h
Go to the documentation of this file.
1 
9 #ifndef __EcalCleaningAlgo_h_
10 #define __EcalCleaningAlgo_h_
11 
15 #include <vector>
16 
17 class DetId;
18 
20 public:
22 
28 
29  void setFlags(EcalRecHitCollection& rhs);
30 
31 private:
33  float e4e1(const DetId& id, const EcalRecHitCollection& rhs);
34 
43  float e6e2(const DetId& id, const EcalRecHitCollection& rhs);
44 
45  float recHitE(const DetId id, const EcalRecHitCollection& recHits, bool useTimingInfo);
46 
48  bool isNearCrack(const DetId& detid);
49 
51  const std::vector<DetId> neighbours(const DetId& id);
52 
55 
56  // Parameters for tolopogical cut
57  // mark anomalous if e> cThreshold && e4e1> a*log10(e1e1)+b
64  // when calculating e4/e1, ignore hits below this threshold
72  float e6e2thresh_;
73 };
74 
75 #endif // __EcalCleaningAlgo_h_
76 
77 // Configure (x)emacs for this file ...
78 // Local Variables:
79 // mode:c++
80 // compile-command: "make -C .. -k"
81 // End:
const std::vector< DetId > neighbours(const DetId &id)
return the id of the 4 neighbours in the swiss cross
EcalCleaningAlgo(const edm::ParameterSet &p)
float tightenCrack_e4e1_single_
float recHitE(const DetId id, const EcalRecHitCollection &recHits, bool useTimingInfo)
float ignoreOutOfTimeThresh_
ignore kOutOfTime above threshold when calculating e4e1
EcalRecHit::Flags checkTopology(const DetId &id, const EcalRecHitCollection &rhs)
float e4e1(const DetId &id, const EcalRecHitCollection &rhs)
yet another function to calculate swiss cross
bool isNearCrack(const DetId &detid)
in EB, check if we are near a crack
float tightenCrack_e6e2_double_
Definition: DetId.h:17
void setFlags(EcalRecHitCollection &rhs)
float e6e2(const DetId &id, const EcalRecHitCollection &rhs)