17 const char * default_value)
const {
18 std::map<std::string, std::string>::const_iterator
iter;
19 if (( iter = m.find(
std::string(item))) != m.end()) {
20 return (*iter).second.c_str();
22 edm::LogWarning(
"QTestConfigure") <<
"Warning, using default value for parameter "
23 << item <<
" with default_value: "
24 << default_value << std::endl;
32 std::map<std::string, std::map<std::string, std::string> >::const_iterator itr;
33 for (itr =
tests.begin(); itr!=
tests.end();++itr) {
34 const std::map<std::string, std::string> ¶ms= itr->second;
68 const std::map<std::string, std::string> & params,
85 const std::map<std::string, std::string> & params,
103 const std::map<std::string, std::string> & params,
113 double warning = atof(
findOrDefault(params,
"warning",
"0"));
120 const std::map<std::string, std::string> & params,
132 double warning = atof(
findOrDefault(params,
"warning",
"0"));
140 const std::map<std::string, std::string> & params,
152 double warning = atof(
findOrDefault(params,
"warning",
"0"));
154 unsigned int useEmptyBins = (
unsigned int)atof(
findOrDefault(params,
"useEmptyBins",
"0"));
162 const std::map<std::string, std::string> & params,
173 double warning = atof(
findOrDefault(params,
"warning",
"0"));
181 const std::map<std::string, std::string> & params,
191 unsigned int neighbors = (
unsigned int) atof(
findOrDefault(params,
"neighbours",
"0"));
192 double tolerance = atof(
findOrDefault(params,
"tolerance",
"0"));
193 double warning = atof(
findOrDefault(params,
"warning",
"0"));
202 const std::map<std::string, std::string> & params,
212 double warning = atof(
findOrDefault(params,
"warning",
"0"));
216 double useRMSVal = atof(
findOrDefault(params,
"useRMS",
"0"));
217 double useSigmaVal = atof(
findOrDefault(params,
"useSigma",
"0"));
218 double useRangeVal = atof(
findOrDefault(params,
"useRange",
"0"));
226 if (useRMSVal && useSigmaVal && useRangeVal)
248 const std::map<std::string, std::string> & params,
299 const std::map<std::string, std::string> & params,
309 unsigned int useEmptyBins = (
unsigned int) atof(
findOrDefault(params,
"useEmptyBins",
"0"));
310 double warning = atof(
findOrDefault(params,
"warning",
"0"));
312 double minMean = atof(
findOrDefault(params,
"minMean",
"0"));
313 double maxMean = atof(
findOrDefault(params,
"maxMean",
"0"));
322 if ( minMean != 0 || maxMean != 0 )
325 if ( minRMS != 0 || maxRMS != 0 )
328 if ( toleranceMean != 0 )
331 if ( minEntries != 0 )
336 const std::map<std::string, std::string> & params,
347 double warning = atof(
findOrDefault(params,
"warning",
"0"));
359 const std::map<std::string, std::string>& params,
371 double warning = atof(
findOrDefault(params,
"warning",
"0"));
void setErrorProb(float prob)
QCriterion * getQCriterion(const std::string &qtname) const
static std::string getAlgoName(void)
get algorithm name
static std::string getAlgoName(void)
test that histogram contents are above Ymin
void setUseEmptyBins(unsigned int useEmptyBins)
static std::string getAlgoName(void)
virtual void setAllowedXRange(double xmin, double xmax)
set allowed range in X-axis (default values: histogram's X-range)
static std::string getAlgoName(void)
void setRMSRange(double xmin, double xmax)
set expected value for mean
void useSigma(double expectedSigma)
void setNumNeighbors(unsigned n)
static std::string getAlgoName(void)
Algorithm for testing if histogram's mean value is near expected value.
Check if any channels are noisy compared to neighboring ones.
static std::string getAlgoName(void)
void setTolerance(float percentage)
static std::string getAlgoName(void)
void setMinimumEntries(unsigned n)
set minimum # of entries needed
void setExpectedMean(double mean)
void setUseEmptyBins(unsigned int useEmptyBins)
void useRange(double xmin, double xmax)
static std::string getAlgoName(void)
void setWarningProb(float prob)
set probability limit for warning and error (default: 90% and 50%)
Comparison to reference using the Kolmogorov algorithm.
void setMeanRange(double xmin, double xmax)
set expected value for mean
static std::string getAlgoName(void)
QCriterion * createQTest(const std::string &algoname, const std::string &qtname)
void setMeanTolerance(float fracTolerance)
set (fractional) tolerance for mean
void setThreshold(double ymin)
set Ymin (inclusive) threshold for "dead" channel (default: 0)
void setAverage(float average)
virtual void setAllowedYRange(double ymin, double ymax)
static std::string getAlgoName(void)
static std::string getAlgoName(void)