11 int Elow, Ehigh, Tlow, Thigh, lut;
12 int ERatLow, ERatHigh;
14 int COMP3, COMP2, COMP1, COMP0;
33 for (
unsigned int i = 0;
i < add_out.size();
i++) {
34 ERatLow = add_out[
i] * Tlow >> 7;
37 ERatHigh = add_out[
i] * Thigh >> 7;
40 if (add_out[
i] > 0XFF)
45 if (maxof2_out[
i] >= ERatLow)
49 if (maxof2_out[
i] >= ERatHigh)
62 int ilut = (COMP3 << 3) + (COMP2 << 2) + (COMP1 << 1) + COMP0;
63 int mask = 1 << (ilut);
64 output[
i] = (lut) & (mask);
76 if (it != groupmap.end()) {
87 edm::LogWarning(
"EcalTPG") <<
" could not find EcalTPGGroupsMap entry for " << towid;
const EcalTPGGroupsMap & getMap() const
void setParameters(uint32_t towid, const EcalTPGFineGrainEBGroup *ecaltpgFgEBGroup, const EcalTPGFineGrainEBIdMap *ecaltpgFineGrainEB)
std::map< uint32_t, uint32_t >::const_iterator EcalTPGGroupsMapItr
void process(std::vector< int > &add_out, std::vector< int > &maxof2_out, std::vector< int > &output)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
virtual ~EcalFenixFgvbEB()
const EcalTPGFineGrainEBMap & getMap() const
std::vector< int > add_out_8_
EcalFenixFgvbEB(int maxNrSamples)
std::map< uint32_t, EcalTPGFineGrainConstEB >::const_iterator EcalTPGFineGrainEBMapItr
std::map< uint32_t, uint32_t > EcalTPGGroupsMap