CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
QTestParameterNames Class Reference

#include <QTestParameterNames.h>

Public Member Functions

std::vector< std::string > getTestParamNames (std::string theTestType)
 
 QTestParameterNames ()
 Constructor. More...
 
 ~QTestParameterNames ()
 Destructor. More...
 

Private Member Functions

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")
 

Private Attributes

std::map< std::string, std::vector< std::string > > configurationMap
 

Detailed Description

Definition at line 18 of file QTestParameterNames.h.

Constructor & Destructor Documentation

QTestParameterNames::QTestParameterNames ( )

Constructor.

Definition at line 13 of file QTestParameterNames.cc.

References constructMap(), ContentsXRange::getAlgoName(), ContentsYRange::getAlgoName(), DeadChannel::getAlgoName(), NoisyChannel::getAlgoName(), ContentsWithinExpected::getAlgoName(), MeanWithinExpected::getAlgoName(), CompareToMedian::getAlgoName(), CompareLastFilledBin::getAlgoName(), and CheckVariance::getAlgoName().

13  {
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 }
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
static std::string getAlgoName()
Definition: QTest.h:261
static std::string getAlgoName()
Definition: QTest.h:213
static std::string getAlgoName()
Definition: QTest.h:687
QTestParameterNames::~QTestParameterNames ( )
inline

Destructor.

Definition at line 23 of file QTestParameterNames.h.

References constructMap(), getTestParamNames(), and AlCaHLTBitMon_QueryRunRegistry::string.

23 {}

Member Function Documentation

void QTestParameterNames::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" 
)
private

Definition at line 36 of file QTestParameterNames.cc.

References configurationMap.

Referenced by QTestParameterNames(), and ~QTestParameterNames().

44  {
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 }
std::map< std::string, std::vector< std::string > > configurationMap
std::vector< std::string > QTestParameterNames::getTestParamNames ( std::string  theTestType)

returns the list of parameters used by the test of a given type (the string theTestType must be one of the names defined in DQMServices/ClientConfig/interface/DQMQualityTestsConfiguration.h

Definition at line 66 of file QTestParameterNames.cc.

References configurationMap, and relativeConstraints::empty.

Referenced by ~QTestParameterNames().

66  {
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

Member Data Documentation

std::map<std::string, std::vector<std::string> > QTestParameterNames::configurationMap
private

Definition at line 40 of file QTestParameterNames.h.

Referenced by constructMap(), and getTestParamNames().