19 std::map<std::string, std::map<std::string, std::string> >::iterator itr;
20 for(itr=
tests.begin(); itr!=
tests.end();++itr){
22 std::map<std::string, std::string> params= itr->second;
24 std::string testName = itr->first;
25 std::string testType = params[
"type"];
67 double warning=atof(params[
"warning"].c_str());
68 double error=atof(params[
"error"].c_str());
86 double warning=atof(params[
"warning"].c_str());
87 double error=atof(params[
"error"].c_str());
104 double warning=atof(params[
"warning"].c_str());
105 double error=atof(params[
"error"].c_str());
121 double xmin=atof(params[
"xmin"].c_str());
122 double xmax=atof(params[
"xmax"].c_str());
126 double warning=atof(params[
"warning"].c_str());
127 double error=atof(params[
"error"].c_str());
143 double ymin=atof(params[
"ymin"].c_str());
144 double ymax=atof(params[
"ymax"].c_str());
148 unsigned int useEmptyBins=(
unsigned int)atof(params[
"useEmptyBins"].c_str());
151 double warning=atof(params[
"warning"].c_str());
152 double error=atof(params[
"error"].c_str());
168 unsigned int threshold=(
unsigned int)atof(params[
"threshold"].c_str());
175 double warning=atof(params[
"warning"].c_str());
176 double error=atof(params[
"error"].c_str());
192 unsigned int neighbors=(
unsigned int)atof(params[
"neighbours"].c_str());
193 double tolerance=atof(params[
"tolerance"].c_str());
197 double warning=atof(params[
"warning"].c_str());
198 double error=atof(params[
"error"].c_str());
214 double warning=atof(params[
"warning"].c_str());
215 double error=atof(params[
"error"].c_str());
219 double mean=atof(params[
"mean"].c_str());
222 int minEntries=atoi(params[
"minEntries"].c_str());
225 double useRMSVal=atof(params[
"useRMS"].c_str());
226 double useSigmaVal=atof(params[
"useSigma"].c_str());
227 double useRangeVal=atof(params[
"useRange"].c_str());
228 if( useRMSVal&&useSigmaVal&&useRangeVal){
241 float xmin=atof(params[
"xmin"].c_str());
242 float xmax=atof(params[
"xmax"].c_str());
260 vtm->
setMin((
double)atof(params[
"MinRel"].c_str()));
261 vtm->
setMax((
double)atof(params[
"MaxRel"].c_str()));
262 vtm->
setEmptyBins((
int)atoi(params[
"UseEmptyBins"].c_str()));
263 vtm->
setMinMedian((
double)atof(params[
"MinAbs"].c_str()));
264 vtm->
setMaxMedian((
double)atof(params[
"MaxAbs"].c_str()));
266 vtm->
setErrorProb((
double)atof(params[
"error"].c_str()));
267 vtm->
setStatCut((
double)atof(params[
"StatCut"].c_str()));
313 unsigned int useEmptyBins=(
unsigned int)atof(params[
"useEmptyBins"].c_str());
316 double warning=atof(params[
"warning"].c_str());
317 double error=atof(params[
"error"].c_str());
321 double minMean=atof(params[
"minMean"].c_str());
322 double maxMean=atof(params[
"maxMean"].c_str());
323 if ( minMean != 0 || maxMean != 0 ) me_qc1->
setMeanRange(minMean, maxMean);
325 double minRMS=atof(params[
"minRMS"].c_str());
326 double maxRMS=atof(params[
"maxRMS"].c_str());
327 if ( minRMS != 0 || maxRMS != 0 ) me_qc1->
setRMSRange(minRMS, maxRMS);
329 double toleranceMean=atof(params[
"toleranceMean"].c_str());
332 int minEntries=atoi(params[
"minEntries"].c_str());
346 double warning=atof(params[
"warning"].c_str());
347 double error=atof(params[
"error"].c_str());
351 double avVal=atof(params[
"AvVal"].c_str());
354 double minVal=atof(params[
"MinVal"].c_str());
357 double maxVal=atof(params[
"MaxVal"].c_str());
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)