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 |
(class should be created by DQMStore class) More... | |
void | setErrorProb (float prob) |
void | setWarningProb (float prob) |
set probability limit for warning and error (default: 90% and 50%) More... | |
Static Public Member Functions | |
static std::string | getAlgoName () |
Protected Member Functions | |
double | getAverage (int bin, const TH1 *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 | init () |
initialize values More... | |
QCriterion (std::string qtname) | |
float | runTest (const MonitorElement *me, QReport &qr, DQMNet::QValue &qv) |
void | setAlgoName (std::string name) |
set algorithm name More... | |
void | setVerbose (int verbose) |
probability limits for warnings, errors More... | |
virtual | ~QCriterion ()=default |
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... | |
Check if any channels are noisy compared to neighboring ones.
|
inline |
Definition at line 336 of file QTest.h.
References QCriterion::setAlgoName().
|
inlinestatic |
Definition at line 342 of file QTest.h.
References QCriterion::runTest().
Referenced by QTestConfigure::EnableNoisyChannelTest(), QTestConfigure::enableTests(), and QTestParameterNames::QTestParameterNames().
|
protected |
get average for bin under consideration (see description of method setNumNeighbors)
do NOT use underflow bin
do NOT use overflow bin
use symmetric-to-bin bins to calculate average
check if need to consider bins on other side of spectrum (ie. if bins below 1 or above ncx)
average is sum over the # of bins used
Definition at line 954 of file QTest.cc.
References plotBeamSpotDB::first, and mps_fire::i.
|
overridevirtual |
Reimplemented from QCriterion.
Definition at line 858 of file QTest.cc.
References Abs(), stringResolutionProvider_cfi::bin, officialStyle::chan, relmon_rootfiles_spy::contents, gather_cfg::cout, MonitorElement::DQM_KIND_TH1D, MonitorElement::DQM_KIND_TH1F, MonitorElement::DQM_KIND_TH1S, MonitorElement::DQM_KIND_TH2D, MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TH2S, cmsPerfPublish::fail(), plotBeamSpotDB::first, MonitorElement::getFullname(), MonitorElement::getRootObject(), MonitorElement::getTH1D(), MonitorElement::getTH1F(), MonitorElement::getTH1S(), MonitorElement::getTH2D(), MonitorElement::getTH2F(), MonitorElement::getTH2S(), MonitorElement::kind(), plotBeamSpotDB::last, and pileupCalc::nbins.
|
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 352 of file QTest.h.
References gen::n.
Referenced by QTestConfigure::EnableNoisyChannelTest().
|
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 358 of file QTest.h.
References stringResolutionProvider_cfi::bin.
Referenced by QTestConfigure::EnableNoisyChannelTest().