CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QTestParameterNames.cc
Go to the documentation of this file.
1 
10 #include <iostream>
11 #include <cstring>
14 
16 
17  this->constructMap(ContentsXRangeROOT::getAlgoName(), "xmin", "xmax");
18  this->constructMap(ContentsYRangeROOT::getAlgoName(), "ymin", "ymax","useEmptyBins");
19  this->constructMap(DeadChannelROOT::getAlgoName(), "threshold");
20  this->constructMap(NoisyChannelROOT::getAlgoName(), "tolerance", "neighbours");
21  this->constructMap(MeanWithinExpectedROOT::getAlgoName(), "mean","useRMS","useSigma","useRange","xmin","xmax");
22 
23  //======================== new quality tests in the parser =====================//
24  this->constructMap(Comp2RefEqualHROOT::getAlgoName(), "testparam");
25  this->constructMap(Comp2RefChi2ROOT::getAlgoName(), "testparam");
27 
28 // this->constructMap(MostProbableLandauROOT::getAlgoName(), "xmin", "xmax","normalization", "mostprobable", "sigma");
29  this->constructMap(ContentsWithinExpectedROOT::getAlgoName(), "minMean", "maxMean", "minRMS", "maxRMS", "toleranceMean", "minEntries", "useEmptyBins");
30  //this->constructMap(ContentsWithinExpectedASROOT::getAlgoName(), "minCont", "maxCont");
31 
32  this->constructMap(CompareToMedianROOT::getAlgoName(), "MinRel", "MaxRel", "UseEmptyBins", "MinAbs", "MaxAbs");
33  this->constructMap(CompareLastFilledBinROOT::getAlgoName(), "AvVal", "MinVal", "MaxVal");
34 
35 }
36 
37 
38 
39 
41  std::string param4,std::string param5,std::string param6,std::string param7,std::string param8){
42 
43 
44  std::vector<std::string> paramNames;
45  if(std::strcmp(param1.c_str(),"undefined")) paramNames.push_back(param1);
46  if(std::strcmp(param2.c_str(),"undefined")) paramNames.push_back(param2);
47  if(std::strcmp(param3.c_str(),"undefined")) paramNames.push_back(param3);
48  if(std::strcmp(param4.c_str(),"undefined")) paramNames.push_back(param4);
49  if(std::strcmp(param5.c_str(),"undefined")) paramNames.push_back(param5);
50  if(std::strcmp(param6.c_str(),"undefined")) paramNames.push_back(param6);
51  if(std::strcmp(param7.c_str(),"undefined")) paramNames.push_back(param7);
52  if(std::strcmp(param8.c_str(),"undefined")) paramNames.push_back(param8);
53 
54  configurationMap[testType]=paramNames;
55 
56 }
57 
58 
59 
60 std::vector<std::string> QTestParameterNames::getTestParamNames(std::string theTestType){
61 
62  if(configurationMap.find(theTestType) != configurationMap.end()) {
63  return configurationMap[theTestType];
64  }else{
65  std::vector<std::string> empty;
66  return empty;
67  }
68 }
static std::string getAlgoName(void)
Definition: QTest.h:311
static std::string getAlgoName(void)
Definition: QTest.h:360
static std::string getAlgoName(void)
Definition: QTest.h:232
static std::string getAlgoName(void)
Definition: QTest.h:284
static std::string getAlgoName(void)
Definition: QTest.h:611
static std::string getAlgoName(void)
Definition: QTest.h:217
static std::string getAlgoName(void)
Definition: QTest.h:257
std::map< std::string, std::vector< std::string > > configurationMap
static std::string getAlgoName(void)
Definition: QTest.h:176
static std::string getAlgoName(void)
Definition: QTest.h:189
std::vector< std::string > getTestParamNames(std::string theTestType)
QTestParameterNames()
Constructor.
static std::string getAlgoName(void)
Definition: QTest.h:659
static std::string getAlgoName(void)
Definition: QTest.h:399
void constructMap(std::string testType, std::string param1="undefined", std::string param2="undefined", std::string param3="undefined", std::string param4="undefined", std::string param5="undefined", std::string param6="undefined", std::string param7="undefined", std::string param8="undefined")