15 std::vector<double> blank;
18 std::vector<double> EnergyDefault;
19 EnergyDefault.clear();
20 EnergyDefault.push_back(50);
25 for (
int i = 29;
i <= 41; ++
i) {
33 for (
int i = 29;
i <= 41; ++
i) {
44 const std::vector<double>& short_Energy,
45 const std::vector<double>& short_ET,
47 const std::vector<double>& long_Energy,
48 const std::vector<double>& long_ET,
98 double ETthresh = 0, Energythresh = 0;
103 }
else if (
depth == 2)
108 if (
energy < Energythresh ||
ET < ETthresh)
118 if (neigh != rec.
end())
119 EL = neigh->energy();
130 for (
int d = 1;
d <= 2; ++
d)
137 if (
abs(
ieta) == 39 &&
abs(
i) > 39 && testphi % 4 == 1)
149 if (neigh != rec.
end()) {
153 S9S1 += neigh->energy();
163 for (
int d = 1;
d <= 2; ++
d) {
164 for (
int i =
iphi - phiseg;
i <=
iphi + phiseg;
i += phiseg) {
176 if (neigh != rec.
end()) {
180 S9S1 += neigh->energy();
187 for (
int d = 1;
d <= 2; ++
d)
191 if (neigh != rec.
end()) {
195 S9S1 += neigh->energy();
209 double intercept = 0;
218 if (intercept > 0 &&
energy > 0)
220 if (S9S1 < S9S1cut) {
std::vector< double > LongSlopes
void HFSetFlagFromS9S1(HFRecHit &hf, HFRecHitCollection &rec, const HcalChannelQuality *myqual, const HcalSeverityLevelComputer *mySeverity)
static const double slope[3]
int HcalAcceptSeverityLevel_
std::vector< T >::const_iterator const_iterator
std::vector< double > LongEnergyThreshold
std::vector< double > LongETThreshold
const Item * getValues(DetId fId, bool throwOnFail=true) const
const HcalTopology * topo() const
std::vector< double > ShortSlopes
double CalcSlope(int abs_ieta, const std::vector< double > ¶ms)
std::pair< double, double > etaRange(HcalSubdetector subdet, int ieta) const
Abs< T >::type abs(const T &t)
uint32_t getValue() const
const_iterator end() const
iterator find(key_type k)
std::vector< double > ShortETThreshold
int getSeverityLevel(const DetId &myid, const uint32_t &myflag, const uint32_t &mystatus) const
std::vector< double > ShortEnergyThreshold
Power< A, B >::type pow(const A &a, const B &b)
double CalcEnergyThreshold(double abs_energy, const std::vector< double > ¶ms)