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,
120 const std::map<std::string, std::string> & params,
140 const std::map<std::string, std::string> & params,
154 unsigned int useEmptyBins = (
unsigned int)atof(
findOrDefault(params,
"useEmptyBins",
"0"));
162 const std::map<std::string, std::string> & params,
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"));
202 const std::map<std::string, std::string> & params,
215 int minEntries = atoi(
findOrDefault(params,
"minEntries",
"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"));
312 double minMean = atof(
findOrDefault(params,
"minMean",
"0"));
313 double maxMean = atof(
findOrDefault(params,
"maxMean",
"0"));
316 double toleranceMean = atof(
findOrDefault(params,
"toleranceMean",
"0"));
317 int minEntries = atoi(
findOrDefault(params,
"minEntries",
"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,
359 const std::map<std::string, std::string>& params,
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)