#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 | EnableCheckVarianceTest (std::string testName, const std::map< std::string, std::string > ¶ms, DQMStore *bei) |
Creates CheckVariance test. More... | |
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 20 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 CheckVariance test.
Definition at line 358 of file QTestConfigure.cc.
References DQMStore::createQTest(), relativeConstraints::error, findOrDefault(), CheckVariance::getAlgoName(), DQMStore::getQCriterion(), QCriterion::setErrorProb(), QCriterion::setWarningProb(), testsConfigured, and accesses::warning.
Referenced by enableTests().
|
private |
Creates Comp2RefChi2 test.
Definition at line 84 of file QTestConfigure.cc.
References DQMStore::createQTest(), relativeConstraints::error, findOrDefault(), Comp2RefChi2::getAlgoName(), DQMStore::getQCriterion(), QCriterion::setErrorProb(), QCriterion::setWarningProb(), testsConfigured, and accesses::warning.
Referenced by enableTests().
|
private |
Creates Comp2RefEqualH test.
Definition at line 67 of file QTestConfigure.cc.
References DQMStore::createQTest(), relativeConstraints::error, findOrDefault(), Comp2RefEqualH::getAlgoName(), DQMStore::getQCriterion(), QCriterion::setErrorProb(), QCriterion::setWarningProb(), testsConfigured, and accesses::warning.
Referenced by enableTests().
|
private |
Creates EnableComp2RefKolmogorov test.
Definition at line 102 of file QTestConfigure.cc.
References DQMStore::createQTest(), relativeConstraints::error, findOrDefault(), Comp2RefKolmogorov::getAlgoName(), DQMStore::getQCriterion(), QCriterion::setErrorProb(), QCriterion::setWarningProb(), testsConfigured, and accesses::warning.
Referenced by enableTests().
|
private |
Creates EnableCompareLastFilledBinTest test.
Definition at line 335 of file QTestConfigure.cc.
References DQMStore::createQTest(), relativeConstraints::error, findOrDefault(), CompareLastFilledBin::getAlgoName(), DQMStore::getQCriterion(), CompareLastFilledBin::setAverage(), QCriterion::setErrorProb(), CompareLastFilledBin::setMax(), CompareLastFilledBin::setMin(), QCriterion::setWarningProb(), testsConfigured, and accesses::warning.
Referenced by enableTests().
|
private |
Creates ContentsWithinRangeROOT test.
Creates CompareToMedian test
Definition at line 247 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 298 of file QTestConfigure.cc.
References DQMStore::createQTest(), relativeConstraints::error, findOrDefault(), ContentsWithinExpected::getAlgoName(), DQMStore::getQCriterion(), QCriterion::setErrorProb(), ContentsWithinExpected::setMeanRange(), ContentsWithinExpected::setMeanTolerance(), SimpleTest::setMinimumEntries(), ContentsWithinExpected::setRMSRange(), ContentsWithinExpected::setUseEmptyBins(), QCriterion::setWarningProb(), testsConfigured, and accesses::warning.
Referenced by enableTests().
|
private |
Creates ContentsYRangeASROOT test.
Creates DeadChannelROOT test
Definition at line 161 of file QTestConfigure.cc.
References DQMStore::createQTest(), relativeConstraints::error, findOrDefault(), DeadChannel::getAlgoName(), DQMStore::getQCriterion(), QCriterion::setErrorProb(), DeadChannel::setThreshold(), QCriterion::setWarningProb(), testsConfigured, dtDQMClient_cfg::threshold, and accesses::warning.
Referenced by enableTests().
|
private |
Creates MeanWithinExpectedROOT test.
Definition at line 201 of file QTestConfigure.cc.
References DQMStore::createQTest(), relativeConstraints::error, findOrDefault(), MeanWithinExpected::getAlgoName(), DQMStore::getQCriterion(), timingPdfMaker::mean, QCriterion::setErrorProb(), MeanWithinExpected::setExpectedMean(), SimpleTest::setMinimumEntries(), QCriterion::setWarningProb(), testsConfigured, MeanWithinExpected::useRange(), MeanWithinExpected::useRMS(), MeanWithinExpected::useSigma(), accesses::warning, SiStripMonitorClusterAlca_cfi::xmax, and SiStripMonitorClusterAlca_cfi::xmin.
Referenced by enableTests().
|
private |
Creates NoisyChannelROOT test.
Definition at line 180 of file QTestConfigure.cc.
References DQMStore::createQTest(), relativeConstraints::error, findOrDefault(), NoisyChannel::getAlgoName(), DQMStore::getQCriterion(), QCriterion::setErrorProb(), NoisyChannel::setNumNeighbors(), NoisyChannel::setTolerance(), QCriterion::setWarningProb(), testsConfigured, and accesses::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 28 of file QTestConfigure.cc.
References EnableCheckVarianceTest(), 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(), CheckVariance::getAlgoName(), AlCaHLTBitMon_QueryRunRegistry::string, utils_v2::tests, and testsConfigured.
Referenced by QTestHandle::configureTests().
|
private |
Creates ContentsXRangeROOT test.
Definition at line 119 of file QTestConfigure.cc.
References DQMStore::createQTest(), relativeConstraints::error, findOrDefault(), ContentsXRange::getAlgoName(), DQMStore::getQCriterion(), ContentsXRange::setAllowedXRange(), QCriterion::setErrorProb(), QCriterion::setWarningProb(), testsConfigured, accesses::warning, SiStripMonitorClusterAlca_cfi::xmax, and SiStripMonitorClusterAlca_cfi::xmin.
Referenced by enableTests().
|
private |
Creates ContentsXRangeASROOT test.
Creates ContentsYRangeROOT test
Definition at line 139 of file QTestConfigure.cc.
References DQMStore::createQTest(), relativeConstraints::error, findOrDefault(), ContentsYRange::getAlgoName(), DQMStore::getQCriterion(), ContentsYRange::setAllowedYRange(), QCriterion::setErrorProb(), ContentsYRange::setUseEmptyBins(), QCriterion::setWarningProb(), testsConfigured, accesses::warning, SiStripMonitorClusterAlca_cfi::ymax, and SiStripMonitorClusterAlca_cfi::ymin.
Referenced by enableTests().
|
private |
Definition at line 15 of file QTestConfigure.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by EnableCheckVarianceTest(), 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 33 of file QTestConfigure.h.
References testsConfigured.
|
private |
Definition at line 103 of file QTestConfigure.h.
Referenced by EnableCheckVarianceTest(), EnableComp2RefChi2Test(), EnableComp2RefEqualHTest(), EnableComp2RefKolmogorovTest(), EnableCompareLastFilledBinTest(), EnableCompareToMedianTest(), EnableContentsWithinExpectedTest(), EnableDeadChannelTest(), EnableMeanWithinExpectedTest(), EnableNoisyChannelTest(), enableTests(), EnableXRangeTest(), EnableYRangeTest(), and testsReady().