#include <QTestParameterNames.h>
Public Member Functions | |
std::vector< std::string > | getTestParamNames (std::string theTestType) |
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 |
* Defines name and number of parameters that must be specified in the xml configuration file for each quality test besides error and warning thresholds. 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(), CompareToMedian::getAlgoName(), DeadChannel::getAlgoName(), MeanWithinExpected::getAlgoName(), Comp2RefKolmogorov::getAlgoName(), Comp2RefChi2::getAlgoName(), ContentsYRange::getAlgoName(), NoisyChannel::getAlgoName(), ContentsXRange::getAlgoName(), and ContentsWithinExpected::getAlgoName().
{ this->constructMap(ContentsXRangeROOT::getAlgoName(), "xmin", "xmax"); this->constructMap(ContentsYRangeROOT::getAlgoName(), "ymin", "ymax","useEmptyBins"); this->constructMap(DeadChannelROOT::getAlgoName(), "threshold"); this->constructMap(NoisyChannelROOT::getAlgoName(), "tolerance", "neighbours"); this->constructMap(MeanWithinExpectedROOT::getAlgoName(), "mean","useRMS","useSigma","useRange","xmin","xmax"); //======================== new quality tests in the parser =====================// this->constructMap(Comp2RefEqualHROOT::getAlgoName(), "testparam"); this->constructMap(Comp2RefChi2ROOT::getAlgoName(), "testparam"); this->constructMap(Comp2RefKolmogorovROOT::getAlgoName(), "testparam"); // this->constructMap(MostProbableLandauROOT::getAlgoName(), "xmin", "xmax","normalization", "mostprobable", "sigma"); this->constructMap(ContentsWithinExpectedROOT::getAlgoName(), "minMean", "maxMean", "minRMS", "maxRMS", "toleranceMean", "minEntries", "useEmptyBins"); //this->constructMap(ContentsWithinExpectedASROOT::getAlgoName(), "minCont", "maxCont"); this->constructMap(CompareToMedianROOT::getAlgoName(), "MinRel", "MaxRel", "UseEmptyBins", "MinAbs", "MaxAbs"); }
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 39 of file QTestParameterNames.cc.
References configurationMap.
Referenced by QTestParameterNames().
{ std::vector<std::string> paramNames; if(std::strcmp(param1.c_str(),"undefined")) paramNames.push_back(param1); if(std::strcmp(param2.c_str(),"undefined")) paramNames.push_back(param2); if(std::strcmp(param3.c_str(),"undefined")) paramNames.push_back(param3); if(std::strcmp(param4.c_str(),"undefined")) paramNames.push_back(param4); if(std::strcmp(param5.c_str(),"undefined")) paramNames.push_back(param5); if(std::strcmp(param6.c_str(),"undefined")) paramNames.push_back(param6); if(std::strcmp(param7.c_str(),"undefined")) paramNames.push_back(param7); if(std::strcmp(param8.c_str(),"undefined")) paramNames.push_back(param8); configurationMap[testType]=paramNames; }
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.
{ if(configurationMap.find(theTestType) != configurationMap.end()) { return configurationMap[theTestType]; }else{ std::vector<std::string> empty; return empty; } }
std::map<std::string, std::vector<std::string> > QTestParameterNames::configurationMap [private] |
Definition at line 39 of file QTestParameterNames.h.
Referenced by constructMap(), and getTestParamNames().