test
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 
8 #include <iostream>
9 #include <cstring>
12 
14 
15  this->constructMap(ContentsXRangeROOT::getAlgoName(), "xmin", "xmax");
16  this->constructMap(ContentsYRangeROOT::getAlgoName(), "ymin", "ymax","useEmptyBins");
17  this->constructMap(DeadChannelROOT::getAlgoName(), "threshold");
18  this->constructMap(NoisyChannelROOT::getAlgoName(), "tolerance", "neighbours");
19  this->constructMap(MeanWithinExpectedROOT::getAlgoName(), "mean","useRMS","useSigma","useRange","xmin","xmax");
20 
21  //======================== new quality tests in the parser =====================//
22  this->constructMap(Comp2RefEqualHROOT::getAlgoName(), "testparam");
23  this->constructMap(Comp2RefChi2ROOT::getAlgoName(), "testparam");
25 
26 // this->constructMap(MostProbableLandauROOT::getAlgoName(), "xmin", "xmax","normalization", "mostprobable", "sigma");
27  this->constructMap(ContentsWithinExpectedROOT::getAlgoName(), "minMean", "maxMean", "minRMS", "maxRMS", "toleranceMean", "minEntries", "useEmptyBins");
28  //this->constructMap(ContentsWithinExpectedASROOT::getAlgoName(), "minCont", "maxCont");
29 
30  this->constructMap(CompareToMedianROOT::getAlgoName(), "MinRel", "MaxRel", "UseEmptyBins", "MinAbs", "MaxAbs");
31  this->constructMap(CompareLastFilledBinROOT::getAlgoName(), "AvVal", "MinVal", "MaxVal");
33 }
34 
35 
36 
37 
39  std::string param4,std::string param5,std::string param6,std::string param7,std::string param8){
40 
41 
42  std::vector<std::string> paramNames;
43  if(std::strcmp(param1.c_str(),"undefined")) paramNames.push_back(param1);
44  if(std::strcmp(param2.c_str(),"undefined")) paramNames.push_back(param2);
45  if(std::strcmp(param3.c_str(),"undefined")) paramNames.push_back(param3);
46  if(std::strcmp(param4.c_str(),"undefined")) paramNames.push_back(param4);
47  if(std::strcmp(param5.c_str(),"undefined")) paramNames.push_back(param5);
48  if(std::strcmp(param6.c_str(),"undefined")) paramNames.push_back(param6);
49  if(std::strcmp(param7.c_str(),"undefined")) paramNames.push_back(param7);
50  if(std::strcmp(param8.c_str(),"undefined")) paramNames.push_back(param8);
51 
52  configurationMap[testType]=paramNames;
53 
54 }
55 
56 
57 
58 std::vector<std::string> QTestParameterNames::getTestParamNames(std::string theTestType){
59 
60  if(configurationMap.find(theTestType) != configurationMap.end()) {
61  return configurationMap[theTestType];
62  }else{
63  std::vector<std::string> empty;
64  return empty;
65  }
66 }
static std::string getAlgoName(void)
get algorithm name
Definition: QTest.h:722
static std::string getAlgoName(void)
Definition: QTest.h:312
static std::string getAlgoName(void)
Definition: QTest.h:361
static std::string getAlgoName(void)
Definition: QTest.h:233
static std::string getAlgoName(void)
Definition: QTest.h:285
static std::string getAlgoName(void)
Definition: QTest.h:612
static std::string getAlgoName(void)
Definition: QTest.h:218
static std::string getAlgoName(void)
Definition: QTest.h:258
std::map< std::string, std::vector< std::string > > configurationMap
static std::string getAlgoName(void)
Definition: QTest.h:177
static std::string getAlgoName(void)
Definition: QTest.h:190
std::vector< std::string > getTestParamNames(std::string theTestType)
QTestParameterNames()
Constructor.
static std::string getAlgoName(void)
Definition: QTest.h:660
static std::string getAlgoName(void)
Definition: QTest.h:400
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")