CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalCleaningAlgo.h
Go to the documentation of this file.
1 
10 #ifndef __EcalCleaningAlgo_h_
11 #define __EcalCleaningAlgo_h_
12 
13 
17 #include <vector>
18 
19 class DetId;
20 
21 
23 
24 
25 public:
26 
28 
34  const EcalRecHitCollection& rhs);
35 
36  void setFlags(EcalRecHitCollection& rhs);
37 
38 private:
39 
41  float e4e1(const DetId& id, const EcalRecHitCollection& rhs);
42 
51  float e6e2 (const DetId& id, const EcalRecHitCollection& rhs);
52 
53  float recHitE( const DetId id,
54  const EcalRecHitCollection &recHits,
55  bool useTimingInfo);
56 
58  bool isNearCrack(const DetId& detid);
59 
61  const std::vector<DetId> neighbours(const DetId& id);
62 
65 
66  // Parameters for tolopogical cut
67  // mark anomalous if e> cThreshold && e4e1> a*log10(e1e1)+b
74  // when calculating e4/e1, ignore hits below this threshold
82  float e6e2thresh_;
83 
84 };
85 
86 #endif // __EcalCleaningAlgo_h_
87 
88 // Configure (x)emacs for this file ...
89 // Local Variables:
90 // mode:c++
91 // compile-command: "make -C .. -k"
92 // 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:20
void setFlags(EcalRecHitCollection &rhs)
float e6e2(const DetId &id, const EcalRecHitCollection &rhs)