#include <FastLinearCMNSubtractor.h>
Definition at line 5 of file FastLinearCMNSubtractor.h.
FastLinearCMNSubtractor::FastLinearCMNSubtractor |
( |
| ) |
|
|
inlineprivate |
void FastLinearCMNSubtractor::subtract |
( |
uint32_t |
detId, |
|
|
uint16_t |
firstAPV, |
|
|
std::vector< int16_t > & |
digis |
|
) |
| |
|
overridevirtual |
void FastLinearCMNSubtractor::subtract |
( |
uint32_t |
detId, |
|
|
uint16_t |
firstAPV, |
|
|
std::vector< float > & |
digis |
|
) |
| |
|
overridevirtual |
template<typename T >
void FastLinearCMNSubtractor::subtract_ |
( |
uint32_t |
detId, |
|
|
uint16_t |
firstAPV, |
|
|
std::vector< T > & |
digis |
|
) |
| |
|
inlineprivate |
Definition at line 11 of file FastLinearCMNSubtractor.cc.
References end, LaserClient_cfi::high, LaserClient_cfi::low, SiStripCommonModeNoiseSubtractor::median(), hltrates_dqm_sourceclient-live_cfg::offset, slope, digitizers_cfi::strip, and createJobs::tmp.
Referenced by subtract().
14 typename std::vector<T>::iterator
strip(digis.begin()),
end(digis.end()), endAPV,
high,
low;
19 tmp.insert(tmp.end(),
strip, endAPV);
26 tmp.push_back(*
high++ - *
low++);
29 while (
strip < endAPV) {
30 *
strip =
static_cast<T>(*
strip - (offset + slope * (65 - (endAPV -
strip))));
static const double slope[3]
float median(std::vector< T > &)