13 long_HFlongshortratio_ = 0.99;
14 short_HFlongshortratio_ = 0.99;
15 long_thresholdET_ = 0.5;
16 short_thresholdET_ = 0.5;
17 long_thresholdEnergy_ = 100;
18 short_thresholdEnergy_ = 100;
22 double longR,
double longET,
double longE)
24 long_HFlongshortratio_ = longR;
25 short_HFlongshortratio_ = shortR;
26 long_thresholdET_ = longET;
27 short_thresholdET_ = shortET;
28 long_thresholdEnergy_ = longE;
29 short_thresholdEnergy_ = shortE;
41 int ieta, iphi, depth;
51 ieta =iHF->id().ieta();
58 depth=iHF->id().depth();
64 if (long_thresholdEnergy_>0. && en<long_thresholdEnergy_)
continue;
65 if (long_thresholdET_>0. && en<long_thresholdET_*coshEta)
continue;
71 if (short_thresholdEnergy_>0. && en<short_thresholdEnergy_)
continue;
72 if (short_thresholdET_>0. && en<short_thresholdET_*coshEta)
continue;
75 iphi =iHF->id().iphi();
88 if (iHF2->id().ieta()!=ieta)
continue;
89 if (iHF2->id().iphi()!=iphi)
continue;
90 if (iHF2->id().depth()==depth)
continue;
104 ratio = (en - en2)/(en + en2);
106 if (depth==1 && ratio>long_HFlongshortratio_)
108 else if (depth==2 && ratio>short_HFlongshortratio_)
uint32_t rawId() const
get the raw id
HcalHFStatusBitFromRecHits()
bool dropChannel(const uint32_t &mystatus) const
std::vector< T >::iterator iterator
const_iterator end() const
static const double theHFEtaBounds[]
~HcalHFStatusBitFromRecHits()
void hfSetFlagFromRecHits(HFRecHitCollection &rec, HcalChannelQuality *myqual, const HcalSeverityLevelComputer *mySeverity)
uint32_t getValue() const
const Item * getValues(DetId fId) const
const_iterator begin() const