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 
9 #ifndef __EcalCleaningAlgo_h_
10 #define __EcalCleaningAlgo_h_
11 
12 
16 #include <vector>
17 
18 class DetId;
19 
20 
22 
23 
24 public:
25 
27 
33  const EcalRecHitCollection& rhs);
34 
35  void setFlags(EcalRecHitCollection& rhs);
36 
37 private:
38 
40  float e4e1(const DetId& id, const EcalRecHitCollection& rhs);
41 
50  float e6e2 (const DetId& id, const EcalRecHitCollection& rhs);
51 
52  float recHitE( const DetId id,
54  bool useTimingInfo);
55 
57  bool isNearCrack(const DetId& detid);
58 
60  const std::vector<DetId> neighbours(const DetId& id);
61 
64 
65  // Parameters for tolopogical cut
66  // mark anomalous if e> cThreshold && e4e1> a*log10(e1e1)+b
73  // when calculating e4/e1, ignore hits below this threshold
81  float e6e2thresh_;
82 
83 };
84 
85 #endif // __EcalCleaningAlgo_h_
86 
87 // Configure (x)emacs for this file ...
88 // Local Variables:
89 // mode:c++
90 // compile-command: "make -C .. -k"
91 // 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:18
void setFlags(EcalRecHitCollection &rhs)
float e6e2(const DetId &id, const EcalRecHitCollection &rhs)