14 typename std::vector<T>::iterator
strip(digis.begin()),
end(digis.end()), endAPV;
21 tmp.insert(tmp.end(),
strip, endAPV);
24 _vmedians.push_back(std::pair<short, float>((
strip - digis.begin()) / 128 + firstAPV, offset));
26 while (
strip < endAPV) {
35 typename std::vector<T>::iterator mid = sample.begin() + int(sample.size() * pct / 100.0);
36 std::nth_element(sample.begin(), mid, sample.end());
float percentile(std::vector< T > &, double)
void subtract(uint32_t detId, uint16_t firstAPV, std::vector< int16_t > &digis) override
std::vector< std::pair< short, float > > _vmedians
void subtract_(uint32_t detId, uint16_t firstAPV, std::vector< T > &digis)