#include <QTestConfigure.h>
Public Types | |
typedef dqm::harvesting::DQMStore | DQMStore |
typedef dqm::harvesting::MonitorElement | MonitorElement |
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 | 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 | EnableContentSigmaTest (std::string testName, const std::map< std::string, std::string > ¶ms, DQMStore *bei) |
Creates ContentSigmaROOT 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 19 of file QTestConfigure.h.
Definition at line 21 of file QTestConfigure.h.
Definition at line 22 of file QTestConfigure.h.
|
inline |
|
inline |
Destructor.
Definition at line 27 of file QTestConfigure.h.
References disableTests(), enableTests(), genParticles_cff::map, AlCaHLTBitMon_QueryRunRegistry::string, and utils_v2::tests.
void QTestConfigure::disableTests | ( | const std::vector< std::string > & | testsOFFList, |
DQMStore * | bei | ||
) |
Disables the Quality Tests in the string list.
Referenced by ~QTestConfigure().
|
private |
Creates CheckVariance test.
Definition at line 343 of file QTestConfigure.cc.
References dqm::dqmstoreimpl::DQMStore::createQTest(), relativeConstraints::error, findOrDefault(), CheckVariance::getAlgoName(), dqm::dqmstoreimpl::DQMStore::getQCriterion(), QCriterion::setErrorProb(), QCriterion::setWarningProb(), testsConfigured, and MessageLogger_cfi::warning.
Referenced by enableTests(), and testsReady().
|
private |
Creates EnableCompareLastFilledBinTest test.
Definition at line 320 of file QTestConfigure.cc.
References dqm::dqmstoreimpl::DQMStore::createQTest(), relativeConstraints::error, findOrDefault(), CompareLastFilledBin::getAlgoName(), dqm::dqmstoreimpl::DQMStore::getQCriterion(), CompareLastFilledBin::setAverage(), QCriterion::setErrorProb(), CompareLastFilledBin::setMax(), CompareLastFilledBin::setMin(), QCriterion::setWarningProb(), testsConfigured, and MessageLogger_cfi::warning.
Referenced by enableTests(), and testsReady().
|
private |
Creates ContentsWithinRangeROOT test.
Creates CompareToMedian test
Definition at line 232 of file QTestConfigure.cc.
References dqm::dqmstoreimpl::DQMStore::createQTest(), findOrDefault(), CompareToMedian::getAlgoName(), dqm::dqmstoreimpl::DQMStore::getQCriterion(), CompareToMedian::setEmptyBins(), QCriterion::setErrorProb(), CompareToMedian::setMax(), CompareToMedian::setMaxMedian(), CompareToMedian::setMin(), CompareToMedian::setMinMedian(), CompareToMedian::setStatCut(), QCriterion::setWarningProb(), and testsConfigured.
Referenced by enableTests(), and testsReady().
|
private |
Creates ContentSigmaROOT test.
Definition at line 143 of file QTestConfigure.cc.
References dqm::dqmstoreimpl::DQMStore::createQTest(), relativeConstraints::error, findOrDefault(), ContentSigma::getAlgoName(), dqm::dqmstoreimpl::DQMStore::getQCriterion(), createfilelist::int, ContentSigma::setDead(), QCriterion::setErrorProb(), ContentSigma::setNoisy(), ContentSigma::setNumNeighborsX(), ContentSigma::setNumNeighborsY(), ContentSigma::setNumXblocks(), ContentSigma::setNumYblocks(), ContentSigma::setToleranceDead(), ContentSigma::setToleranceNoisy(), QCriterion::setWarningProb(), ContentSigma::setXMax(), ContentSigma::setXMin(), ContentSigma::setYMax(), ContentSigma::setYMin(), testsConfigured, MessageLogger_cfi::warning, multiplicitycorr_cfi::xMax, photonAnalyzer_cfi::xMin, multiplicitycorr_cfi::yMax, and photonAnalyzer_cfi::yMin.
Referenced by enableTests(), and testsReady().
|
private |
Creates ContentsWithinRangeROOT test.
Definition at line 283 of file QTestConfigure.cc.
References dqm::dqmstoreimpl::DQMStore::createQTest(), relativeConstraints::error, findOrDefault(), ContentsWithinExpected::getAlgoName(), dqm::dqmstoreimpl::DQMStore::getQCriterion(), createfilelist::int, dtFineDelayCorr_cfi::minEntries, QCriterion::setErrorProb(), ContentsWithinExpected::setMeanRange(), ContentsWithinExpected::setMeanTolerance(), SimpleTest::setMinimumEntries(), ContentsWithinExpected::setRMSRange(), ContentsWithinExpected::setUseEmptyBins(), QCriterion::setWarningProb(), testsConfigured, PedestalClient_cfi::toleranceMean, and MessageLogger_cfi::warning.
Referenced by enableTests(), and testsReady().
|
private |
Creates ContentsYRangeASROOT test.
Creates DeadChannelROOT test
Definition at line 102 of file QTestConfigure.cc.
References dqm::dqmstoreimpl::DQMStore::createQTest(), relativeConstraints::error, findOrDefault(), DeadChannel::getAlgoName(), dqm::dqmstoreimpl::DQMStore::getQCriterion(), createfilelist::int, QCriterion::setErrorProb(), DeadChannel::setThreshold(), QCriterion::setWarningProb(), testsConfigured, MessageLogger_cff::threshold, and MessageLogger_cfi::warning.
Referenced by enableTests(), and testsReady().
|
private |
Creates MeanWithinExpectedROOT test.
Definition at line 186 of file QTestConfigure.cc.
References dqm::dqmstoreimpl::DQMStore::createQTest(), relativeConstraints::error, findOrDefault(), MeanWithinExpected::getAlgoName(), dqm::dqmstoreimpl::DQMStore::getQCriterion(), SiStripPI::mean, dtFineDelayCorr_cfi::minEntries, QCriterion::setErrorProb(), MeanWithinExpected::setExpectedMean(), SimpleTest::setMinimumEntries(), QCriterion::setWarningProb(), testsConfigured, MeanWithinExpected::useRange(), MeanWithinExpected::useRMS(), MeanWithinExpected::useSigma(), MessageLogger_cfi::warning, TrackerOfflineValidation_Dqm_cff::xmax, and TrackerOfflineValidation_Dqm_cff::xmin.
Referenced by enableTests(), and testsReady().
|
private |
Creates NoisyChannelROOT test.
Definition at line 121 of file QTestConfigure.cc.
References dqm::dqmstoreimpl::DQMStore::createQTest(), relativeConstraints::error, findOrDefault(), NoisyChannel::getAlgoName(), dqm::dqmstoreimpl::DQMStore::getQCriterion(), createfilelist::int, QCriterion::setErrorProb(), NoisyChannel::setNumNeighbors(), NoisyChannel::setTolerance(), QCriterion::setWarningProb(), testsConfigured, tolerance, and MessageLogger_cfi::warning.
Referenced by enableTests(), and testsReady().
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 26 of file QTestConfigure.cc.
References EnableCheckVarianceTest(), EnableCompareLastFilledBinTest(), EnableCompareToMedianTest(), EnableContentSigmaTest(), EnableContentsWithinExpectedTest(), EnableDeadChannelTest(), EnableMeanWithinExpectedTest(), EnableNoisyChannelTest(), EnableXRangeTest(), EnableYRangeTest(), ContentsXRange::getAlgoName(), ContentsYRange::getAlgoName(), DeadChannel::getAlgoName(), NoisyChannel::getAlgoName(), ContentSigma::getAlgoName(), ContentsWithinExpected::getAlgoName(), MeanWithinExpected::getAlgoName(), CompareToMedian::getAlgoName(), CompareLastFilledBin::getAlgoName(), CheckVariance::getAlgoName(), CalibrationSummaryClient_cfi::params, AlCaHLTBitMon_QueryRunRegistry::string, L1TBPTX_cfi::testName, utils_v2::tests, and testsConfigured.
Referenced by QTestHandle::configureTests(), and ~QTestConfigure().
|
private |
Creates ContentsXRangeROOT test.
Definition at line 60 of file QTestConfigure.cc.
References dqm::dqmstoreimpl::DQMStore::createQTest(), relativeConstraints::error, findOrDefault(), ContentsXRange::getAlgoName(), dqm::dqmstoreimpl::DQMStore::getQCriterion(), ContentsXRange::setAllowedXRange(), QCriterion::setErrorProb(), QCriterion::setWarningProb(), testsConfigured, MessageLogger_cfi::warning, TrackerOfflineValidation_Dqm_cff::xmax, and TrackerOfflineValidation_Dqm_cff::xmin.
Referenced by enableTests(), and testsReady().
|
private |
Creates ContentsXRangeASROOT test.
Creates ContentsYRangeROOT test
Definition at line 80 of file QTestConfigure.cc.
References dqm::dqmstoreimpl::DQMStore::createQTest(), relativeConstraints::error, findOrDefault(), ContentsYRange::getAlgoName(), dqm::dqmstoreimpl::DQMStore::getQCriterion(), createfilelist::int, ContentsYRange::setAllowedYRange(), QCriterion::setErrorProb(), ContentsYRange::setUseEmptyBins(), QCriterion::setWarningProb(), testsConfigured, MessageLogger_cfi::warning, L1TOccupancyClient_cfi::ymax, and L1TOccupancyClient_cfi::ymin.
Referenced by enableTests(), and testsReady().
|
private |
Definition at line 14 of file QTestConfigure.cc.
References LogDebug, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by EnableCheckVarianceTest(), EnableCompareLastFilledBinTest(), EnableCompareToMedianTest(), EnableContentSigmaTest(), EnableContentsWithinExpectedTest(), EnableDeadChannelTest(), EnableMeanWithinExpectedTest(), EnableNoisyChannelTest(), EnableXRangeTest(), EnableYRangeTest(), and testsReady().
|
inline |
Returns the vector containing the names of the quality tests that have been created.
Definition at line 33 of file QTestConfigure.h.
References EnableCheckVarianceTest(), EnableCompareLastFilledBinTest(), EnableCompareToMedianTest(), EnableContentSigmaTest(), EnableContentsWithinExpectedTest(), EnableDeadChannelTest(), EnableMeanWithinExpectedTest(), EnableNoisyChannelTest(), EnableXRangeTest(), EnableYRangeTest(), findOrDefault(), CalibrationSummaryClient_cfi::params, AlCaHLTBitMon_QueryRunRegistry::string, L1TBPTX_cfi::testName, and testsConfigured.
|
private |
Definition at line 81 of file QTestConfigure.h.
Referenced by EnableCheckVarianceTest(), EnableCompareLastFilledBinTest(), EnableCompareToMedianTest(), EnableContentSigmaTest(), EnableContentsWithinExpectedTest(), EnableDeadChannelTest(), EnableMeanWithinExpectedTest(), EnableNoisyChannelTest(), enableTests(), EnableXRangeTest(), EnableYRangeTest(), and testsReady().