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 |
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 | 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 337 of file QTest.h.
References QCriterion::setAlgoName().
|
inlinestatic |
Definition at line 343 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)
Definition at line 987 of file QTest.cc.
References pat::helper::ParametrizationHelper::dimension(), and plotBeamSpotDB::first.
|
protected |
Do NOT use underflow or overflow bins
Definition at line 1022 of file QTest.cc.
|
overridevirtual |
Reimplemented from QCriterion.
Definition at line 859 of file QTest.cc.
References funct::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(), h, 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 353 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 359 of file QTest.h.
References stringResolutionProvider_cfi::bin, and h.
Referenced by QTestConfigure::EnableNoisyChannelTest().