#include <SiPixelConfigParser.h>
Public Member Functions | |
bool | getCalibType (int &u_freq) |
bool | getFrequencyForBarrelSummary (int &u_freq) |
bool | getFrequencyForEndcapSummary (int &u_freq) |
bool | getFrequencyForGrandBarrelSummary (int &u_freq) |
bool | getFrequencyForGrandEndcapSummary (int &u_freq) |
bool | getFrequencyForTrackerMap (int &u_freq) |
bool | getMENamesForBarrelSummary (std::string &structure_name, std::vector< std::string > &me_names) |
bool | getMENamesForEndcapSummary (std::string &structure_name, std::vector< std::string > &me_names) |
bool | getMENamesForFEDErrorSummary (std::string &structure_name, std::vector< std::string > &me_names) |
bool | getMENamesForGrandBarrelSummary (std::string &structure_name, std::vector< std::string > &me_names) |
bool | getMENamesForGrandEndcapSummary (std::string &structure_name, std::vector< std::string > &me_names) |
bool | getMENamesForTrackerMap (std::string &tkmap_name, std::vector< std::string > &me_names) |
bool | getMENamesForTree (std::string &structure_name, std::vector< std::string > &me_names) |
bool | getMessageLimitForQTests (int &u_freq) |
bool | getSourceType (int &u_freq) |
SiPixelConfigParser () | |
~SiPixelConfigParser () |
* Class that handles the SiPixel Quality Tests
Definition at line 20 of file SiPixelConfigParser.h.
SiPixelConfigParser::SiPixelConfigParser | ( | ) |
Definition at line 13 of file SiPixelConfigParser.cc.
: DQMParserBase() { edm::LogInfo("SiPixelConfigParser") << " Creating SiPixelConfigParser " << "\n" ; }
SiPixelConfigParser::~SiPixelConfigParser | ( | ) |
Definition at line 20 of file SiPixelConfigParser.cc.
{ edm::LogInfo("SiPixelActionExecutor") << " Deleting SiPixelConfigParser " << "\n" ; }
bool SiPixelConfigParser::getCalibType | ( | int & | u_freq | ) |
Get Node
Definition at line 471 of file SiPixelConfigParser.cc.
References qtxml::_toDOMS(), qtxml::_toString(), gather_cfg::cout, and DQMParserBase::doc().
Referenced by SiPixelActionExecutor::checkQTestResults(), and SiPixelActionExecutor::readConfiguration().
{ if (!doc()) { cout << " SiPixelConfigParser::Configuration File is not set!!! " << endl; return false; } unsigned int structureNodes = doc()->getElementsByTagName(qtxml::_toDOMS("CalibType"))->getLength(); if (structureNodes == 0) return false; DOMNode* structureNode = doc()->getElementsByTagName(qtxml::_toDOMS("CalibType"))->item(0); //Get Node name if (! structureNode) return false; DOMElement* structureElement = static_cast<DOMElement *>(structureNode); if (! structureElement) return false; u_freq = atoi(qtxml::_toString(structureElement->getAttribute(qtxml::_toDOMS("value"))).c_str()); return true; }
bool SiPixelConfigParser::getFrequencyForBarrelSummary | ( | int & | u_freq | ) |
Get Node
Definition at line 281 of file SiPixelConfigParser.cc.
References qtxml::_toDOMS(), qtxml::_toString(), gather_cfg::cout, and DQMParserBase::doc().
Referenced by SiPixelActionExecutor::readConfiguration().
{ if (!doc()) { cout << " SiPixelConfigParser::Configuration File is not set!!! " << endl; return false; } unsigned int structureNodes = doc()->getElementsByTagName(qtxml::_toDOMS("SubStructureBarrelLevel"))->getLength(); if (structureNodes == 0) return false; DOMNode* structureNode = doc()->getElementsByTagName(qtxml::_toDOMS("SubStructureBarrelLevel"))->item(0); //Get Node name if (! structureNode) return false; DOMElement* structureElement = static_cast<DOMElement *>(structureNode); if (! structureElement) return false; u_freq = atoi(qtxml::_toString(structureElement->getAttribute(qtxml::_toDOMS("update_frequency"))).c_str()); return true; }
bool SiPixelConfigParser::getFrequencyForEndcapSummary | ( | int & | u_freq | ) |
Get Node
Definition at line 301 of file SiPixelConfigParser.cc.
References qtxml::_toDOMS(), qtxml::_toString(), gather_cfg::cout, and DQMParserBase::doc().
Referenced by SiPixelActionExecutor::readConfiguration().
{ if (!doc()) { cout << " SiPixelConfigParser::Configuration File is not set!!! " << endl; return false; } unsigned int structureNodes = doc()->getElementsByTagName(qtxml::_toDOMS("SubStructureEndcapLevel"))->getLength(); if (structureNodes == 0) return false; DOMNode* structureNode = doc()->getElementsByTagName(qtxml::_toDOMS("SubStructureEndcapLevel"))->item(0); //Get Node name if (! structureNode) return false; DOMElement* structureElement = static_cast<DOMElement *>(structureNode); if (! structureElement) return false; u_freq = atoi(qtxml::_toString(structureElement->getAttribute(qtxml::_toDOMS("update_frequency"))).c_str()); return true; }
bool SiPixelConfigParser::getFrequencyForGrandBarrelSummary | ( | int & | u_freq | ) |
Get Node
Definition at line 393 of file SiPixelConfigParser.cc.
References qtxml::_toDOMS(), qtxml::_toString(), gather_cfg::cout, and DQMParserBase::doc().
Referenced by SiPixelActionExecutor::readConfiguration().
{ if (!doc()) { cout << " SiPixelConfigParser::Configuration File is not set!!! " << endl; return false; } unsigned int structureNodes = doc()->getElementsByTagName(qtxml::_toDOMS("SubStructureGrandBarrelLevel"))->getLength(); if (structureNodes == 0) return false; DOMNode* structureNode = doc()->getElementsByTagName(qtxml::_toDOMS("SubStructureGrandBarrelLevel"))->item(0); //Get Node name if (! structureNode) return false; DOMElement* structureElement = static_cast<DOMElement *>(structureNode); if (! structureElement) return false; u_freq = atoi(qtxml::_toString(structureElement->getAttribute(qtxml::_toDOMS("update_frequency"))).c_str()); return true; }
bool SiPixelConfigParser::getFrequencyForGrandEndcapSummary | ( | int & | u_freq | ) |
Get Node
Definition at line 413 of file SiPixelConfigParser.cc.
References qtxml::_toDOMS(), qtxml::_toString(), gather_cfg::cout, and DQMParserBase::doc().
Referenced by SiPixelActionExecutor::readConfiguration().
{ if (!doc()) { cout << " SiPixelConfigParser::Configuration File is not set!!! " << endl; return false; } unsigned int structureNodes = doc()->getElementsByTagName(qtxml::_toDOMS("SubStructureGrandEndcapLevel"))->getLength(); if (structureNodes == 0) return false; DOMNode* structureNode = doc()->getElementsByTagName(qtxml::_toDOMS("SubStructureGrandEndcapLevel"))->item(0); //Get Node name if (! structureNode) return false; DOMElement* structureElement = static_cast<DOMElement *>(structureNode); if (! structureElement) return false; u_freq = atoi(qtxml::_toString(structureElement->getAttribute(qtxml::_toDOMS("update_frequency"))).c_str()); return true; }
bool SiPixelConfigParser::getFrequencyForTrackerMap | ( | int & | u_freq | ) |
Get Node
Definition at line 118 of file SiPixelConfigParser.cc.
References qtxml::_toDOMS(), qtxml::_toString(), gather_cfg::cout, and DQMParserBase::doc().
Referenced by SiPixelActionExecutor::readConfiguration().
{ if (!doc()) { cout << " SiPixelConfigParser::Configuration File is not set!!! " << endl; return false; } unsigned int tkMapNodes = doc()->getElementsByTagName(qtxml::_toDOMS("TkMap"))->getLength(); if (tkMapNodes != 1) return false; DOMNode* tkMapNode = doc()->getElementsByTagName(qtxml::_toDOMS("TkMap"))->item(0); //Get Node name if (! tkMapNode) return false; DOMElement* tkMapElement = static_cast<DOMElement *>(tkMapNode); if (! tkMapElement) return false; u_freq = atoi(qtxml::_toString(tkMapElement->getAttribute(qtxml::_toDOMS("update_frequency"))).c_str()); return true; }
bool SiPixelConfigParser::getMENamesForBarrelSummary | ( | std::string & | structure_name, |
std::vector< std::string > & | me_names | ||
) |
Get Node
Definition at line 176 of file SiPixelConfigParser.cc.
References qtxml::_toDOMS(), _toString(), gather_cfg::cout, DQMParserBase::doc(), and gen::k.
Referenced by SiPixelActionExecutor::createSummary().
{ // cout<<"Entering SiPixelConfigParser::getMENamesForBarrelSummary..."<<endl; if (!doc()) { cout << " SiPixelConfigParser::Configuration File is not set!!! " << endl; return false; } me_names.clear(); unsigned int structureNodes = doc()->getElementsByTagName(qtxml::_toDOMS("SubStructureBarrelLevel"))->getLength(); if (structureNodes == 0) return false; DOMNode* structureNode = doc()->getElementsByTagName(qtxml::_toDOMS("SubStructureBarrelLevel"))->item(0); //Get QTEST name if (! structureNode) return false; DOMElement* structureElement = static_cast<DOMElement *>(structureNode); if (! structureElement) return false; structure_name = qtxml::_toString(structureElement->getAttribute(qtxml::_toDOMS("name"))); DOMNodeList * meList = structureElement->getElementsByTagName(qtxml::_toDOMS("MonElement")); for (unsigned int k = 0; k < meList->getLength(); k++) { DOMNode* meNode = meList->item(k); if (!meNode) return false; DOMElement* meElement = static_cast<DOMElement *>(meNode); if (!meElement) return false; string me_name = qtxml::_toString(meElement->getAttribute (qtxml::_toDOMS ("name"))); me_names.push_back(me_name); } // cout<<"...leaving SiPixelConfigParser::getMENamesForBarrelSummary!"<<endl; if (me_names.size() == 0) return false; else return true; }
bool SiPixelConfigParser::getMENamesForEndcapSummary | ( | std::string & | structure_name, |
std::vector< std::string > & | me_names | ||
) |
Get Node
Definition at line 208 of file SiPixelConfigParser.cc.
References qtxml::_toDOMS(), _toString(), gather_cfg::cout, DQMParserBase::doc(), and gen::k.
Referenced by SiPixelActionExecutor::createSummary().
{ // cout<<"Entering SiPixelConfigParser::getMENamesForEndcapSummary..."<<endl; if (!doc()) { cout << " SiPixelConfigParser::Configuration File is not set!!! " << endl; return false; } me_names.clear(); unsigned int structureNodes = doc()->getElementsByTagName(qtxml::_toDOMS("SubStructureEndcapLevel"))->getLength(); if (structureNodes == 0) return false; DOMNode* structureNode = doc()->getElementsByTagName(qtxml::_toDOMS("SubStructureEndcapLevel"))->item(0); //Get QTEST name if (! structureNode) return false; DOMElement* structureElement = static_cast<DOMElement *>(structureNode); if (! structureElement) return false; structure_name = qtxml::_toString(structureElement->getAttribute(qtxml::_toDOMS("name"))); DOMNodeList * meList = structureElement->getElementsByTagName(qtxml::_toDOMS("MonElement")); for (unsigned int k = 0; k < meList->getLength(); k++) { DOMNode* meNode = meList->item(k); if (!meNode) return false; DOMElement* meElement = static_cast<DOMElement *>(meNode); if (!meElement) return false; string me_name = qtxml::_toString(meElement->getAttribute (qtxml::_toDOMS ("name"))); me_names.push_back(me_name); } if (me_names.size() == 0) return false; else return true; // cout<<"...leaving SiPixelConfigParser::getMENamesForEndcapSummary!"<<endl; }
bool SiPixelConfigParser::getMENamesForFEDErrorSummary | ( | std::string & | structure_name, |
std::vector< std::string > & | me_names | ||
) |
Get Node
Definition at line 244 of file SiPixelConfigParser.cc.
References qtxml::_toDOMS(), _toString(), gather_cfg::cout, DQMParserBase::doc(), and gen::k.
Referenced by SiPixelActionExecutor::createSummary().
{ //cout<<"Entering SiPixelConfigParser::getMENamesForFEDErrorSummary..."<<endl; if (!doc()) { cout << " SiPixelConfigParser::Configuration File is not set!!! " << endl; return false; } me_names.clear(); unsigned int structureNodes = doc()->getElementsByTagName(qtxml::_toDOMS("SubStructureNonDetId"))->getLength(); if (structureNodes == 0) return false; DOMNode* structureNode = doc()->getElementsByTagName(qtxml::_toDOMS("SubStructureNonDetId"))->item(0); //Get QTEST name if (! structureNode) return false; DOMElement* structureElement = static_cast<DOMElement *>(structureNode); if (! structureElement) return false; structure_name = qtxml::_toString(structureElement->getAttribute(qtxml::_toDOMS("name"))); DOMNodeList * meList = structureElement->getElementsByTagName(qtxml::_toDOMS("MonElement")); for (unsigned int k = 0; k < meList->getLength(); k++) { DOMNode* meNode = meList->item(k); if (!meNode) return false; DOMElement* meElement = static_cast<DOMElement *>(meNode); if (!meElement) return false; string me_name = qtxml::_toString(meElement->getAttribute (qtxml::_toDOMS ("name"))); me_names.push_back(me_name); } if (me_names.size() == 0) return false; else return true; //cout<<"...leaving SiPixelConfigParser::getMENamesForFEDErrorSummary!"<<endl; }
bool SiPixelConfigParser::getMENamesForGrandBarrelSummary | ( | std::string & | structure_name, |
std::vector< std::string > & | me_names | ||
) |
Get Node
Definition at line 321 of file SiPixelConfigParser.cc.
References qtxml::_toDOMS(), _toString(), gather_cfg::cout, DQMParserBase::doc(), and gen::k.
Referenced by StorageAccount::fillSummary().
{ //cout<<"Entering SiPixelConfigParser::getMENamesForGrandBarrelSummary..."<<endl; if (!doc()) { cout << " SiPixelConfigParser::Configuration File is not set!!! " << endl; return false; } me_names.clear(); unsigned int structureNodes = doc()->getElementsByTagName(qtxml::_toDOMS("SubStructureGrandBarrelLevel"))->getLength(); if (structureNodes == 0) return false; DOMNode* structureNode = doc()->getElementsByTagName(qtxml::_toDOMS("SubStructureGrandBarrelLevel"))->item(0); //Get QTEST name if (! structureNode) return false; DOMElement* structureElement = static_cast<DOMElement *>(structureNode); if (! structureElement) return false; structure_name = qtxml::_toString(structureElement->getAttribute(qtxml::_toDOMS("name"))); DOMNodeList * meList = structureElement->getElementsByTagName(qtxml::_toDOMS("MonElement")); for (unsigned int k = 0; k < meList->getLength(); k++) { DOMNode* meNode = meList->item(k); if (!meNode) return false; DOMElement* meElement = static_cast<DOMElement *>(meNode); if (!meElement) return false; string me_name = qtxml::_toString(meElement->getAttribute (qtxml::_toDOMS ("name"))); me_names.push_back(me_name); } if (me_names.size() == 0) return false; else return true; //cout<<"...leaving SiPixelConfigParser::getMENamesForGrandBarrelSummary!"<<endl; }
bool SiPixelConfigParser::getMENamesForGrandEndcapSummary | ( | std::string & | structure_name, |
std::vector< std::string > & | me_names | ||
) |
Get Node
Definition at line 357 of file SiPixelConfigParser.cc.
References qtxml::_toDOMS(), _toString(), gather_cfg::cout, DQMParserBase::doc(), and gen::k.
Referenced by StorageAccount::fillSummary().
{ //cout<<"Entering SiPixelConfigParser::getMENamesForGrandEndcapSummary..."<<endl; if (!doc()) { cout << " SiPixelConfigParser::Configuration File is not set!!! " << endl; return false; } me_names.clear(); unsigned int structureNodes = doc()->getElementsByTagName(qtxml::_toDOMS("SubStructureGrandEndcapLevel"))->getLength(); if (structureNodes == 0) return false; DOMNode* structureNode = doc()->getElementsByTagName(qtxml::_toDOMS("SubStructureGrandEndcapLevel"))->item(0); //Get QTEST name if (! structureNode) return false; DOMElement* structureElement = static_cast<DOMElement *>(structureNode); if (! structureElement) return false; structure_name = qtxml::_toString(structureElement->getAttribute(qtxml::_toDOMS("name"))); DOMNodeList * meList = structureElement->getElementsByTagName(qtxml::_toDOMS("MonElement")); for (unsigned int k = 0; k < meList->getLength(); k++) { DOMNode* meNode = meList->item(k); if (!meNode) return false; DOMElement* meElement = static_cast<DOMElement *>(meNode); if (!meElement) return false; string me_name = qtxml::_toString(meElement->getAttribute (qtxml::_toDOMS ("name"))); me_names.push_back(me_name); } if (me_names.size() == 0) return false; else return true; //cout<<"...leaving SiPixelConfigParser::getMENamesForGrandEndcapSummary!"<<endl; }
bool SiPixelConfigParser::getMENamesForTrackerMap | ( | std::string & | tkmap_name, |
std::vector< std::string > & | me_names | ||
) |
Get Node
Definition at line 27 of file SiPixelConfigParser.cc.
References qtxml::_toDOMS(), _toString(), ACBold, ACPlain, ACRed, ACYellow, gather_cfg::cout, DQMParserBase::doc(), and gen::k.
Referenced by SiPixelInformationExtractor::getTrackerMapHistos().
{ if (!doc()) { cout << " SiPixelConfigParser::Configuration File is not set!!! " << endl; return false; } me_names.clear(); unsigned int tkMapNodes = doc()->getElementsByTagName(qtxml::_toDOMS("TkMap"))->getLength(); if (tkMapNodes != 1) { cout << ACYellow << ACBold << "[SiPixelConfigParser::getMENamesForTrackerMap()]" << ACRed << ACBold << "No TkMap tag found in configuration file" << ACPlain << endl ; return false; } DOMNode* tkMapNode = doc()->getElementsByTagName(qtxml::_toDOMS("TkMap"))->item(0); //Get QTEST name if (! tkMapNode) { cout << ACYellow << ACBold << "[SiPixelConfigParser::getMENamesForTrackerMap()]" << ACRed << ACBold << " No TkMap tag elements found in configuration file" << ACPlain << endl ; return false; } DOMElement* tkMapElement = static_cast<DOMElement *>(tkMapNode); if (! tkMapElement) { cout << ACYellow << ACBold << "[SiPixelConfigParser::getMENamesForTrackerMap()]" << ACRed << ACBold << " No TkMap tag dom elements found in configuration file" << ACPlain << endl ; return false; } tkmap_name = qtxml::_toString(tkMapElement->getAttribute(qtxml::_toDOMS("name"))); DOMNodeList * meList = tkMapElement->getElementsByTagName(qtxml::_toDOMS("MonElement")); if( meList->getLength() == 0 ) { cout << ACYellow << ACBold << "[SiPixelConfigParser::getMENamesForTrackerMap()]" << ACRed << ACBold << " No MonElement found in configuration file" << ACPlain << endl ; } for (unsigned int k = 0; k < meList->getLength(); k++) { DOMNode* meNode = meList->item(k); if (!meNode) { cout << ACYellow << ACBold << "[SiPixelConfigParser::getMENamesForTrackerMap()]" << ACRed << ACBold << " No MonElement item found in configuration file" << ACPlain << endl ; return false; } DOMElement* meElement = static_cast<DOMElement *>(meNode); if (!meElement) { cout << ACYellow << ACBold << "[SiPixelConfigParser::getMENamesForTrackerMap()]" << ACRed << ACBold << " No MonElement sub-elements found in configuration file" << ACPlain << endl ; return false; } string me_name = qtxml::_toString(meElement->getAttribute (qtxml::_toDOMS ("name"))); me_names.push_back(me_name); } if (me_names.size() == 0) { cout << ACYellow << ACBold << "[SiPixelConfigParser::getMENamesForTrackerMap()]" << ACRed << ACBold << " No MonElement sub-element names found in configuration file" << ACPlain << endl ; return false; } else { return true; } }
bool SiPixelConfigParser::getMENamesForTree | ( | std::string & | structure_name, |
std::vector< std::string > & | me_names | ||
) |
Get Node
Definition at line 139 of file SiPixelConfigParser.cc.
References qtxml::_toDOMS(), _toString(), gather_cfg::cout, DQMParserBase::doc(), and gen::k.
{ //cout<<"Entering SiPixelConfigParser::getMENamesForTree..."<<endl; if (!doc()) { cout << " SiPixelConfigParser::Configuration File is not set!!! " << endl; return false; } me_names.clear(); unsigned int structureNodes = doc()->getElementsByTagName(qtxml::_toDOMS("SubStructureLevel"))->getLength(); if (structureNodes == 0) return false; DOMNode* structureNode = doc()->getElementsByTagName(qtxml::_toDOMS("SubStructureLevel"))->item(0); //Get QTEST name if (! structureNode) return false; DOMElement* structureElement = static_cast<DOMElement *>(structureNode); if (! structureElement) return false; structure_name = qtxml::_toString(structureElement->getAttribute(qtxml::_toDOMS("name"))); DOMNodeList * meList = structureElement->getElementsByTagName(qtxml::_toDOMS("MonElement")); for (unsigned int k = 0; k < meList->getLength(); k++) { DOMNode* meNode = meList->item(k); if (!meNode) return false; DOMElement* meElement = static_cast<DOMElement *>(meNode); if (!meElement) return false; string me_name = qtxml::_toString(meElement->getAttribute (qtxml::_toDOMS ("name"))); me_names.push_back(me_name); } if (me_names.size() == 0) return false; else return true; //cout<<"...leaving SiPixelConfigParser::getMENamesForTree!"<<endl; }
bool SiPixelConfigParser::getMessageLimitForQTests | ( | int & | u_freq | ) |
Get Node
Definition at line 433 of file SiPixelConfigParser.cc.
References qtxml::_toDOMS(), qtxml::_toString(), gather_cfg::cout, and DQMParserBase::doc().
Referenced by SiPixelActionExecutor::checkQTestResults(), and SiPixelActionExecutor::readConfiguration().
{ if (!doc()) { cout << " SiPixelConfigParser::Configuration File is not set!!! " << endl; return false; } unsigned int structureNodes = doc()->getElementsByTagName(qtxml::_toDOMS("QTestMessageLimit"))->getLength(); if (structureNodes == 0) return false; DOMNode* structureNode = doc()->getElementsByTagName(qtxml::_toDOMS("QTestMessageLimit"))->item(0); //Get Node name if (! structureNode) return false; DOMElement* structureElement = static_cast<DOMElement *>(structureNode); if (! structureElement) return false; u_freq = atoi(qtxml::_toString(structureElement->getAttribute(qtxml::_toDOMS("value"))).c_str()); return true; }
bool SiPixelConfigParser::getSourceType | ( | int & | u_freq | ) |
Get Node
Definition at line 453 of file SiPixelConfigParser.cc.
References qtxml::_toDOMS(), qtxml::_toString(), gather_cfg::cout, and DQMParserBase::doc().
Referenced by SiPixelActionExecutor::createSummary(), and SiPixelActionExecutor::readConfiguration().
{ if (!doc()) { cout << " SiPixelConfigParser::Configuration File is not set!!! " << endl; return false; } unsigned int structureNodes = doc()->getElementsByTagName(qtxml::_toDOMS("SourceType"))->getLength(); if (structureNodes == 0) return false; DOMNode* structureNode = doc()->getElementsByTagName(qtxml::_toDOMS("SourceType"))->item(0); //Get Node name if (! structureNode) return false; DOMElement* structureElement = static_cast<DOMElement *>(structureNode); if (! structureElement) return false; u_freq = atoi(qtxml::_toString(structureElement->getAttribute(qtxml::_toDOMS("code"))).c_str()); return true; }