#include <QTest.h>
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 |
(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 () |
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 | 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 |
Definition at line 72 of file QTest.h.
References init(), 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 68 of file QTest.h.
Referenced by SimpleTest::getBadChannels(), and runTest().
|
inline |
|
inline |
get name of quality test
Definition at line 60 of file QTest.h.
References qtname_.
Referenced by MonitorElement::addQReport(), plotting.Plot::draw(), and MonitorElement::runQTests().
|
inline |
|
protected |
initialize values
Definition at line 18 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, ContentsXRange, Comp2RefKolmogorov, Comp2Ref2DChi2, Comp2RefChi2, and Comp2RefEqualH.
Definition at line 28 of file QTest.cc.
References raiseDQMError().
Referenced by FixedFlatOccupancy1d::get_result(), CSC01::get_result(), Comp2RefEqualH::getAlgoName(), Comp2RefChi2::getAlgoName(), Comp2Ref2DChi2::getAlgoName(), Comp2RefKolmogorov::getAlgoName(), ContentsXRange::getAlgoName(), ContentsYRange::getAlgoName(), DeadChannel::getAlgoName(), NoisyChannel::getAlgoName(), ContentSigma::getAlgoName(), ContentsWithinExpected::getAlgoName(), MeanWithinExpected::getAlgoName(), CompareToMedian::getAlgoName(), CompareLastFilledBin::getAlgoName(), CheckVariance::getAlgoName(), QCriterion(), MonitorElement::runQTests(), and runTest().
|
inlineprotected |
Definition at line 82 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 80 of file QTest.h.
References algoName_, and eostools::move().
Referenced by CheckVariance::CheckVariance(), Comp2Ref2DChi2::Comp2Ref2DChi2(), Comp2RefChi2::Comp2RefChi2(), Comp2RefEqualH::Comp2RefEqualH(), Comp2RefKolmogorov::Comp2RefKolmogorov(), 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 65 of file QTest.h.
References errorProb_, and TtFullHadEvtBuilder_cfi::prob.
Referenced by QTestConfigure::EnableCheckVarianceTest(), QTestConfigure::EnableComp2Ref2DChi2Test(), QTestConfigure::EnableComp2RefChi2Test(), QTestConfigure::EnableComp2RefEqualHTest(), QTestConfigure::EnableComp2RefKolmogorovTest(), 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, Comp2Ref2DChi2, Comp2RefChi2, and SimpleTest.
Referenced by runTest().
|
inlineprotected |
probability limits for warnings, errors
Definition at line 119 of file QTest.h.
References verbose, and verbose_.
Referenced by DQMStore::createQTest().
|
inline |
set probability limit for warning and error (default: 90% and 50%)
Definition at line 64 of file QTest.h.
References TtFullHadEvtBuilder_cfi::prob, and warningProb_.
Referenced by QTestConfigure::EnableCheckVarianceTest(), QTestConfigure::EnableComp2Ref2DChi2Test(), QTestConfigure::EnableComp2RefChi2Test(), QTestConfigure::EnableComp2RefEqualHTest(), QTestConfigure::EnableComp2RefKolmogorovTest(), QTestConfigure::EnableCompareLastFilledBinTest(), QTestConfigure::EnableCompareToMedianTest(), QTestConfigure::EnableContentSigmaTest(), QTestConfigure::EnableContentsWithinExpectedTest(), QTestConfigure::EnableDeadChannelTest(), QTestConfigure::EnableMeanWithinExpectedTest(), QTestConfigure::EnableNoisyChannelTest(), QTestConfigure::EnableXRangeTest(), and QTestConfigure::EnableYRangeTest().
|
friend |
|
friend |
|
protected |
name of quality test
Definition at line 114 of file QTest.h.
Referenced by algoName(), runTest(), setAlgoName(), CompareToMedian::setMessage(), and CompareLastFilledBin::setMessage().
|
staticprivate |
|
protected |
Definition at line 118 of file QTest.h.
Referenced by runTest(), setErrorProb(), Comp2RefChi2::setMessage(), and Comp2Ref2DChi2::setMessage().
|
protected |
quality test status
Definition at line 117 of file QTest.h.
Referenced by getMessage(), runTest(), SimpleTest::setMessage(), Comp2RefChi2::setMessage(), Comp2Ref2DChi2::setMessage(), CompareToMedian::setMessage(), and CompareLastFilledBin::setMessage().
|
protected |
name of algorithm
Definition at line 115 of file QTest.h.
Referenced by runTest(), CompareToMedian::setMessage(), and CompareLastFilledBin::setMessage().
|
protected |
Definition at line 113 of file QTest.h.
Referenced by getName(), QCriterion(), runTest(), CompareToMedian::setMessage(), and CompareLastFilledBin::setMessage().
|
protected |
Definition at line 116 of file QTest.h.
Referenced by getStatus(), and runTest().
|
protected |
Definition at line 120 of file QTest.h.
Referenced by runTest(), and setVerbose().
|
staticprivate |
|
protected |
message attached to test
Definition at line 118 of file QTest.h.
Referenced by runTest(), Comp2RefChi2::setMessage(), Comp2Ref2DChi2::setMessage(), and setWarningProb().