11 " Creating SiStripConfigParser " <<
"\n" ;
18 " Deleting SiStripConfigParser " <<
"\n" ;
25 std::cout <<
" SiStripConfigParser::Configuration File is not set!!! " << std::endl;
30 unsigned int summaryNodes =
doc->getElementsByTagName(
qtxml::_toDOMS(
"SummaryPlot"))->getLength();
31 if (summaryNodes == 0)
return false;
33 xercesc::DOMNode* summaryNode =
doc->getElementsByTagName(
qtxml::_toDOMS(
"SummaryPlot"))->item(0);
35 if (! summaryNode)
return false;
36 xercesc::DOMElement* summaryElement =
static_cast<xercesc::DOMElement *
>(summaryNode);
37 if (! summaryElement)
return false;
40 xercesc::DOMNodeList * meList
41 = summaryElement->getElementsByTagName(
qtxml::_toDOMS(
"MonElement"));
42 for (
unsigned int k = 0;
k < meList->getLength();
k++) {
43 xercesc::DOMNode* meNode = meList->item(
k);
44 if (!meNode)
return false;
45 xercesc::DOMElement* meElement =
static_cast<xercesc::DOMElement *
>(meNode);
46 if (!meElement)
return false;
49 me_names.insert(std::pair<std::string,std::string>(me_name,me_type));
51 if (me_names.size() == 0)
return false;
60 std::cout <<
" SiStripConfigParser::Configuration File is not set!!! " << std::endl;
64 unsigned int summaryNodes =
doc->getElementsByTagName(
qtxml::_toDOMS(
"SummaryPlot"))->getLength();
65 if (summaryNodes != 1 )
return false;
67 xercesc::DOMNode* summaryNode =
doc->getElementsByTagName(
qtxml::_toDOMS(
"SummaryPlot"))->item(0);
69 if (! summaryNode)
return false;
70 xercesc::DOMElement* summaryElement =
static_cast<xercesc::DOMElement *
>(summaryNode);
71 if (! summaryElement)
return false;
bool getFrequencyForSummary(int &u_freq)
std::string _toString(const XMLCh *toTranscode)
xercesc::DOMDocument * doc
XMLCh * _toDOMS(std::string temp)
bool getMENamesForSummary(std::map< std::string, std::string > &me_names)