25 short FixedBias = 128;
29 typename std::vector<T>::iterator fs,
ls;
33 for (uint16_t istrip = 0; istrip < digis.size(); ++istrip) {
38 double nWeight = 1 / (stripNoise * stripNoise);
39 sumVal += (digis[istrip] - FixedBias) * nWeight;
44 if (istrip % 128 == 127) {
45 double CM = (sumWt) ? sumVal / sumWt : 0.0;
47 fs = digis.begin() + istrip - 127;
48 ls = digis.begin() + istrip + 1;
51 *fs = static_cast<T>(*fs - FixedBias - CM);