#include <DQMServices/ClientConfig/interface/QTestParameterNames.h>
Public Member Functions | |
std::vector< std::string > | 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 | |
QTestParameterNames () | |
Constructor. | |
~QTestParameterNames () | |
Destructor. | |
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 |
It's used by QTestConfigurationPerser to check that all necessary parameters are defined.
Definition at line 20 of file QTestParameterNames.h.
QTestParameterNames::QTestParameterNames | ( | ) |
Constructor.
Definition at line 15 of file QTestParameterNames.cc.
References constructMap(), Comp2RefEqualH::getAlgoName(), DeadChannel::getAlgoName(), MeanWithinExpected::getAlgoName(), Comp2RefKolmogorov::getAlgoName(), Comp2RefChi2::getAlgoName(), ContentsYRange::getAlgoName(), NoisyChannel::getAlgoName(), ContentsXRange::getAlgoName(), and ContentsWithinExpected::getAlgoName().
00015 { 00016 00017 this->constructMap(ContentsXRangeROOT::getAlgoName(), "xmin", "xmax"); 00018 this->constructMap(ContentsYRangeROOT::getAlgoName(), "ymin", "ymax","useEmptyBins"); 00019 this->constructMap(DeadChannelROOT::getAlgoName(), "threshold"); 00020 this->constructMap(NoisyChannelROOT::getAlgoName(), "tolerance", "neighbours"); 00021 this->constructMap(MeanWithinExpectedROOT::getAlgoName(), "mean","useRMS","useSigma","useRange","xmin","xmax"); 00022 00023 //======================== new quality tests in the parser =====================// 00024 this->constructMap(Comp2RefEqualHROOT::getAlgoName(), "testparam"); 00025 this->constructMap(Comp2RefChi2ROOT::getAlgoName(), "testparam"); 00026 this->constructMap(Comp2RefKolmogorovROOT::getAlgoName(), "testparam"); 00027 00028 // this->constructMap(MostProbableLandauROOT::getAlgoName(), "xmin", "xmax","normalization", "mostprobable", "sigma"); 00029 this->constructMap(ContentsWithinExpectedROOT::getAlgoName(), "minMean", "maxMean", "minRMS", "maxRMS", "toleranceMean", "minEntries", "useEmptyBins"); 00030 //this->constructMap(ContentsWithinExpectedASROOT::getAlgoName(), "minCont", "maxCont"); 00031 00032 }
QTestParameterNames::~QTestParameterNames | ( | ) | [inline] |
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 37 of file QTestParameterNames.cc.
References configurationMap.
Referenced by QTestParameterNames().
00038 { 00039 00040 00041 std::vector<std::string> paramNames; 00042 if(std::strcmp(param1.c_str(),"undefined")) paramNames.push_back(param1); 00043 if(std::strcmp(param2.c_str(),"undefined")) paramNames.push_back(param2); 00044 if(std::strcmp(param3.c_str(),"undefined")) paramNames.push_back(param3); 00045 if(std::strcmp(param4.c_str(),"undefined")) paramNames.push_back(param4); 00046 if(std::strcmp(param5.c_str(),"undefined")) paramNames.push_back(param5); 00047 if(std::strcmp(param6.c_str(),"undefined")) paramNames.push_back(param6); 00048 if(std::strcmp(param7.c_str(),"undefined")) paramNames.push_back(param7); 00049 if(std::strcmp(param8.c_str(),"undefined")) paramNames.push_back(param8); 00050 00051 configurationMap[testType]=paramNames; 00052 00053 }
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 57 of file QTestParameterNames.cc.
References configurationMap, and empty.
Referenced by QTestConfigurationParser::checkParameters().
00057 { 00058 00059 if(configurationMap.find(theTestType) != configurationMap.end()) { 00060 return configurationMap[theTestType]; 00061 }else{ 00062 std::vector<std::string> empty; 00063 return empty; 00064 } 00065 }
std::map<std::string, std::vector<std::string> > QTestParameterNames::configurationMap [private] |
Definition at line 39 of file QTestParameterNames.h.
Referenced by constructMap(), and getTestParamNames().