19 const char * default_value)
const {
20 std::map<std::string, std::string>::const_iterator iter;
21 if (( iter = m.find(
std::string(item))) != m.end()) {
22 return (*iter).second.c_str();
24 edm::LogWarning(
"QTestConfigure") <<
"Warning, using default value for parameter "
25 << item <<
" with default_value: "
26 << default_value << std::endl;
34 std::map<std::string, std::map<std::string, std::string> >::const_iterator itr;
35 for (itr =
tests.begin(); itr!=
tests.end();++itr) {
36 const std::map<std::string, std::string> ¶ms= itr->second;
69 const std::map<std::string, std::string> & params,
86 const std::map<std::string, std::string> & params,
104 const std::map<std::string, std::string> & params,
121 const std::map<std::string, std::string> & params,
141 const std::map<std::string, std::string> & params,
155 unsigned int useEmptyBins = (
unsigned int)atof(
findOrDefault(params,
"useEmptyBins",
"0"));
163 const std::map<std::string, std::string> & params,
182 const std::map<std::string, std::string> & params,
192 unsigned int neighbors = (
unsigned int) atof(
findOrDefault(params,
"neighbours",
"0"));
193 double tolerance = atof(
findOrDefault(params,
"tolerance",
"0"));
203 const std::map<std::string, std::string> & params,
216 int minEntries = atoi(
findOrDefault(params,
"minEntries",
"0"));
217 double useRMSVal = atof(
findOrDefault(params,
"useRMS",
"0"));
218 double useSigmaVal = atof(
findOrDefault(params,
"useSigma",
"0"));
219 double useRangeVal = atof(
findOrDefault(params,
"useRange",
"0"));
227 if (useRMSVal && useSigmaVal && useRangeVal)
249 const std::map<std::string, std::string> & params,
300 const std::map<std::string, std::string> & params,
310 unsigned int useEmptyBins = (
unsigned int) atof(
findOrDefault(params,
"useEmptyBins",
"0"));
313 double minMean = atof(
findOrDefault(params,
"minMean",
"0"));
314 double maxMean = atof(
findOrDefault(params,
"maxMean",
"0"));
317 double toleranceMean = atof(
findOrDefault(params,
"toleranceMean",
"0"));
318 int minEntries = atoi(
findOrDefault(params,
"minEntries",
"0"));
323 if ( minMean != 0 || maxMean != 0 )
326 if ( minRMS != 0 || maxRMS != 0 )
329 if ( toleranceMean != 0 )
332 if ( minEntries != 0 )
337 const std::map<std::string, std::string> & params,
void setErrorProb(float prob)
QCriterion * getQCriterion(const std::string &qtname) const
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)