#include <ThresholdNoiseRemovalService.h>
Definition at line 24 of file ThresholdNoiseRemovalService_service.cc.
26 const string myname =
"ThresholdNoiseRemovalService::ctor: ";
27 pset.get_if_present<
int>(
"LogLevel",
m_LogLevel);
std::ostream & print(std::ostream &out=std::cout, std::string prefix="") const
ostream & ThresholdNoiseRemovalService::print |
( |
std::ostream & |
out = std::cout , |
|
|
std::string |
prefix = "" |
|
) |
| const |
|
virtual |
int ThresholdNoiseRemovalService::update |
( |
AdcChannelData & |
data | ) |
const |
|
virtual |
Implements AdcChannelNoiseRemovalService.
Definition at line 34 of file ThresholdNoiseRemovalService_service.cc.
35 const string myname =
"ThresholdNoiseRemovalService:update: ";
38 if ( sigs.size() == 0 ) {
39 cout << myname <<
"WARNING: No data found." <<
endl;
42 if ( flags.size() == 0 ) flags.resize(sigs.size(),
AdcGood );
43 if ( flags.size() != sigs.size() ) {
44 cout << myname <<
"ERROR: samples and flags vectors have different sizes." <<
endl;
48 for (
unsigned int isig=0; isig<sigs.size(); ++isig ) {
56 if (
m_LogLevel >= 2 ) cout << myname <<
"Suppressed " << count <<
" of " 57 << sigs.size() <<
" ticks." <<
endl;
std::vector< AdcFlag > AdcFlagVector
const AdcFlag AdcSetFixed
std::vector< AdcSignal > AdcSignalVector
QTextStream & endl(QTextStream &s)
int ThresholdNoiseRemovalService::m_LogLevel |
|
private |
AdcSignal ThresholdNoiseRemovalService::m_Threshold |
|
private |
The documentation for this class was generated from the following files: