47 std::cout <<
"ZeroSuppressFP420: initParams: !!! theFEDalgorithm= " << theFEDalgorithm << std::endl;
68 std::cout <<
"zeroSuppress: return trkFEDclusterizer(notZeroSuppressedMap)" << std::endl;
75 const std::string s2(
"ZeroSuppressFP420::trkFEDclusterizer1");
78 register DigitalMapType::const_iterator
i, iPrev, iNext, iPrev2, iNext2;
81 std::cout <<
"Before For loop" << std::endl;
84 for (i = in.begin(); i != in.end(); i++) {
89 iPrev = in.find(strip - 1);
90 iNext = in.find(strip + 1);
92 std::cout <<
"Inside For loop trkFEDclusterizer: strip= " << strip <<
" adc= " << adc << std::endl;
99 if ( ((strip)%128) == 127) adcNext = 99999;
100 if ( ((strip)%128) == 0) adcPrev = 99999;
102 if ( iPrev != in.end() ) adcPrev = iPrev->second;
103 if ( iNext != in.end() ) adcNext = iNext->second;
104 int adcMaxNeigh =
std::max(adcPrev, adcNext);
106 std::cout <<
"adcPrev= " << adcPrev <<
" adcNext= " << adcNext <<
" adcMaxNeigh= " << adcMaxNeigh << std::endl;
110 iPrev2 = in.find(strip - 2);
111 iNext2 = in.find(strip + 2);
113 int adcPrev2 = -99999;
114 int adcNext2 = -99999;
115 if ( ((strip)%128) == 126) adcNext2 = 99999;
116 if ( ((strip)%128) == 1) adcPrev2 = 99999;
117 if ( iPrev2 != in.end() ) adcPrev2 = iPrev2->second;
118 if ( iNext2 != in.end() ) adcNext2 = iNext2->second;
121 std::cout <<
"adcPrev2= " << adcPrev2 <<
" adcNext2= " << adcNext2 << std::endl;
171 std::cout <<
"selected strips = " << strip <<
" adc= " << adc << std::endl;
177 std::cout <<
"last line of trkFEDclusterizer: return selectedSignal" << std::endl;
179 return selectedSignal;
int adc(sample_type sample)
get the ADC sample (12 bits)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
ZeroSuppressFP420(const edm::ParameterSet &conf, float noise)
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
ZSuppressFP420::DigitalMapType trkFEDclusterizer(const DigitalMapType &, int)
DConverterFP420::DigitalMapType DigitalMapType
ZSuppressFP420::DigitalMapType zeroSuppress(const DigitalMapType &, int)
void initParams(const edm::ParameterSet &conf_)