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(), Comp2RefEqualH::getAlgoName(), Comp2RefChi2::getAlgoName(), Comp2Ref2DChi2::getAlgoName(), Comp2RefKolmogorov::getAlgoName(), ContentsXRange::getAlgoName(), ContentsYRange::getAlgoName(), DeadChannel::getAlgoName(), NoisyChannel::getAlgoName(), ContentsWithinExpected::getAlgoName(), MeanWithinExpected::getAlgoName(), CompareToMedian::getAlgoName(), CompareLastFilledBin::getAlgoName(), and CheckVariance::getAlgoName().

13  {
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");
24  this->constructMap(Comp2Ref2DChi2ROOT::getAlgoName(), "testparam");
26 
27 // this->constructMap(MostProbableLandauROOT::getAlgoName(), "xmin", "xmax","normalization", "mostprobable", "sigma");
28  this->constructMap(ContentsWithinExpectedROOT::getAlgoName(), "minMean", "maxMean", "minRMS", "maxRMS", "toleranceMean", "minEntries", "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:192
static std::string getAlgoName()
Definition: QTest.h:248
static std::string getAlgoName()
Definition: QTest.h:220
static std::string getAlgoName()
Definition: QTest.h:642
static std::string getAlgoName()
Definition: QTest.h:430
static std::string getAlgoName()
Definition: QTest.h:263
static std::string getAlgoName()
Definition: QTest.h:391
static std::string getAlgoName()
Definition: QTest.h:315
static std::string getAlgoName()
get algorithm name
Definition: QTest.h:752
static std::string getAlgoName()
Definition: QTest.h:179
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:342
static std::string getAlgoName()
Definition: QTest.h:288
static std::string getAlgoName()
Definition: QTest.h:690
QTestParameterNames::~QTestParameterNames ( )
inline

Destructor.

Definition at line 24 of file QTestParameterNames.h.

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

24 {}

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 39 of file QTestParameterNames.cc.

References configurationMap.

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

40  {
41 
42 
43  std::vector<std::string> paramNames;
44  if(std::strcmp(param1.c_str(),"undefined")) paramNames.push_back(param1);
45  if(std::strcmp(param2.c_str(),"undefined")) paramNames.push_back(param2);
46  if(std::strcmp(param3.c_str(),"undefined")) paramNames.push_back(param3);
47  if(std::strcmp(param4.c_str(),"undefined")) paramNames.push_back(param4);
48  if(std::strcmp(param5.c_str(),"undefined")) paramNames.push_back(param5);
49  if(std::strcmp(param6.c_str(),"undefined")) paramNames.push_back(param6);
50  if(std::strcmp(param7.c_str(),"undefined")) paramNames.push_back(param7);
51  if(std::strcmp(param8.c_str(),"undefined")) paramNames.push_back(param8);
52 
53  configurationMap[testType]=paramNames;
54 
55 }
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 59 of file QTestParameterNames.cc.

References configurationMap, and relativeConstraints::empty.

Referenced by ~QTestParameterNames().

59  {
60 
61  if(configurationMap.find(theTestType) != configurationMap.end()) {
62  return configurationMap[theTestType];
63  }else{
64  std::vector<std::string> empty;
65  return empty;
66  }
67 }
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 37 of file QTestParameterNames.h.

Referenced by constructMap(), and getTestParamNames().