#include <DQM/SiPixelMonitorClient/interface/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 () |
Definition at line 20 of file SiPixelConfigParser.h.
SiPixelConfigParser::SiPixelConfigParser | ( | ) |
Definition at line 13 of file SiPixelConfigParser.cc.
00013 : DQMParserBase() { 00014 edm::LogInfo("SiPixelConfigParser") << 00015 " Creating SiPixelConfigParser " << "\n" ; 00016 }
SiPixelConfigParser::~SiPixelConfigParser | ( | ) |
Definition at line 20 of file SiPixelConfigParser.cc.
00020 { 00021 edm::LogInfo("SiPixelActionExecutor") << 00022 " Deleting SiPixelConfigParser " << "\n" ; 00023 }
Get Node
Definition at line 471 of file SiPixelConfigParser.cc.
References qtxml::_toDOMS(), qtxml::_toString(), GenMuonPlsPt100GeV_cfg::cout, DQMParserBase::doc, and lat::endl().
Referenced by SiPixelActionExecutor::checkQTestResults(), and SiPixelActionExecutor::readConfiguration().
00471 { 00472 if (!doc) { 00473 cout << " SiPixelConfigParser::Configuration File is not set!!! " << endl; 00474 return false; 00475 } 00476 unsigned int structureNodes = doc->getElementsByTagName(qtxml::_toDOMS("CalibType"))->getLength(); 00477 if (structureNodes == 0) return false; 00479 DOMNode* structureNode = doc->getElementsByTagName(qtxml::_toDOMS("CalibType"))->item(0); 00480 //Get Node name 00481 if (! structureNode) return false; 00482 DOMElement* structureElement = static_cast<DOMElement *>(structureNode); 00483 if (! structureElement) return false; 00484 00485 u_freq = atoi(qtxml::_toString(structureElement->getAttribute(qtxml::_toDOMS("value"))).c_str()); 00486 return true; 00487 }
Get Node
Definition at line 281 of file SiPixelConfigParser.cc.
References qtxml::_toDOMS(), qtxml::_toString(), GenMuonPlsPt100GeV_cfg::cout, DQMParserBase::doc, and lat::endl().
Referenced by SiPixelActionExecutor::readConfiguration().
00281 { 00282 if (!doc) { 00283 cout << " SiPixelConfigParser::Configuration File is not set!!! " << endl; 00284 return false; 00285 } 00286 00287 unsigned int structureNodes = doc->getElementsByTagName(qtxml::_toDOMS("SubStructureBarrelLevel"))->getLength(); 00288 if (structureNodes == 0) return false; 00290 DOMNode* structureNode = doc->getElementsByTagName(qtxml::_toDOMS("SubStructureBarrelLevel"))->item(0); 00291 //Get Node name 00292 if (! structureNode) return false; 00293 DOMElement* structureElement = static_cast<DOMElement *>(structureNode); 00294 if (! structureElement) return false; 00295 00296 u_freq = atoi(qtxml::_toString(structureElement->getAttribute(qtxml::_toDOMS("update_frequency"))).c_str()); 00297 return true; 00298 }
Get Node
Definition at line 301 of file SiPixelConfigParser.cc.
References qtxml::_toDOMS(), qtxml::_toString(), GenMuonPlsPt100GeV_cfg::cout, DQMParserBase::doc, and lat::endl().
Referenced by SiPixelActionExecutor::readConfiguration().
00301 { 00302 if (!doc) { 00303 cout << " SiPixelConfigParser::Configuration File is not set!!! " << endl; 00304 return false; 00305 } 00306 00307 unsigned int structureNodes = doc->getElementsByTagName(qtxml::_toDOMS("SubStructureEndcapLevel"))->getLength(); 00308 if (structureNodes == 0) return false; 00310 DOMNode* structureNode = doc->getElementsByTagName(qtxml::_toDOMS("SubStructureEndcapLevel"))->item(0); 00311 //Get Node name 00312 if (! structureNode) return false; 00313 DOMElement* structureElement = static_cast<DOMElement *>(structureNode); 00314 if (! structureElement) return false; 00315 00316 u_freq = atoi(qtxml::_toString(structureElement->getAttribute(qtxml::_toDOMS("update_frequency"))).c_str()); 00317 return true; 00318 }
Get Node
Definition at line 393 of file SiPixelConfigParser.cc.
References qtxml::_toDOMS(), qtxml::_toString(), GenMuonPlsPt100GeV_cfg::cout, DQMParserBase::doc, and lat::endl().
Referenced by SiPixelActionExecutor::readConfiguration().
00393 { 00394 if (!doc) { 00395 cout << " SiPixelConfigParser::Configuration File is not set!!! " << endl; 00396 return false; 00397 } 00398 00399 unsigned int structureNodes = doc->getElementsByTagName(qtxml::_toDOMS("SubStructureGrandBarrelLevel"))->getLength(); 00400 if (structureNodes == 0) return false; 00402 DOMNode* structureNode = doc->getElementsByTagName(qtxml::_toDOMS("SubStructureGrandBarrelLevel"))->item(0); 00403 //Get Node name 00404 if (! structureNode) return false; 00405 DOMElement* structureElement = static_cast<DOMElement *>(structureNode); 00406 if (! structureElement) return false; 00407 00408 u_freq = atoi(qtxml::_toString(structureElement->getAttribute(qtxml::_toDOMS("update_frequency"))).c_str()); 00409 return true; 00410 }
Get Node
Definition at line 413 of file SiPixelConfigParser.cc.
References qtxml::_toDOMS(), qtxml::_toString(), GenMuonPlsPt100GeV_cfg::cout, DQMParserBase::doc, and lat::endl().
Referenced by SiPixelActionExecutor::readConfiguration().
00413 { 00414 if (!doc) { 00415 cout << " SiPixelConfigParser::Configuration File is not set!!! " << endl; 00416 return false; 00417 } 00418 00419 unsigned int structureNodes = doc->getElementsByTagName(qtxml::_toDOMS("SubStructureGrandEndcapLevel"))->getLength(); 00420 if (structureNodes == 0) return false; 00422 DOMNode* structureNode = doc->getElementsByTagName(qtxml::_toDOMS("SubStructureGrandEndcapLevel"))->item(0); 00423 //Get Node name 00424 if (! structureNode) return false; 00425 DOMElement* structureElement = static_cast<DOMElement *>(structureNode); 00426 if (! structureElement) return false; 00427 00428 u_freq = atoi(qtxml::_toString(structureElement->getAttribute(qtxml::_toDOMS("update_frequency"))).c_str()); 00429 return true; 00430 }
Get Node
Definition at line 118 of file SiPixelConfigParser.cc.
References qtxml::_toDOMS(), qtxml::_toString(), GenMuonPlsPt100GeV_cfg::cout, DQMParserBase::doc, and lat::endl().
Referenced by SiPixelActionExecutor::readConfiguration().
00118 { 00119 if (!doc) { 00120 cout << " SiPixelConfigParser::Configuration File is not set!!! " << endl; 00121 return false; 00122 } 00123 00124 unsigned int tkMapNodes = doc->getElementsByTagName(qtxml::_toDOMS("TkMap"))->getLength(); 00125 if (tkMapNodes != 1) return false; 00127 DOMNode* tkMapNode = doc->getElementsByTagName(qtxml::_toDOMS("TkMap"))->item(0); 00128 //Get Node name 00129 if (! tkMapNode) return false; 00130 DOMElement* tkMapElement = static_cast<DOMElement *>(tkMapNode); 00131 if (! tkMapElement) return false; 00132 00133 u_freq = atoi(qtxml::_toString(tkMapElement->getAttribute(qtxml::_toDOMS("update_frequency"))).c_str()); 00134 return true; 00135 }
bool SiPixelConfigParser::getMENamesForBarrelSummary | ( | std::string & | structure_name, | |
std::vector< std::string > & | me_names | |||
) |
Referenced by SiPixelActionExecutor::createSummary().
bool SiPixelConfigParser::getMENamesForEndcapSummary | ( | std::string & | structure_name, | |
std::vector< std::string > & | me_names | |||
) |
Referenced by SiPixelActionExecutor::createSummary().
bool SiPixelConfigParser::getMENamesForFEDErrorSummary | ( | std::string & | structure_name, | |
std::vector< std::string > & | me_names | |||
) |
Referenced by SiPixelActionExecutor::createSummary().
bool SiPixelConfigParser::getMENamesForGrandBarrelSummary | ( | std::string & | structure_name, | |
std::vector< std::string > & | me_names | |||
) |
bool SiPixelConfigParser::getMENamesForGrandEndcapSummary | ( | std::string & | structure_name, | |
std::vector< std::string > & | me_names | |||
) |
bool SiPixelConfigParser::getMENamesForTrackerMap | ( | std::string & | tkmap_name, | |
std::vector< std::string > & | me_names | |||
) |
Referenced by SiPixelInformationExtractor::getTrackerMapHistos().
bool SiPixelConfigParser::getMENamesForTree | ( | std::string & | structure_name, | |
std::vector< std::string > & | me_names | |||
) |
Get Node
Definition at line 433 of file SiPixelConfigParser.cc.
References qtxml::_toDOMS(), qtxml::_toString(), GenMuonPlsPt100GeV_cfg::cout, DQMParserBase::doc, and lat::endl().
Referenced by SiPixelActionExecutor::checkQTestResults(), and SiPixelActionExecutor::readConfiguration().
00433 { 00434 if (!doc) { 00435 cout << " SiPixelConfigParser::Configuration File is not set!!! " << endl; 00436 return false; 00437 } 00438 unsigned int structureNodes = doc->getElementsByTagName(qtxml::_toDOMS("QTestMessageLimit"))->getLength(); 00439 if (structureNodes == 0) return false; 00441 DOMNode* structureNode = doc->getElementsByTagName(qtxml::_toDOMS("QTestMessageLimit"))->item(0); 00442 //Get Node name 00443 if (! structureNode) return false; 00444 DOMElement* structureElement = static_cast<DOMElement *>(structureNode); 00445 if (! structureElement) return false; 00446 00447 u_freq = atoi(qtxml::_toString(structureElement->getAttribute(qtxml::_toDOMS("value"))).c_str()); 00448 return true; 00449 }
Get Node
Definition at line 453 of file SiPixelConfigParser.cc.
References qtxml::_toDOMS(), qtxml::_toString(), GenMuonPlsPt100GeV_cfg::cout, DQMParserBase::doc, and lat::endl().
Referenced by SiPixelActionExecutor::createSummary(), and SiPixelActionExecutor::readConfiguration().
00453 { 00454 if (!doc) { 00455 cout << " SiPixelConfigParser::Configuration File is not set!!! " << endl; 00456 return false; 00457 } 00458 unsigned int structureNodes = doc->getElementsByTagName(qtxml::_toDOMS("SourceType"))->getLength(); 00459 if (structureNodes == 0) return false; 00461 DOMNode* structureNode = doc->getElementsByTagName(qtxml::_toDOMS("SourceType"))->item(0); 00462 //Get Node name 00463 if (! structureNode) return false; 00464 DOMElement* structureElement = static_cast<DOMElement *>(structureNode); 00465 if (! structureElement) return false; 00466 00467 u_freq = atoi(qtxml::_toString(structureElement->getAttribute(qtxml::_toDOMS("code"))).c_str()); 00468 return true; 00469 }