32 short FixedBias = 128;
36 typename std::vector<T>::iterator fs,
ls;
40 for (uint16_t istrip = 0; istrip < digis.size(); ++istrip) {
45 double nWeight = 1 / (stripNoise * stripNoise);
46 sumVal += (digis[istrip] - FixedBias) * nWeight;
51 if (istrip % 128 == 127) {
52 double CM = (sumWt) ? sumVal / sumWt : 0.0;
54 fs = digis.begin() + istrip - 127;
55 ls = digis.begin() + istrip + 1;
58 *fs = static_cast<T>(*fs - FixedBias - CM);