#include <QTestConfigure.h>
Public Member Functions | |
void | disableTests (const std::vector< std::string > &testsOFFList, DQMStore *bei) |
Disables the Quality Tests in the string list. More... | |
bool | enableTests (const std::map< std::string, std::map< std::string, std::string > > &tests, DQMStore *bei) |
Creates and defines quality tests. More... | |
QTestConfigure () | |
Constructor. More... | |
std::vector< std::string > | testsReady () |
Returns the vector containing the names of the quality tests that have been created. More... | |
~QTestConfigure () | |
Destructor. More... | |
Private Member Functions | |
void | EnableComp2RefChi2Test (std::string testName, const std::map< std::string, std::string > ¶ms, DQMStore *bei) |
Creates Comp2RefChi2 test. More... | |
void | EnableComp2RefEqualHTest (std::string testName, const std::map< std::string, std::string > ¶ms, DQMStore *bei) |
Creates Comp2RefEqualH test. More... | |
void | EnableComp2RefKolmogorovTest (std::string testName, const std::map< std::string, std::string > ¶ms, DQMStore *bei) |
Creates EnableComp2RefKolmogorov test. More... | |
void | EnableCompareLastFilledBinTest (std::string testName, const std::map< std::string, std::string > ¶ms, DQMStore *bei) |
Creates EnableCompareLastFilledBinTest test. More... | |
void | EnableCompareToMedianTest (std::string testName, const std::map< std::string, std::string > ¶ms, DQMStore *bei) |
Creates ContentsWithinRangeROOT test. More... | |
void | EnableContentsWithinExpectedTest (std::string testName, const std::map< std::string, std::string > ¶ms, DQMStore *bei) |
Creates ContentsWithinRangeROOT test. More... | |
void | EnableDeadChannelTest (std::string testName, const std::map< std::string, std::string > ¶ms, DQMStore *bei) |
Creates ContentsYRangeASROOT test. More... | |
void | EnableMeanWithinExpectedTest (std::string testName, const std::map< std::string, std::string > ¶ms, DQMStore *bei) |
Creates MeanWithinExpectedROOT test. More... | |
void | EnableNoisyChannelTest (std::string testName, const std::map< std::string, std::string > ¶ms, DQMStore *bei) |
Creates NoisyChannelROOT test. More... | |
void | EnableXRangeTest (std::string testName, const std::map< std::string, std::string > ¶ms, DQMStore *bei) |
Creates ContentsXRangeROOT test. More... | |
void | EnableYRangeTest (std::string testName, const std::map< std::string, std::string > ¶ms, DQMStore *bei) |
Creates ContentsXRangeASROOT test. More... | |
const char * | findOrDefault (const std::map< std::string, std::string > &, const char *, const char *) const |
Private Attributes | |
std::vector< std::string > | testsConfigured |
Class that creates and defined quality tests based on the xml configuration file parsed by QTestConfigurationParser.
Definition at line 22 of file QTestConfigure.h.
|
inline |
|
inline |
void QTestConfigure::disableTests | ( | const std::vector< std::string > & | testsOFFList, |
DQMStore * | bei | ||
) |
Disables the Quality Tests in the string list.
|
private |
Creates Comp2RefChi2 test.
Definition at line 85 of file QTestConfigure.cc.
References DQMStore::createQTest(), error, findOrDefault(), Comp2RefChi2::getAlgoName(), DQMStore::getQCriterion(), QCriterion::setErrorProb(), QCriterion::setWarningProb(), testsConfigured, and warning.
Referenced by enableTests().
|
private |
Creates Comp2RefEqualH test.
Definition at line 68 of file QTestConfigure.cc.
References DQMStore::createQTest(), error, findOrDefault(), Comp2RefEqualH::getAlgoName(), DQMStore::getQCriterion(), QCriterion::setErrorProb(), QCriterion::setWarningProb(), testsConfigured, and warning.
Referenced by enableTests().
|
private |
Creates EnableComp2RefKolmogorov test.
Definition at line 103 of file QTestConfigure.cc.
References DQMStore::createQTest(), error, findOrDefault(), Comp2RefKolmogorov::getAlgoName(), DQMStore::getQCriterion(), QCriterion::setErrorProb(), QCriterion::setWarningProb(), testsConfigured, and warning.
Referenced by enableTests().
|
private |
Creates EnableCompareLastFilledBinTest test.
Definition at line 336 of file QTestConfigure.cc.
References DQMStore::createQTest(), error, findOrDefault(), CompareLastFilledBin::getAlgoName(), DQMStore::getQCriterion(), CompareLastFilledBin::setAverage(), QCriterion::setErrorProb(), CompareLastFilledBin::setMax(), CompareLastFilledBin::setMin(), QCriterion::setWarningProb(), testsConfigured, and warning.
Referenced by enableTests().
|
private |
Creates ContentsWithinRangeROOT test.
Creates CompareToMedian test
Definition at line 248 of file QTestConfigure.cc.
References DQMStore::createQTest(), findOrDefault(), CompareToMedian::getAlgoName(), DQMStore::getQCriterion(), CompareToMedian::setEmptyBins(), QCriterion::setErrorProb(), CompareToMedian::setMax(), CompareToMedian::setMaxMedian(), CompareToMedian::setMin(), CompareToMedian::setMinMedian(), CompareToMedian::setStatCut(), QCriterion::setWarningProb(), and testsConfigured.
Referenced by enableTests().
|
private |
Creates ContentsWithinRangeROOT test.
Definition at line 299 of file QTestConfigure.cc.
References DQMStore::createQTest(), error, findOrDefault(), ContentsWithinExpected::getAlgoName(), DQMStore::getQCriterion(), QCriterion::setErrorProb(), ContentsWithinExpected::setMeanRange(), ContentsWithinExpected::setMeanTolerance(), SimpleTest::setMinimumEntries(), ContentsWithinExpected::setRMSRange(), ContentsWithinExpected::setUseEmptyBins(), QCriterion::setWarningProb(), testsConfigured, and warning.
Referenced by enableTests().
|
private |
Creates ContentsYRangeASROOT test.
Creates DeadChannelROOT test
Definition at line 162 of file QTestConfigure.cc.
References DQMStore::createQTest(), error, findOrDefault(), DeadChannel::getAlgoName(), DQMStore::getQCriterion(), QCriterion::setErrorProb(), DeadChannel::setThreshold(), QCriterion::setWarningProb(), testsConfigured, dtDQMClient_cfg::threshold, and warning.
Referenced by enableTests().
|
private |
Creates MeanWithinExpectedROOT test.
Definition at line 202 of file QTestConfigure.cc.
References DQMStore::createQTest(), error, findOrDefault(), MeanWithinExpected::getAlgoName(), DQMStore::getQCriterion(), timingPdfMaker::mean, QCriterion::setErrorProb(), MeanWithinExpected::setExpectedMean(), SimpleTest::setMinimumEntries(), QCriterion::setWarningProb(), testsConfigured, MeanWithinExpected::useRange(), MeanWithinExpected::useRMS(), MeanWithinExpected::useSigma(), warning, SiStripMonitorClusterAlca_cfi::xmax, and SiStripMonitorClusterAlca_cfi::xmin.
Referenced by enableTests().
|
private |
Creates NoisyChannelROOT test.
Definition at line 181 of file QTestConfigure.cc.
References DQMStore::createQTest(), error, findOrDefault(), NoisyChannel::getAlgoName(), DQMStore::getQCriterion(), QCriterion::setErrorProb(), NoisyChannel::setNumNeighbors(), NoisyChannel::setTolerance(), QCriterion::setWarningProb(), testsConfigured, and warning.
Referenced by enableTests().
bool QTestConfigure::enableTests | ( | const std::map< std::string, std::map< std::string, std::string > > & | tests, |
DQMStore * | bei | ||
) |
Creates and defines quality tests.
Definition at line 30 of file QTestConfigure.cc.
References EnableComp2RefChi2Test(), EnableComp2RefEqualHTest(), EnableComp2RefKolmogorovTest(), EnableCompareLastFilledBinTest(), EnableCompareToMedianTest(), EnableContentsWithinExpectedTest(), EnableDeadChannelTest(), EnableMeanWithinExpectedTest(), EnableNoisyChannelTest(), EnableXRangeTest(), EnableYRangeTest(), Comp2RefEqualH::getAlgoName(), Comp2RefChi2::getAlgoName(), Comp2RefKolmogorov::getAlgoName(), ContentsXRange::getAlgoName(), ContentsYRange::getAlgoName(), DeadChannel::getAlgoName(), NoisyChannel::getAlgoName(), ContentsWithinExpected::getAlgoName(), MeanWithinExpected::getAlgoName(), CompareToMedian::getAlgoName(), CompareLastFilledBin::getAlgoName(), AlCaHLTBitMon_QueryRunRegistry::string, utils_v2::tests, and testsConfigured.
Referenced by QTestHandle::configureTests().
|
private |
Creates ContentsXRangeROOT test.
Definition at line 120 of file QTestConfigure.cc.
References DQMStore::createQTest(), error, findOrDefault(), ContentsXRange::getAlgoName(), DQMStore::getQCriterion(), ContentsXRange::setAllowedXRange(), QCriterion::setErrorProb(), QCriterion::setWarningProb(), testsConfigured, warning, SiStripMonitorClusterAlca_cfi::xmax, and SiStripMonitorClusterAlca_cfi::xmin.
Referenced by enableTests().
|
private |
Creates ContentsXRangeASROOT test.
Creates ContentsYRangeROOT test
Definition at line 140 of file QTestConfigure.cc.
References DQMStore::createQTest(), error, findOrDefault(), ContentsYRange::getAlgoName(), DQMStore::getQCriterion(), ContentsYRange::setAllowedYRange(), QCriterion::setErrorProb(), ContentsYRange::setUseEmptyBins(), QCriterion::setWarningProb(), testsConfigured, warning, SiStripMonitorClusterAlca_cfi::ymax, and SiStripMonitorClusterAlca_cfi::ymin.
Referenced by enableTests().
|
private |
Definition at line 17 of file QTestConfigure.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by EnableComp2RefChi2Test(), EnableComp2RefEqualHTest(), EnableComp2RefKolmogorovTest(), EnableCompareLastFilledBinTest(), EnableCompareToMedianTest(), EnableContentsWithinExpectedTest(), EnableDeadChannelTest(), EnableMeanWithinExpectedTest(), EnableNoisyChannelTest(), EnableXRangeTest(), and EnableYRangeTest().
|
inline |
Returns the vector containing the names of the quality tests that have been created.
Definition at line 35 of file QTestConfigure.h.
References testsConfigured.
|
private |
Definition at line 101 of file QTestConfigure.h.
Referenced by EnableComp2RefChi2Test(), EnableComp2RefEqualHTest(), EnableComp2RefKolmogorovTest(), EnableCompareLastFilledBinTest(), EnableCompareToMedianTest(), EnableContentsWithinExpectedTest(), EnableDeadChannelTest(), EnableMeanWithinExpectedTest(), EnableNoisyChannelTest(), enableTests(), EnableXRangeTest(), EnableYRangeTest(), and testsReady().