9 subtract_(uint32_t detId, uint16_t firstAPV, std::vector<T>& digis){
11 std::vector<T>
tmp; tmp.reserve(128);
12 typename std::vector<T>::iterator
13 strip( digis.begin() ),
18 endAPV =
strip+128; tmp.clear();
19 tmp.insert(tmp.end(),
strip,endAPV);
23 while( high < endAPV) tmp.push_back( *high++ - *low++ );
26 while (
strip < endAPV) {
27 *
strip =
static_cast<T>( *
strip - (offset + slope*(65 - (endAPV-
strip) ) ) );
static const double slope[3]
void subtract_(uint32_t detId, uint16_t firstAPV, std::vector< T > &digis)
float median(std::vector< T > &)
std::vector< std::vector< double > > tmp
void subtract(uint32_t detId, uint16_t firstAPV, std::vector< int16_t > &digis) override