#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 (see Core/interface/DQMDefinitions.h) More... | |
void | setErrorProb (float prob) |
void | setWarningProb (float prob) |
set probability limit for warning and error (default: 90% and 50%) More... | |
Protected Member Functions | |
void | init () |
initialize values More... | |
QCriterion (std::string qtname) | |
virtual float | runTest (const MonitorElement *me) |
float | runTest (const MonitorElement *me, QReport &qr, DQMNet::QValue &qv) |
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... | |
virtual | ~QCriterion ()=default |
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... | |
Static Private 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... | |
Friends | |
class | dqm::dqmstoreimpl::DQMStore |
for creating and deleting class instances More... | |
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:
|
inlineprotected |
Definition at line 84 of file QTest.h.
References init(), hlt_dqm_clientPB-live_cfg::me, eostools::move(), qtname_, runTest(), and ~QCriterion().
|
protectedvirtualdefault |
Referenced by QCriterion().
|
inline |
|
inlinevirtual |
get vector of channels that failed test (not relevant for all quality tests!)
Reimplemented in SimpleTest.
Definition at line 81 of file QTest.h.
Referenced by SimpleTest::getBadChannels(), and runTest().
|
inline |
|
inline |
get name of quality test
Definition at line 73 of file QTest.h.
References qtname_.
Referenced by dqm::impl::MonitorElement::addQReport(), plotting.Plot::draw(), and dqm::legacy::MonitorElement::runQTests().
|
inline |
|
protected |
initialize values
Definition at line 16 of file QTest.cc.
References dqm::qstatus::DID_NOT_RUN.
Referenced by QCriterion().
|
protectedvirtual |
Reimplemented in CheckVariance, CompareLastFilledBin, CompareToMedian, CSC01, FixedFlatOccupancy1d, MeanWithinExpected, ContentsWithinExpected, ContentSigma, NoisyChannel, DeadChannel, ContentsYRange, and ContentsXRange.
Definition at line 25 of file QTest.cc.
References raiseDQMError().
Referenced by FixedFlatOccupancy1d::get_result(), CSC01::get_result(), ContentsXRange::getAlgoName(), ContentsYRange::getAlgoName(), DeadChannel::getAlgoName(), NoisyChannel::getAlgoName(), ContentSigma::getAlgoName(), ContentsWithinExpected::getAlgoName(), MeanWithinExpected::getAlgoName(), CompareToMedian::getAlgoName(), CompareLastFilledBin::getAlgoName(), CheckVariance::getAlgoName(), QCriterion(), dqm::legacy::MonitorElement::runQTests(), and runTest().
|
inlineprotected |
Definition at line 97 of file QTest.h.
References algoName_, DQMNet::QValue::algorithm, QReport::badChannels_, DQMNet::QValue::code, gather_cfg::cout, dqm::qstatus::ERROR, errorProb_, getBadChannels(), DQMNet::QValue::message, message_, prob_, QReport::qcriterion_, DQMNet::QValue::qtname, qtname_, DQMNet::QValue::qtresult, runTest(), setMessage(), status_, dqm::qstatus::STATUS_OK, verbose_, dqm::qstatus::WARNING, and warningProb_.
|
inlineprotected |
set algorithm name
Definition at line 95 of file QTest.h.
References algoName_, and eostools::move().
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 |
Definition at line 78 of file QTest.h.
References errorProb_, and TtFullHadEvtBuilder_cfi::prob.
Referenced by QTestConfigure::EnableCheckVarianceTest(), QTestConfigure::EnableCompareLastFilledBinTest(), QTestConfigure::EnableCompareToMedianTest(), QTestConfigure::EnableContentSigmaTest(), QTestConfigure::EnableContentsWithinExpectedTest(), QTestConfigure::EnableDeadChannelTest(), QTestConfigure::EnableMeanWithinExpectedTest(), QTestConfigure::EnableNoisyChannelTest(), QTestConfigure::EnableXRangeTest(), and QTestConfigure::EnableYRangeTest().
|
protectedpure virtual |
set message after test has run
Implemented in CompareLastFilledBin, CompareToMedian, and SimpleTest.
Referenced by runTest().
|
inlineprotected |
probability limits for warnings, errors
Definition at line 137 of file QTest.h.
References verbose, and verbose_.
Referenced by dqm::dqmstoreimpl::DQMStore::createQTest().
|
inline |
set probability limit for warning and error (default: 90% and 50%)
Definition at line 77 of file QTest.h.
References TtFullHadEvtBuilder_cfi::prob, and warningProb_.
Referenced by QTestConfigure::EnableCheckVarianceTest(), QTestConfigure::EnableCompareLastFilledBinTest(), QTestConfigure::EnableCompareToMedianTest(), QTestConfigure::EnableContentSigmaTest(), QTestConfigure::EnableContentsWithinExpectedTest(), QTestConfigure::EnableDeadChannelTest(), QTestConfigure::EnableMeanWithinExpectedTest(), QTestConfigure::EnableNoisyChannelTest(), QTestConfigure::EnableXRangeTest(), and QTestConfigure::EnableYRangeTest().
|
friend |
|
friend |
|
friend |
|
protected |
name of quality test
Definition at line 132 of file QTest.h.
Referenced by algoName(), runTest(), setAlgoName(), CompareToMedian::setMessage(), and CompareLastFilledBin::setMessage().
|
staticprivate |
|
protected |
Definition at line 136 of file QTest.h.
Referenced by runTest(), and setErrorProb().
|
protected |
quality test status
Definition at line 135 of file QTest.h.
Referenced by getMessage(), runTest(), SimpleTest::setMessage(), CompareToMedian::setMessage(), and CompareLastFilledBin::setMessage().
|
protected |
name of algorithm
Definition at line 133 of file QTest.h.
Referenced by runTest(), CompareToMedian::setMessage(), and CompareLastFilledBin::setMessage().
|
protected |
Definition at line 131 of file QTest.h.
Referenced by getName(), QCriterion(), runTest(), CompareToMedian::setMessage(), and CompareLastFilledBin::setMessage().
|
protected |
Definition at line 134 of file QTest.h.
Referenced by getStatus(), and runTest().
|
protected |
Definition at line 138 of file QTest.h.
Referenced by runTest(), and setVerbose().
|
staticprivate |
|
protected |
message attached to test
Definition at line 136 of file QTest.h.
Referenced by runTest(), and setWarningProb().