Check if any channels are noisy compared to neighboring ones. More...
#include <QTest.h>
Public Member Functions | |
NoisyChannel (const std::string &name) | |
float | runTest (const MonitorElement *me) override |
void | setNumNeighbors (unsigned n) |
void | setTolerance (float percentage) |
Public Member Functions inherited from SimpleTest | |
std::vector< DQMChannel > | getBadChannels () const override |
get vector of channels that failed test (not always relevant!) More... | |
void | setMinimumEntries (unsigned n) |
set minimum # of entries needed More... | |
SimpleTest (const std::string &name, bool keepBadChannels=false) | |
Public Member Functions inherited from QCriterion | |
std::string | algoName () const |
get algorithm name More... | |
std::string | getMessage () const |
get message attached to test More... | |
std::string | getName () const |
get name of quality test More... | |
int | getStatus () const |
get test status More... | |
void | init () |
initialize values More... | |
QCriterion (std::string qtname) | |
float | runTest (const MonitorElement *me, QReport &qr, DQMNet::QValue &qv) |
void | setErrorProb (float prob) |
void | setWarningProb (float prob) |
set probability limit for warning and error (default: 90% and 50%) More... | |
virtual | ~QCriterion ()=default |
Static Public Member Functions | |
static std::string | getAlgoName () |
Protected Member Functions | |
double | getAverage (int bin, const TH1 *h) const |
double | getAverage2D (int binX, int binY, const TH2 *h) const |
Protected Member Functions inherited from SimpleTest | |
void | setMessage () override |
set status & message after test has run More... | |
Protected Member Functions inherited from QCriterion | |
void | setAlgoName (std::string name) |
set algorithm name More... | |
void | setVerbose (int verbose) |
probability limits for warnings, errors More... | |
Protected Attributes | |
unsigned | numNeighbors_ |
bool | rangeInitialized_ |
float | tolerance_ |
Protected Attributes inherited from SimpleTest | |
std::vector< DQMChannel > | badChannels_ |
bool | keepBadChannels_ |
unsigned | minEntries_ |
Protected Attributes inherited from QCriterion | |
std::string | algoName_ |
name of quality test More... | |
float | errorProb_ |
std::string | message_ |
quality test status More... | |
float | prob_ |
name of algorithm More... | |
std::string | qtname_ |
int | status_ |
int | verbose_ |
float | warningProb_ |
message attached to test More... | |
Additional Inherited Members | |
Public Types inherited from QCriterion | |
typedef dqm::legacy::MonitorElement | MonitorElement |
(class should be created by DQMStore class) More... | |
Static Public Attributes inherited from QCriterion | |
static const float | ERROR_PROB_THRESHOLD = 0.50 |
static const float | WARNING_PROB_THRESHOLD = 0.90 |
default "probability" values for setting warnings & errors when running tests More... | |
Check if any channels are noisy compared to neighboring ones.
|
inline |
Definition at line 222 of file QTest.h.
References getAlgoName(), numNeighbors_, rangeInitialized_, and QCriterion::setAlgoName().
|
inlinestatic |
Definition at line 227 of file QTest.h.
Referenced by QualityTester::makeQCriterion(), and NoisyChannel().
|
protected |
get average for bin under consideration (see description of method setNumNeighbors)
Definition at line 375 of file QTest.cc.
References newFWLiteAna::bin, pat::helper::ParametrizationHelper::dimension(), and dqmdumpme::first.
|
protected |
Do NOT use underflow or overflow bins
Definition at line 412 of file QTest.cc.
|
overridevirtual |
Reimplemented from QCriterion.
Definition at line 263 of file QTest.cc.
References funct::abs(), PDRates::average, newFWLiteAna::bin, officialStyle::chan, relmon_rootfiles_spy::contents, gather_cfg::cout, dqmdumpme::first, dqmdumpme::last, hlt_dqm_clientPB-live_cfg::me, LaserClient_cfi::nbins, hlt_dqm_clientPB-live_cfg::nbinsX, hlt_dqm_clientPB-live_cfg::nbinsY, MonitorElementData::TH1D, MonitorElementData::TH1F, MonitorElementData::TH1S, MonitorElementData::TH2D, MonitorElementData::TH2F, and MonitorElementData::TH2S.
|
inline |
set # of neighboring channels for calculating average to be used for comparison with channel under consideration; use 1 for considering bin+1 and bin-1 (default), use 2 for considering bin+1,bin-1, bin+2,bin-2, etc; Will use rollover when bin+i or bin-i is beyond histogram limits (e.g. for histogram with N bins, bin N+1 corresponds to bin 1, and bin -1 corresponds to bin N)
Definition at line 237 of file QTest.h.
References dqmiodumpmetadata::n, and numNeighbors_.
|
inline |
set (percentage) tolerance for considering a channel noisy; eg. if tolerance = 20%, a channel will be noisy if (contents-average)/|average| > 20%; average is calculated from neighboring channels (also see method setNumNeighbors)
Definition at line 246 of file QTest.h.
References rangeInitialized_, and tolerance_.
|
protected |
Definition at line 260 of file QTest.h.
Referenced by NoisyChannel(), and setNumNeighbors().
|
protected |
Definition at line 262 of file QTest.h.
Referenced by NoisyChannel(), and setTolerance().
|
protected |
Definition at line 259 of file QTest.h.
Referenced by setTolerance().