CMS 3D CMS Logo

QTestParameterNames.cc
Go to the documentation of this file.
1 
8 #include <iostream>
9 #include <cstring>
12 
14  this->constructMap(ContentsXRangeROOT::getAlgoName(), "xmin", "xmax");
15  this->constructMap(ContentsYRangeROOT::getAlgoName(), "ymin", "ymax", "useEmptyBins");
16  this->constructMap(DeadChannelROOT::getAlgoName(), "threshold");
17  this->constructMap(NoisyChannelROOT::getAlgoName(), "tolerance", "neighbours");
18  this->constructMap(MeanWithinExpectedROOT::getAlgoName(), "mean", "useRMS", "useSigma", "useRange", "xmin", "xmax");
19 
20  // this->constructMap(MostProbableLandauROOT::getAlgoName(), "xmin", "xmax","normalization", "mostprobable", "sigma");
22  "minMean",
23  "maxMean",
24  "minRMS",
25  "maxRMS",
26  "toleranceMean",
27  "minEntries",
28  "useEmptyBins");
29  //this->constructMap(ContentsWithinExpectedASROOT::getAlgoName(), "minCont", "maxCont");
30 
31  this->constructMap(CompareToMedianROOT::getAlgoName(), "MinRel", "MaxRel", "UseEmptyBins", "MinAbs", "MaxAbs");
32  this->constructMap(CompareLastFilledBinROOT::getAlgoName(), "AvVal", "MinVal", "MaxVal");
34 }
35 
37  std::string param1,
38  std::string param2,
39  std::string param3,
40  std::string param4,
41  std::string param5,
42  std::string param6,
43  std::string param7,
44  std::string param8) {
45  std::vector<std::string> paramNames;
46  if (std::strcmp(param1.c_str(), "undefined"))
47  paramNames.push_back(param1);
48  if (std::strcmp(param2.c_str(), "undefined"))
49  paramNames.push_back(param2);
50  if (std::strcmp(param3.c_str(), "undefined"))
51  paramNames.push_back(param3);
52  if (std::strcmp(param4.c_str(), "undefined"))
53  paramNames.push_back(param4);
54  if (std::strcmp(param5.c_str(), "undefined"))
55  paramNames.push_back(param5);
56  if (std::strcmp(param6.c_str(), "undefined"))
57  paramNames.push_back(param6);
58  if (std::strcmp(param7.c_str(), "undefined"))
59  paramNames.push_back(param7);
60  if (std::strcmp(param8.c_str(), "undefined"))
61  paramNames.push_back(param8);
62 
63  configurationMap[testType] = paramNames;
64 }
65 
66 std::vector<std::string> QTestParameterNames::getTestParamNames(std::string theTestType) {
67  if (configurationMap.find(theTestType) != configurationMap.end()) {
68  return configurationMap[theTestType];
69  } else {
70  std::vector<std::string> empty;
71  return empty;
72  }
73 }
std::map< std::string, std::vector< std::string > > configurationMap
std::vector< std::string > getTestParamNames(std::string theTestType)
static std::string getAlgoName()
Definition: QTest.h:641
static std::string getAlgoName()
Definition: QTest.h:438
static std::string getAlgoName()
Definition: QTest.h:189
static std::string getAlgoName()
Definition: QTest.h:408
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")
static std::string getAlgoName()
Definition: QTest.h:238
static std::string getAlgoName()
get algorithm name
Definition: QTest.h:743
QTestParameterNames()
Constructor.
static std::string getAlgoName()
Definition: QTest.h:261
static std::string getAlgoName()
Definition: QTest.h:213
static std::string getAlgoName()
Definition: QTest.h:687