14 edm::LogInfo(
"SiPixelConfigParser") <<
" Creating SiPixelConfigParser " 21 edm::LogInfo(
"SiPixelActionExecutor") <<
" Deleting SiPixelConfigParser " 29 cout <<
" SiPixelConfigParser::Configuration File is not set!!! " << endl;
34 unsigned int tkMapNodes =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"TkMap"))->getLength();
35 if (tkMapNodes != 1) {
37 <<
"No TkMap tag found in configuration file" <<
ACPlain << endl;
41 DOMNode *tkMapNode =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"TkMap"))->item(0);
45 <<
" No TkMap tag elements found in configuration file" <<
ACPlain << endl;
48 DOMElement *tkMapElement =
static_cast<DOMElement *
>(tkMapNode);
51 <<
" No TkMap tag dom elements found in configuration file" <<
ACPlain << endl;
56 DOMNodeList *meList = tkMapElement->getElementsByTagName(
qtxml::_toDOMS(
"MonElement"));
57 if (meList->getLength() == 0) {
59 <<
" No MonElement found in configuration file" <<
ACPlain << endl;
61 for (
unsigned int k = 0;
k < meList->getLength();
k++) {
62 DOMNode *meNode = meList->item(
k);
65 <<
" No MonElement item found in configuration file" <<
ACPlain << endl;
68 DOMElement *meElement =
static_cast<DOMElement *
>(meNode);
71 <<
" No MonElement sub-elements found in configuration file" <<
ACPlain << endl;
75 me_names.push_back(me_name);
77 if (me_names.empty()) {
79 <<
" No MonElement sub-element names found in configuration file" <<
ACPlain << endl;
90 cout <<
" SiPixelConfigParser::Configuration File is not set!!! " << endl;
94 unsigned int tkMapNodes =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"TkMap"))->getLength();
98 DOMNode *tkMapNode =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"TkMap"))->item(0);
102 DOMElement *tkMapElement =
static_cast<DOMElement *
>(tkMapNode);
115 cout <<
" SiPixelConfigParser::Configuration File is not set!!! " << endl;
120 unsigned int structureNodes =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureLevel"))->getLength();
121 if (structureNodes == 0)
124 DOMNode *structureNode =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureLevel"))->item(0);
128 DOMElement *structureElement =
static_cast<DOMElement *
>(structureNode);
129 if (!structureElement)
134 DOMNodeList *meList = structureElement->getElementsByTagName(
qtxml::_toDOMS(
"MonElement"));
135 for (
unsigned int k = 0;
k < meList->getLength();
k++) {
136 DOMNode *meNode = meList->item(
k);
139 DOMElement *meElement =
static_cast<DOMElement *
>(meNode);
143 me_names.push_back(me_name);
145 if (me_names.empty())
157 cout <<
" SiPixelConfigParser::Configuration File is not set!!! " << endl;
161 unsigned int structureNodes =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureBarrelLevel"))->getLength();
162 if (structureNodes == 0)
165 DOMNode *structureNode =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureBarrelLevel"))->item(0);
169 DOMElement *structureElement =
static_cast<DOMElement *
>(structureNode);
170 if (!structureElement)
174 DOMNodeList *meList = structureElement->getElementsByTagName(
qtxml::_toDOMS(
"MonElement"));
175 for (
unsigned int k = 0;
k < meList->getLength();
k++) {
176 DOMNode *meNode = meList->item(
k);
179 DOMElement *meElement =
static_cast<DOMElement *
>(meNode);
183 me_names.push_back(me_name);
186 if (me_names.empty())
194 cout <<
" SiPixelConfigParser::Configuration File is not set!!! " << endl;
199 unsigned int structureNodes =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureEndcapLevel"))->getLength();
200 if (structureNodes == 0)
203 DOMNode *structureNode =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureEndcapLevel"))->item(0);
207 DOMElement *structureElement =
static_cast<DOMElement *
>(structureNode);
208 if (!structureElement)
213 DOMNodeList *meList = structureElement->getElementsByTagName(
qtxml::_toDOMS(
"MonElement"));
214 for (
unsigned int k = 0;
k < meList->getLength();
k++) {
215 DOMNode *meNode = meList->item(
k);
218 DOMElement *meElement =
static_cast<DOMElement *
>(meNode);
222 me_names.push_back(me_name);
224 if (me_names.empty())
235 cout <<
" SiPixelConfigParser::Configuration File is not set!!! " << endl;
240 unsigned int structureNodes =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureNonDetId"))->getLength();
241 if (structureNodes == 0)
244 DOMNode *structureNode =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureNonDetId"))->item(0);
248 DOMElement *structureElement =
static_cast<DOMElement *
>(structureNode);
249 if (!structureElement)
254 DOMNodeList *meList = structureElement->getElementsByTagName(
qtxml::_toDOMS(
"MonElement"));
255 for (
unsigned int k = 0;
k < meList->getLength();
k++) {
256 DOMNode *meNode = meList->item(
k);
259 DOMElement *meElement =
static_cast<DOMElement *
>(meNode);
263 me_names.push_back(me_name);
265 if (me_names.empty())
277 cout <<
" SiPixelConfigParser::Configuration File is not set!!! " << endl;
281 unsigned int structureNodes =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureBarrelLevel"))->getLength();
282 if (structureNodes == 0)
285 DOMNode *structureNode =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureBarrelLevel"))->item(0);
289 DOMElement *structureElement =
static_cast<DOMElement *
>(structureNode);
290 if (!structureElement)
299 cout <<
" SiPixelConfigParser::Configuration File is not set!!! " << endl;
303 unsigned int structureNodes =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureEndcapLevel"))->getLength();
304 if (structureNodes == 0)
307 DOMNode *structureNode =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureEndcapLevel"))->item(0);
311 DOMElement *structureElement =
static_cast<DOMElement *
>(structureNode);
312 if (!structureElement)
323 cout <<
" SiPixelConfigParser::Configuration File is not set!!! " << endl;
328 unsigned int structureNodes =
329 doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureGrandBarrelLevel"))->getLength();
330 if (structureNodes == 0)
333 DOMNode *structureNode =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureGrandBarrelLevel"))->item(0);
337 DOMElement *structureElement =
static_cast<DOMElement *
>(structureNode);
338 if (!structureElement)
343 DOMNodeList *meList = structureElement->getElementsByTagName(
qtxml::_toDOMS(
"MonElement"));
344 for (
unsigned int k = 0;
k < meList->getLength();
k++) {
345 DOMNode *meNode = meList->item(
k);
348 DOMElement *meElement =
static_cast<DOMElement *
>(meNode);
352 me_names.push_back(me_name);
354 if (me_names.empty())
366 cout <<
" SiPixelConfigParser::Configuration File is not set!!! " << endl;
371 unsigned int structureNodes =
372 doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureGrandEndcapLevel"))->getLength();
373 if (structureNodes == 0)
376 DOMNode *structureNode =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureGrandEndcapLevel"))->item(0);
380 DOMElement *structureElement =
static_cast<DOMElement *
>(structureNode);
381 if (!structureElement)
386 DOMNodeList *meList = structureElement->getElementsByTagName(
qtxml::_toDOMS(
"MonElement"));
387 for (
unsigned int k = 0;
k < meList->getLength();
k++) {
388 DOMNode *meNode = meList->item(
k);
391 DOMElement *meElement =
static_cast<DOMElement *
>(meNode);
395 me_names.push_back(me_name);
397 if (me_names.empty())
407 cout <<
" SiPixelConfigParser::Configuration File is not set!!! " << endl;
411 unsigned int structureNodes =
412 doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureGrandBarrelLevel"))->getLength();
413 if (structureNodes == 0)
416 DOMNode *structureNode =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureGrandBarrelLevel"))->item(0);
420 DOMElement *structureElement =
static_cast<DOMElement *
>(structureNode);
421 if (!structureElement)
430 cout <<
" SiPixelConfigParser::Configuration File is not set!!! " << endl;
434 unsigned int structureNodes =
435 doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureGrandEndcapLevel"))->getLength();
436 if (structureNodes == 0)
439 DOMNode *structureNode =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureGrandEndcapLevel"))->item(0);
443 DOMElement *structureElement =
static_cast<DOMElement *
>(structureNode);
444 if (!structureElement)
453 cout <<
" SiPixelConfigParser::Configuration File is not set!!! " << endl;
456 unsigned int structureNodes =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"QTestMessageLimit"))->getLength();
457 if (structureNodes == 0)
460 DOMNode *structureNode =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"QTestMessageLimit"))->item(0);
464 DOMElement *structureElement =
static_cast<DOMElement *
>(structureNode);
465 if (!structureElement)
474 cout <<
" SiPixelConfigParser::Configuration File is not set!!! " << endl;
477 unsigned int structureNodes =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SourceType"))->getLength();
478 if (structureNodes == 0)
481 DOMNode *structureNode =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SourceType"))->item(0);
485 DOMElement *structureElement =
static_cast<DOMElement *
>(structureNode);
486 if (!structureElement)
495 cout <<
" SiPixelConfigParser::Configuration File is not set!!! " << endl;
498 unsigned int structureNodes =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"CalibType"))->getLength();
499 if (structureNodes == 0)
502 DOMNode *structureNode =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"CalibType"))->item(0);
506 DOMElement *structureElement =
static_cast<DOMElement *
>(structureNode);
507 if (!structureElement)
bool getMENamesForTree(std::string &structure_name, std::vector< std::string > &me_names)
std::string _toString(const XMLCh *toTranscode)
bool getMENamesForEndcapSummary(std::string &structure_name, std::vector< std::string > &me_names)
bool getCalibType(int &u_freq)
bool getMENamesForGrandEndcapSummary(std::string &structure_name, std::vector< std::string > &me_names)
bool getFrequencyForGrandBarrelSummary(int &u_freq)
bool getFrequencyForEndcapSummary(int &u_freq)
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 getFrequencyForBarrelSummary(int &u_freq)
bool getFrequencyForGrandEndcapSummary(int &u_freq)
bool getMENamesForTrackerMap(std::string &tkmap_name, std::vector< std::string > &me_names)
bool getMENamesForBarrelSummary(std::string &structure_name, std::vector< std::string > &me_names)
bool getMessageLimitForQTests(int &u_freq)
XMLCh * _toDOMS(std::string temp)
bool getSourceType(int &u_freq)
xercesc::DOMDocument * doc()
DOM Document.
bool getFrequencyForTrackerMap(int &u_freq)
~SiPixelConfigParser() override