#include <PercentileCMNSubtractor.h>
Definition at line 5 of file PercentileCMNSubtractor.h.
PercentileCMNSubtractor::PercentileCMNSubtractor |
( |
double |
in | ) |
|
|
inlineprivate |
template<typename T >
float PercentileCMNSubtractor::percentile |
( |
std::vector< T > & |
sample, |
|
|
double |
pct |
|
) |
| |
|
inlineprivate |
void PercentileCMNSubtractor::subtract |
( |
const uint32_t & |
detId, |
|
|
const uint16_t & |
firstAPV, |
|
|
std::vector< int16_t > & |
digis |
|
) |
| |
|
virtual |
void PercentileCMNSubtractor::subtract |
( |
const uint32_t & |
detId, |
|
|
const uint16_t & |
firstAPV, |
|
|
std::vector< float > & |
digis |
|
) |
| |
|
virtual |
template<typename T >
void PercentileCMNSubtractor::subtract_ |
( |
const uint32_t & |
detId, |
|
|
const uint16_t & |
firstAPV, |
|
|
std::vector< T > & |
digis |
|
) |
| |
|
inlineprivate |
Definition at line 9 of file PercentileCMNSubtractor.cc.
References SiStripCommonModeNoiseSubtractor::_vmedians, end, hltrates_dqm_sourceclient-live_cfg::offset, percentile(), percentile_, and tmp.
Referenced by subtract().
11 std::vector<T>
tmp; tmp.reserve(128);
12 typename std::vector<T>::iterator
13 strip( digis.begin() ),
19 while( strip <
end ) {
20 endAPV = strip+128; tmp.clear();
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) {
27 *strip =
static_cast<T>(*strip-
offset);
float percentile(std::vector< T > &, double)
std::vector< std::pair< short, float > > _vmedians
std::vector< std::vector< double > > tmp
double PercentileCMNSubtractor::percentile_ |
|
private |