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:
EcalCleaningAlgo::cThreshold_endcap_
float cThreshold_endcap_
Definition: EcalCleaningAlgo.h:59
EcalCleaningAlgo::e4e1_b_endcap_
float e4e1_b_endcap_
Definition: EcalCleaningAlgo.h:63
EcalCleaningAlgo
Definition: EcalCleaningAlgo.h:19
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
EcalRecHit::Flags
Flags
Definition: EcalRecHit.h:20
edm::SortedCollection< EcalRecHit >
EcalCleaningAlgo::cThreshold_barrel_
float cThreshold_barrel_
Definition: EcalCleaningAlgo.h:58
EcalCleaningAlgo::e6e2
float e6e2(const DetId &id, const EcalRecHitCollection &rhs)
Definition: EcalCleaningAlgo.cc:135
EcalCleaningAlgo::tightenCrack_e1_single_
float tightenCrack_e1_single_
Definition: EcalCleaningAlgo.h:67
EcalRecHitCollections.h
DetId
Definition: DetId.h:17
EcalCleaningAlgo::EcalCleaningAlgo
EcalCleaningAlgo(const edm::ParameterSet &p)
Definition: EcalCleaningAlgo.cc:13
EcalCleaningAlgo::neighbours
const std::vector< DetId > neighbours(const DetId &id)
return the id of the 4 neighbours in the swiss cross
Definition: EcalCleaningAlgo.cc:194
EcalCleaningAlgo::ignoreOutOfTimeThresh_
float ignoreOutOfTimeThresh_
ignore kOutOfTime above threshold when calculating e4e1
Definition: EcalCleaningAlgo.h:54
EcalCleaningAlgo::e4e1_a_barrel_
float e4e1_a_barrel_
Definition: EcalCleaningAlgo.h:60
EcalCleaningAlgo::tightenCrack_e4e1_single_
float tightenCrack_e4e1_single_
Definition: EcalCleaningAlgo.h:68
EcalCleaningAlgo::e4e1_a_endcap_
float e4e1_a_endcap_
Definition: EcalCleaningAlgo.h:62
FastTrackerRecHitMaskProducer_cfi.recHits
recHits
Definition: FastTrackerRecHitMaskProducer_cfi.py:8
EcalCleaningAlgo::setFlags
void setFlags(EcalRecHitCollection &rhs)
Definition: EcalCleaningAlgo.cc:222
EcalCleaningAlgo::checkTopology
EcalRecHit::Flags checkTopology(const DetId &id, const EcalRecHitCollection &rhs)
Definition: EcalCleaningAlgo.cc:62
EcalCleaningAlgo::e4e1Treshold_barrel_
float e4e1Treshold_barrel_
Definition: EcalCleaningAlgo.h:65
edm::ParameterSet
Definition: ParameterSet.h:47
EcalCleaningAlgo::e4e1
float e4e1(const DetId &id, const EcalRecHitCollection &rhs)
yet another function to calculate swiss cross
Definition: EcalCleaningAlgo.cc:121
EcalCleaningAlgo::e4e1_b_barrel_
float e4e1_b_barrel_
Definition: EcalCleaningAlgo.h:61
EcalCleaningAlgo::e4e1Treshold_endcap_
float e4e1Treshold_endcap_
Definition: EcalCleaningAlgo.h:66
EcalRecHit.h
EcalCleaningAlgo::e6e2thresh_
float e6e2thresh_
Definition: EcalCleaningAlgo.h:72
EcalCleaningAlgo::isNearCrack
bool isNearCrack(const DetId &detid)
in EB, check if we are near a crack
Definition: EcalCleaningAlgo.cc:214
Frameworkfwd.h
EcalCleaningAlgo::tightenCrack_e6e2_double_
float tightenCrack_e6e2_double_
Definition: EcalCleaningAlgo.h:71
EcalCleaningAlgo::recHitE
float recHitE(const DetId id, const EcalRecHitCollection &recHits, bool useTimingInfo)
Definition: EcalCleaningAlgo.cc:165
EcalCleaningAlgo::tightenCrack_e1_double_
float tightenCrack_e1_double_
Definition: EcalCleaningAlgo.h:70
EcalCleaningAlgo::cThreshold_double_
float cThreshold_double_
Definition: EcalCleaningAlgo.h:69