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 LogDebug(
"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;
70 const std::map<std::string, std::string> & params,
87 const std::map<std::string, std::string> & params,
104 const std::map<std::string, std::string> & params,
114 double warning = atof(
findOrDefault(params,
"warning",
"0"));
116 int minEntries = atoi(
findOrDefault(params,
"minEntries",
"0"));
119 if ( minEntries != 0 )
124 const std::map<std::string, std::string> & params,
134 double warning = atof(
findOrDefault(params,
"warning",
"0"));
141 const std::map<std::string, std::string> & params,
153 double warning = atof(
findOrDefault(params,
"warning",
"0"));
161 const std::map<std::string, std::string> & params,
173 double warning = atof(
findOrDefault(params,
"warning",
"0"));
175 unsigned int useEmptyBins = (
unsigned int)atof(
findOrDefault(params,
"useEmptyBins",
"0"));
183 const std::map<std::string, std::string> & params,
194 double warning = atof(
findOrDefault(params,
"warning",
"0"));
202 const std::map<std::string, std::string> & params,
212 unsigned int neighbors = (
unsigned int) atof(
findOrDefault(params,
"neighbours",
"0"));
214 double warning = atof(
findOrDefault(params,
"warning",
"0"));
223 const std::map<std::string, std::string> & params,
233 double warning = atof(
findOrDefault(params,
"warning",
"0"));
236 int minEntries = atoi(
findOrDefault(params,
"minEntries",
"0"));
237 double useRMSVal = atof(
findOrDefault(params,
"useRMS",
"0"));
238 double useSigmaVal = atof(
findOrDefault(params,
"useSigma",
"0"));
239 double useRangeVal = atof(
findOrDefault(params,
"useRange",
"0"));
247 if (useRMSVal && useSigmaVal && useRangeVal)
269 const std::map<std::string, std::string> & params,
320 const std::map<std::string, std::string> & params,
330 unsigned int useEmptyBins = (
unsigned int) atof(
findOrDefault(params,
"useEmptyBins",
"0"));
331 double warning = atof(
findOrDefault(params,
"warning",
"0"));
333 double minMean = atof(
findOrDefault(params,
"minMean",
"0"));
334 double maxMean = atof(
findOrDefault(params,
"maxMean",
"0"));
337 double toleranceMean = atof(
findOrDefault(params,
"toleranceMean",
"0"));
338 int minEntries = atoi(
findOrDefault(params,
"minEntries",
"0"));
343 if ( minMean != 0 || maxMean != 0 )
346 if ( minRMS != 0 || maxRMS != 0 )
349 if ( toleranceMean != 0 )
352 if ( minEntries != 0 )
357 const std::map<std::string, std::string> & params,
368 double warning = atof(
findOrDefault(params,
"warning",
"0"));
380 const std::map<std::string, std::string>& params,
392 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)
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)