9 subtract_(
const uint32_t& detId,
const 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]
float median(std::vector< T > &)
void subtract_(const uint32_t &, const uint16_t &, std::vector< T > &)
std::vector< std::vector< double > > tmp
void subtract(const uint32_t &, const uint16_t &, std::vector< int16_t > &) override