13 std::vector<int> &maxof2_out,
14 std::vector<int> &
output) {
16 int Elow, Ehigh, Tlow, Thigh,
lut;
17 int ERatLow, ERatHigh;
19 int COMP3, COMP2, COMP1, COMP0;
38 for (
unsigned int i = 0;
i < add_out.size();
i++) {
40 ERatLow = add_out[
i] * Tlow >> 7;
43 ERatHigh = add_out[
i] * Thigh >> 7;
46 if (add_out[
i] > 0XFF)
51 if (maxof2_out[
i] >= ERatLow)
55 if (maxof2_out[
i] >= ERatHigh)
68 int ilut = (COMP3 << 3) + (COMP2 << 2) + (COMP1 << 1) + COMP0;
69 int mask = 1 << (ilut);
70 output[
i] = (
lut) & (mask);
83 if (it != groupmap.end()) {
92 (ecaltpgFineGrainEB->
getMap()).
find((*it).second);
96 <<
" 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