36 const std::vector<double>& shortEnergyParams,
37 const std::vector<double>& shortETParams,
38 const std::vector<double>& longR,
39 const std::vector<double>& longEnergyParams,
40 const std::vector<double>& longETParams,
42 const std::vector<double>& shortR29,
43 const std::vector<double>& longR29) {
77 double eta1 = etas.first;
78 double eta2 = etas.second;
79 double fEta = 0.5 * (eta1 +
eta2);
81 double ET = energy / fabs(cosh(fEta));
84 double ETthresh = 0, Energythresh = 0;
90 }
else if (depth == 2)
96 if (energy < Energythresh || ET < ETthresh) {
117 if (part != rec.
end()) {
118 HcalDetId neighbor(part->detid().rawId());
123 Ratio = (energy - part->energy()) / (energy + part->energy());
126 double RatioThresh = 0;
128 if (
abs(ieta) == 29) {
139 if (Ratio <= RatioThresh) {
159 threshold += params[
i] *
pow(abs_x, (
int)
i);
constexpr float energy() const
tuple HcalAcceptSeverityLevel
std::vector< double > long_ET_Thresh
constexpr uint32_t rawId() const
get the raw id
std::vector< T >::const_iterator const_iterator
std::vector< double > long_Energy_Thresh
std::vector< double > short_R
const Item * getValues(DetId fId, bool throwOnFail=true) const
constexpr void setFlagField(uint32_t value, int base, int width=1)
void HFSetFlagFromPET(HFRecHit &hf, HFRecHitCollection &rec, const HcalChannelQuality *myqual, const HcalSeverityLevelComputer *mySeverity)
std::vector< double > long_R
constexpr int iphi() const
get the cell iphi
Abs< T >::type abs(const T &t)
constexpr int ieta() const
get the cell ieta
bool dropChannel(const uint32_t &mystatus) const
double CalcThreshold(double abs_energy, const std::vector< double > ¶ms)
std::vector< double > long_R_29
const_iterator end() const
int HcalAcceptSeverityLevel_
std::vector< double > short_ET_Thresh
std::vector< double > short_Energy_Thresh
int getSeverityLevel(const DetId &myid, const uint32_t &myflag, const uint32_t &mystatus) const
std::pair< double, double > etaRange(HcalSubdetector subdet, int ieta) const
iterator find(key_type k)
constexpr HcalDetId id() const
constexpr int depth() const
get the tower depth
uint32_t getValue() const
Power< A, B >::type pow(const A &a, const B &b)
const HcalTopology * topo() const
std::vector< double > short_R_29