#include <QTest.h>
Public Member Functions | |
std::string | algoName (void) const |
get algorithm name More... | |
virtual std::vector< DQMChannel > | getBadChannels (void) const |
std::string | getMessage (void) const |
get message attached to test More... | |
std::string | getName (void) const |
get name of quality test More... | |
int | getStatus (void) 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... | |
Protected Member Functions | |
void | init (void) |
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 (void)=0 |
set message after test has run More... | |
void | setVerbose (int verbose) |
probability limits for warnings, errors More... | |
virtual | ~QCriterion (void) |
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 | DQMStore |
for creating and deleting class instances More... | |
class | MonitorElement |
for running the test More... | |
Base class for quality tests run on Monitoring Elements;
Currently supporting the following tests:
|
inlineprotected |
|
inlineprotectedvirtual |
|
inline |
|
inlinevirtual |
get vector of channels that failed test (not relevant for all quality tests!)
Reimplemented in SimpleTest.
Definition at line 65 of file QTest.h.
Referenced by SimpleTest::getBadChannels(), and runTest().
|
inline |
|
inline |
get name of quality test
Definition at line 57 of file QTest.h.
References qtname_.
Referenced by MonitorElement::addQReport(), and MonitorElement::runQTests().
|
inline |
|
protected |
initialize values
Definition at line 17 of file QTest.cc.
References dqm::qstatus::DID_NOT_RUN.
Referenced by QCriterion().
|
protectedvirtual |
Reimplemented in CheckVariance, CompareLastFilledBin, CompareToMedian, CSC01, FixedFlatOccupancy1d, MeanWithinExpected, ContentsWithinExpected, NoisyChannel, DeadChannel, ContentsYRange, ContentsXRange, Comp2RefKolmogorov, Comp2RefChi2, and Comp2RefEqualH.
Definition at line 27 of file QTest.cc.
References raiseDQMError().
Referenced by MonitorElement::runQTests(), and runTest().
|
inlineprotected |
Definition at line 79 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 77 of file QTest.h.
References algoName_, and mergeVDriftHistosByStation::name.
Referenced by CheckVariance::CheckVariance(), Comp2RefChi2::Comp2RefChi2(), Comp2RefEqualH::Comp2RefEqualH(), Comp2RefKolmogorov::Comp2RefKolmogorov(), CompareLastFilledBin::CompareLastFilledBin(), CompareToMedian::CompareToMedian(), ContentsWithinExpected::ContentsWithinExpected(), ContentsXRange::ContentsXRange(), ContentsYRange::ContentsYRange(), CSC01::CSC01(), DeadChannel::DeadChannel(), FixedFlatOccupancy1d::FixedFlatOccupancy1d(), MeanWithinExpected::MeanWithinExpected(), and NoisyChannel::NoisyChannel().
|
inline |
Definition at line 62 of file QTest.h.
References errorProb_, and mix_2012_Summer_inTimeOnly_cff::prob.
Referenced by createMeanValueTest(), createXRangeTest(), createYRangeTest(), QTestConfigure::EnableCheckVarianceTest(), QTestConfigure::EnableComp2RefChi2Test(), QTestConfigure::EnableComp2RefEqualHTest(), QTestConfigure::EnableComp2RefKolmogorovTest(), QTestConfigure::EnableCompareLastFilledBinTest(), QTestConfigure::EnableCompareToMedianTest(), 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, Comp2RefChi2, and SimpleTest.
Referenced by runTest().
|
inlineprotected |
probability limits for warnings, errors
Definition at line 116 of file QTest.h.
References validate_alignment_devdb10_cfg::verbose, and verbose_.
Referenced by DQMStore::createQTest().
|
inline |
set probability limit for warning and error (default: 90% and 50%)
Definition at line 61 of file QTest.h.
References mix_2012_Summer_inTimeOnly_cff::prob, and warningProb_.
Referenced by createMeanValueTest(), createXRangeTest(), createYRangeTest(), QTestConfigure::EnableCheckVarianceTest(), QTestConfigure::EnableComp2RefChi2Test(), QTestConfigure::EnableComp2RefEqualHTest(), QTestConfigure::EnableComp2RefKolmogorovTest(), QTestConfigure::EnableCompareLastFilledBinTest(), QTestConfigure::EnableCompareToMedianTest(), QTestConfigure::EnableContentsWithinExpectedTest(), QTestConfigure::EnableDeadChannelTest(), QTestConfigure::EnableMeanWithinExpectedTest(), QTestConfigure::EnableNoisyChannelTest(), QTestConfigure::EnableXRangeTest(), and QTestConfigure::EnableYRangeTest().
|
friend |
|
friend |
|
protected |
name of quality test
Definition at line 111 of file QTest.h.
Referenced by algoName(), runTest(), setAlgoName(), CompareToMedian::setMessage(), and CompareLastFilledBin::setMessage().
|
staticprivate |
|
protected |
Definition at line 115 of file QTest.h.
Referenced by runTest(), setErrorProb(), and Comp2RefChi2::setMessage().
|
protected |
quality test status
Definition at line 114 of file QTest.h.
Referenced by getMessage(), runTest(), SimpleTest::setMessage(), Comp2RefChi2::setMessage(), CompareToMedian::setMessage(), and CompareLastFilledBin::setMessage().
|
protected |
name of algorithm
Definition at line 112 of file QTest.h.
Referenced by runTest(), CompareToMedian::setMessage(), and CompareLastFilledBin::setMessage().
|
protected |
Definition at line 110 of file QTest.h.
Referenced by getName(), QCriterion(), runTest(), CompareToMedian::setMessage(), and CompareLastFilledBin::setMessage().
|
protected |
Definition at line 113 of file QTest.h.
Referenced by getStatus(), and runTest().
|
protected |
Definition at line 117 of file QTest.h.
Referenced by runTest(), and setVerbose().
|
staticprivate |
|
protected |
message attached to test
Definition at line 115 of file QTest.h.
Referenced by runTest(), Comp2RefChi2::setMessage(), and setWarningProb().