#include <AdcUnderflowFlagger.h>
Definition at line 36 of file AdcUnderflowFlagger.h.
Definition at line 26 of file AdcUnderflowFlagger_tool.cc.
31 const string myname =
"AdcUnderflowFlagger::ctor: ";
33 cout << myname <<
"Configuration parameters:" <<
endl;
35 cout << myname <<
" AdcThresholds: [";
38 bool haveMore = ncha > maxcha;
39 if ( ! haveMore ) maxcha = ncha;
40 for (
Index icha=0; icha<maxcha; ++icha ) {
41 if ( icha ) cout <<
",";
44 if ( haveMore ) cout <<
",...";
std::vector< AdcCount > AdcCountVector
IntVector m_AdcThresholds
static constexpr double ps
QTextStream & endl(QTextStream &s)
int& AdcUnderflowFlagger::defaultThreshold |
( |
| ) |
|
|
inline |
AdcCount AdcUnderflowFlagger::defaultThreshold |
( |
| ) |
const |
|
inline |
Reimplemented from AdcChannelTool.
Definition at line 61 of file AdcUnderflowFlagger_tool.cc.
62 const string myname =
"AdcUnderflowFlagger::update: ";
66 res.setInt(
"channel", icha);
69 if (
m_LogLevel >= 2 ) cout << myname <<
"Data does not have an assigned channel." <<
endl;
70 return res.setStatus(1);
72 IntVector::value_type sthr = -1;
77 if (
m_LogLevel >= 2 ) cout << myname <<
"No threshold set for channel " << icha <<
endl;
78 return res.setStatus(2 + icha >= ncha);
85 for (
Index isam=0; isam<nraw; ++isam ) {
86 if ( acd.
raw[isam] <= thr ) {
91 res.setInt(
"nUnderflow", nunder);
const AdcFlag AdcUnderflow
IntVector m_AdcThresholds
static Index badChannel()
QTextStream & endl(QTextStream &s)
Reimplemented from AdcChannelTool.
Definition at line 51 of file AdcUnderflowFlagger_tool.cc.
52 const string myname =
"AdcUnderflowFlagger::view: ";
DataMap update(AdcChannelData &acd) const override
void setChannelInfo(ChannelInfoPtr pchi)
IntVector AdcUnderflowFlagger::m_AdcThresholds |
|
private |
int AdcUnderflowFlagger::m_DefaultThreshold |
|
private |
int AdcUnderflowFlagger::m_LogLevel |
|
private |
AdcIndex AdcUnderflowFlagger::m_modifyCount |
|
private |
The documentation for this class was generated from the following files: