#include <QTestConfigure.h>
Public Member Functions | |
void | disableTests (std::vector< std::string > testsOFFList, DQMStore *bei) |
Disables the Quality Tests in the string list. More... | |
bool | enableTests (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, std::map< std::string, std::string >params, DQMStore *bei) |
Creates Comp2RefChi2 test. More... | |
void | EnableComp2RefEqualHTest (std::string testName, std::map< std::string, std::string >params, DQMStore *bei) |
Creates Comp2RefEqualH test. More... | |
void | EnableComp2RefKolmogorovTest (std::string testName, std::map< std::string, std::string >params, DQMStore *bei) |
Creates EnableComp2RefKolmogorov test. More... | |
void | EnableCompareLastFilledBinTest (std::string testName, std::map< std::string, std::string > params, DQMStore *bei) |
Creates EnableCompareLastFilledBinTest test. More... | |
void | EnableCompareToMedianTest (std::string testName, std::map< std::string, std::string > params, DQMStore *bei) |
Creates ContentsWithinRangeROOT test. More... | |
void | EnableContentsWithinExpectedTest (std::string testName, std::map< std::string, std::string > params, DQMStore *bei) |
Creates ContentsWithinRangeROOT test. More... | |
void | EnableDeadChannelTest (std::string testName, std::map< std::string, std::string > params, DQMStore *bei) |
Creates ContentsYRangeASROOT test. More... | |
void | EnableMeanWithinExpectedTest (std::string testName, std::map< std::string, std::string > params, DQMStore *bei) |
Creates MeanWithinExpectedROOT test. More... | |
void | EnableNoisyChannelTest (std::string testName, std::map< std::string, std::string > params, DQMStore *bei) |
Creates NoisyChannelROOT test. More... | |
void | EnableXRangeTest (std::string testName, std::map< std::string, std::string >params, DQMStore *bei) |
Creates ContentsXRangeROOT test. More... | |
void | EnableYRangeTest (std::string testName, std::map< std::string, std::string >params, DQMStore *bei) |
Creates ContentsXRangeASROOT test. More... | |
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 | ( | std::vector< std::string > | testsOFFList, |
DQMStore * | bei | ||
) |
Disables the Quality Tests in the string list.
|
private |
Creates Comp2RefChi2 test.
Definition at line 75 of file QTestConfigure.cc.
References DQMStore::createQTest(), error, Comp2RefChi2::getAlgoName(), DQMStore::getQCriterion(), QCriterion::setErrorProb(), QCriterion::setWarningProb(), testsConfigured, and warning.
Referenced by enableTests().
|
private |
Creates Comp2RefEqualH test.
Definition at line 56 of file QTestConfigure.cc.
References DQMStore::createQTest(), error, Comp2RefEqualH::getAlgoName(), DQMStore::getQCriterion(), QCriterion::setErrorProb(), QCriterion::setWarningProb(), testsConfigured, and warning.
Referenced by enableTests().
|
private |
Creates EnableComp2RefKolmogorov test.
Definition at line 93 of file QTestConfigure.cc.
References DQMStore::createQTest(), error, Comp2RefKolmogorov::getAlgoName(), DQMStore::getQCriterion(), QCriterion::setErrorProb(), QCriterion::setWarningProb(), testsConfigured, and warning.
Referenced by enableTests().
|
private |
Creates EnableCompareLastFilledBinTest test.
Definition at line 335 of file QTestConfigure.cc.
References DQMStore::createQTest(), error, 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 250 of file QTestConfigure.cc.
References DQMStore::createQTest(), 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 300 of file QTestConfigure.cc.
References DQMStore::createQTest(), error, 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 157 of file QTestConfigure.cc.
References DQMStore::createQTest(), error, 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 203 of file QTestConfigure.cc.
References DQMStore::createQTest(), error, MeanWithinExpected::getAlgoName(), DQMStore::getQCriterion(), timingPdfMaker::mean, QCriterion::setErrorProb(), MeanWithinExpected::setExpectedMean(), SimpleTest::setMinimumEntries(), QCriterion::setWarningProb(), testsConfigured, MeanWithinExpected::useRange(), MeanWithinExpected::useRMS(), MeanWithinExpected::useSigma(), and warning.
Referenced by enableTests().
|
private |
Creates NoisyChannelROOT test.
Definition at line 181 of file QTestConfigure.cc.
References DQMStore::createQTest(), error, NoisyChannel::getAlgoName(), DQMStore::getQCriterion(), QCriterion::setErrorProb(), NoisyChannel::setNumNeighbors(), NoisyChannel::setTolerance(), QCriterion::setWarningProb(), testsConfigured, and warning.
Referenced by enableTests().
bool QTestConfigure::enableTests | ( | std::map< std::string, std::map< std::string, std::string > > | tests, |
DQMStore * | bei | ||
) |
Creates and defines quality tests.
Definition at line 15 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(), utils_v2::tests, and testsConfigured.
Referenced by QTestHandle::configureTests().
|
private |
Creates ContentsXRangeROOT test.
Definition at line 110 of file QTestConfigure.cc.
References DQMStore::createQTest(), error, ContentsXRange::getAlgoName(), DQMStore::getQCriterion(), ContentsXRange::setAllowedXRange(), QCriterion::setErrorProb(), QCriterion::setWarningProb(), testsConfigured, and warning.
Referenced by enableTests().
|
private |
Creates ContentsXRangeASROOT test.
Creates ContentsYRangeROOT test
Definition at line 133 of file QTestConfigure.cc.
References DQMStore::createQTest(), error, ContentsYRange::getAlgoName(), DQMStore::getQCriterion(), ContentsYRange::setAllowedYRange(), QCriterion::setErrorProb(), ContentsYRange::setUseEmptyBins(), QCriterion::setWarningProb(), testsConfigured, and warning.
Referenced by enableTests().
|
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 96 of file QTestConfigure.h.
Referenced by EnableComp2RefChi2Test(), EnableComp2RefEqualHTest(), EnableComp2RefKolmogorovTest(), EnableCompareLastFilledBinTest(), EnableCompareToMedianTest(), EnableContentsWithinExpectedTest(), EnableDeadChannelTest(), EnableMeanWithinExpectedTest(), EnableNoisyChannelTest(), enableTests(), EnableXRangeTest(), EnableYRangeTest(), and testsReady().