#include <QTest.h>
Public Types | |
typedef dqm::legacy::MonitorElement | MonitorElement |
(class should be created by DQMStore class) More... | |
Public Member Functions | |
std::string | algoName () const |
get algorithm name More... | |
virtual std::vector< DQMChannel > | getBadChannels () const |
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 Attributes | |
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... | |
Protected Member Functions | |
virtual float | runTest (const MonitorElement *me) |
void | setAlgoName (std::string name) |
set algorithm name More... | |
virtual void | setMessage ()=0 |
set message after test has run More... | |
void | setVerbose (int verbose) |
probability limits for warnings, errors More... | |
Protected Attributes | |
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... | |
Friends | |
class | dqm::impl::MonitorElement |
class | dqm::legacy::MonitorElement |
for running the test More... | |
Base class for quality tests run on Monitoring Elements;
Currently supporting the following tests:
|
inline |
|
virtualdefault |
|
inline |
|
inlinevirtual |
get vector of channels that failed test (not relevant for all quality tests!)
Reimplemented in SimpleTest.
Definition at line 49 of file QTest.h.
Referenced by SimpleTest::getBadChannels(), and runTest().
|
inline |
|
inline |
get name of quality test
Definition at line 41 of file QTest.h.
References qtname_.
Referenced by plotting.Plot::draw(), and QualityTester::performTests().
|
inline |
void QCriterion::init | ( | void | ) |
initialize values
Definition at line 15 of file QTest.cc.
References dqm::qstatus::DID_NOT_RUN.
Referenced by QCriterion().
|
inline |
Definition at line 64 of file QTest.h.
References algoName_, MonitorElementData::QReport::QValue::algorithm, cms::cuda::assert(), MonitorElementData::QReport::QValue::code, gather_cfg::cout, dqm::qstatus::ERROR, errorProb_, getBadChannels(), hlt_dqm_clientPB-live_cfg::me, MonitorElementData::QReport::QValue::message, message_, prob_, MonitorElementData::QReport::QValue::qtname, qtname_, MonitorElementData::QReport::QValue::qtresult, MonitorElementData::QReport::setBadChannels(), setMessage(), status_, dqm::qstatus::STATUS_OK, verbose_, dqm::qstatus::WARNING, and warningProb_.
Referenced by QualityTester::performTests().
|
protectedvirtual |
Reimplemented in CheckVariance, CompareLastFilledBin, CompareToMedian, CSC01, FixedFlatOccupancy1d, MeanWithinExpected, ContentsWithinExpected, ContentSigma, NoisyChannel, DeadChannel, ContentsYRange, and ContentsXRange.
|
inlineprotected |
set algorithm name
Definition at line 96 of file QTest.h.
References algoName_, eostools::move(), and mergeVDriftHistosByStation::name.
Referenced by CheckVariance::CheckVariance(), CompareLastFilledBin::CompareLastFilledBin(), CompareToMedian::CompareToMedian(), ContentSigma::ContentSigma(), ContentsWithinExpected::ContentsWithinExpected(), ContentsXRange::ContentsXRange(), ContentsYRange::ContentsYRange(), CSC01::CSC01(), DeadChannel::DeadChannel(), FixedFlatOccupancy1d::FixedFlatOccupancy1d(), MeanWithinExpected::MeanWithinExpected(), and NoisyChannel::NoisyChannel().
|
inline |
|
protectedpure virtual |
set message after test has run
Implemented in CompareLastFilledBin, CompareToMedian, and SimpleTest.
Referenced by runTest().
|
inlineprotected |
|
inline |
set probability limit for warning and error (default: 90% and 50%)
Definition at line 45 of file QTest.h.
References TtFullHadEvtBuilder_cfi::prob, and warningProb_.
|
friend |
|
friend |
|
protected |
name of quality test
Definition at line 104 of file QTest.h.
Referenced by algoName(), runTest(), setAlgoName(), CompareToMedian::setMessage(), and CompareLastFilledBin::setMessage().
|
static |
Definition at line 62 of file QTest.h.
Referenced by QualityTester::makeQCriterion().
|
protected |
Definition at line 108 of file QTest.h.
Referenced by runTest(), and setErrorProb().
|
protected |
quality test status
Definition at line 107 of file QTest.h.
Referenced by getMessage(), runTest(), SimpleTest::setMessage(), CompareToMedian::setMessage(), and CompareLastFilledBin::setMessage().
|
protected |
name of algorithm
Definition at line 105 of file QTest.h.
Referenced by runTest(), CompareToMedian::setMessage(), and CompareLastFilledBin::setMessage().
|
protected |
Definition at line 103 of file QTest.h.
Referenced by getName(), QCriterion(), runTest(), CompareToMedian::setMessage(), and CompareLastFilledBin::setMessage().
|
protected |
Definition at line 106 of file QTest.h.
Referenced by getStatus(), and runTest().
|
protected |
Definition at line 110 of file QTest.h.
Referenced by runTest(), and setVerbose().
|
static |
default "probability" values for setting warnings & errors when running tests
Definition at line 61 of file QTest.h.
Referenced by QualityTester::makeQCriterion().
|
protected |
message attached to test
Definition at line 108 of file QTest.h.
Referenced by runTest(), and setWarningProb().