45 std::cout <<
"ZeroSuppressFP420: initParams: !!! theFEDalgorithm= " << theFEDalgorithm << std::endl;
46 std::cout <<
" lowthreshConf= " << lowthreshConf <<
" highthreshConf= " << highthreshConf
52 edm::LogError(
"FP420DigiInfo") <<
"ZeroSuppressFP420 FATAL ERROR: Unknown zero suppress algorithm " 59 edm::LogError(
"FP420DigiInfo") <<
"ZeroSuppressFP420 FATAL ERROR: Low threshold exceeds high " 69 std::cout <<
"zeroSuppress: return trkFEDclusterizer(notZeroSuppressedMap)" << std::endl;
75 const std::string s2(
"ZeroSuppressFP420::trkFEDclusterizer1");
78 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++) {
88 iPrev = in.find(strip - 1);
89 iNext = in.find(strip + 1);
91 std::cout <<
"Inside For loop trkFEDclusterizer: strip= " << strip <<
" adc= " << adc << std::endl;
98 if (((strip) % 128) == 127)
100 if (((strip) % 128) == 0)
103 if (iPrev != in.end())
104 adcPrev = iPrev->second;
105 if (iNext != in.end())
106 adcNext = iNext->second;
107 int adcMaxNeigh =
std::max(adcPrev, adcNext);
109 std::cout <<
"adcPrev= " << adcPrev <<
" adcNext= " << adcNext <<
" adcMaxNeigh= " << adcMaxNeigh << std::endl;
113 iPrev2 = in.find(strip - 2);
114 iNext2 = in.find(strip + 2);
116 int adcPrev2 = -99999;
117 int adcNext2 = -99999;
118 if (((strip) % 128) == 126)
120 if (((strip) % 128) == 1)
122 if (iPrev2 != in.end())
123 adcPrev2 = iPrev2->second;
124 if (iNext2 != in.end())
125 adcNext2 = iNext2->second;
128 std::cout <<
"adcPrev2= " << adcPrev2 <<
" adcNext2= " << adcNext2 << std::endl;
177 std::cout <<
"selected strips = " << strip <<
" adc= " << adc << std::endl;
183 std::cout <<
"last line of trkFEDclusterizer: return selectedSignal" << std::endl;
185 return selectedSignal;
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
ZSuppressFP420::DigitalMapType zeroSuppress(const DigitalMapType &, int) override
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
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)
void initParams(const edm::ParameterSet &conf_)