15 " Creating SiPixelConfigParser " <<
"\n" ;
22 " Deleting SiPixelConfigParser " <<
"\n" ;
28 vector<string>& me_names){
30 cout <<
" SiPixelConfigParser::Configuration File is not set!!! " << endl;
35 unsigned int tkMapNodes =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"TkMap"))->getLength();
39 <<
"[SiPixelConfigParser::getMENamesForTrackerMap()]" 41 <<
"No TkMap tag found in configuration file" 46 DOMNode* tkMapNode =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"TkMap"))->item(0);
51 <<
"[SiPixelConfigParser::getMENamesForTrackerMap()]" 53 <<
" No TkMap tag elements found in configuration file" 57 DOMElement* tkMapElement =
static_cast<DOMElement *
>(tkMapNode);
61 <<
"[SiPixelConfigParser::getMENamesForTrackerMap()]" 63 <<
" No TkMap tag dom elements found in configuration file" 70 = tkMapElement->getElementsByTagName(
qtxml::_toDOMS(
"MonElement"));
71 if( meList->getLength() == 0 )
74 <<
"[SiPixelConfigParser::getMENamesForTrackerMap()]" 76 <<
" No MonElement found in configuration file" 79 for (
unsigned int k = 0;
k < meList->getLength();
k++) {
80 DOMNode* meNode = meList->item(
k);
84 <<
"[SiPixelConfigParser::getMENamesForTrackerMap()]" 86 <<
" No MonElement item found in configuration file" 90 DOMElement* meElement =
static_cast<DOMElement *
>(meNode);
94 <<
"[SiPixelConfigParser::getMENamesForTrackerMap()]" 96 <<
" No MonElement sub-elements found in configuration file" 101 me_names.push_back(me_name);
103 if (me_names.size() == 0)
106 <<
"[SiPixelConfigParser::getMENamesForTrackerMap()]" 108 <<
" No MonElement sub-element names found in configuration file" 120 cout <<
" SiPixelConfigParser::Configuration File is not set!!! " << endl;
124 unsigned int tkMapNodes =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"TkMap"))->getLength();
125 if (tkMapNodes != 1)
return false;
127 DOMNode* tkMapNode =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"TkMap"))->item(0);
129 if (! tkMapNode)
return false;
130 DOMElement* tkMapElement =
static_cast<DOMElement *
>(tkMapNode);
131 if (! tkMapElement)
return false;
140 vector<string>& me_names) {
143 cout <<
" SiPixelConfigParser::Configuration File is not set!!! " << endl;
148 unsigned int structureNodes =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureLevel"))->getLength();
149 if (structureNodes == 0)
return false;
151 DOMNode* structureNode =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureLevel"))->item(0);
153 if (! structureNode)
return false;
154 DOMElement* structureElement =
static_cast<DOMElement *
>(structureNode);
155 if (! structureElement)
return false;
159 DOMNodeList * meList = structureElement->getElementsByTagName(
qtxml::_toDOMS(
"MonElement"));
160 for (
unsigned int k = 0;
k < meList->getLength();
k++) {
161 DOMNode* meNode = meList->item(
k);
162 if (!meNode)
return false;
163 DOMElement* meElement =
static_cast<DOMElement *
>(meNode);
164 if (!meElement)
return false;
166 me_names.push_back(me_name);
168 if (me_names.size() == 0)
return false;
177 vector<string>& me_names) {
180 cout <<
" SiPixelConfigParser::Configuration File is not set!!! " << endl;
184 unsigned int structureNodes =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureBarrelLevel"))->getLength();
185 if (structureNodes == 0)
return false;
187 DOMNode* structureNode =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureBarrelLevel"))->item(0);
189 if (! structureNode)
return false;
190 DOMElement* structureElement =
static_cast<DOMElement *
>(structureNode);
191 if (! structureElement)
return false;
194 DOMNodeList * meList = structureElement->getElementsByTagName(
qtxml::_toDOMS(
"MonElement"));
195 for (
unsigned int k = 0;
k < meList->getLength();
k++) {
196 DOMNode* meNode = meList->item(
k);
197 if (!meNode)
return false;
198 DOMElement* meElement =
static_cast<DOMElement *
>(meNode);
199 if (!meElement)
return false;
201 me_names.push_back(me_name);
204 if (me_names.size() == 0)
return false;
209 vector<string>& me_names) {
212 cout <<
" SiPixelConfigParser::Configuration File is not set!!! " << endl;
217 unsigned int structureNodes =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureEndcapLevel"))->getLength();
218 if (structureNodes == 0)
return false;
220 DOMNode* structureNode =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureEndcapLevel"))->item(0);
222 if (! structureNode)
return false;
223 DOMElement* structureElement =
static_cast<DOMElement *
>(structureNode);
224 if (! structureElement)
return false;
228 DOMNodeList * meList = structureElement->getElementsByTagName(
qtxml::_toDOMS(
"MonElement"));
229 for (
unsigned int k = 0;
k < meList->getLength();
k++) {
230 DOMNode* meNode = meList->item(
k);
231 if (!meNode)
return false;
232 DOMElement* meElement =
static_cast<DOMElement *
>(meNode);
233 if (!meElement)
return false;
235 me_names.push_back(me_name);
237 if (me_names.size() == 0)
return false;
245 vector<string>& me_names) {
248 cout <<
" SiPixelConfigParser::Configuration File is not set!!! " << endl;
253 unsigned int structureNodes =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureNonDetId"))->getLength();
254 if (structureNodes == 0)
return false;
256 DOMNode* structureNode =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureNonDetId"))->item(0);
258 if (! structureNode)
return false;
259 DOMElement* structureElement =
static_cast<DOMElement *
>(structureNode);
260 if (! structureElement)
return false;
264 DOMNodeList * meList = structureElement->getElementsByTagName(
qtxml::_toDOMS(
"MonElement"));
265 for (
unsigned int k = 0;
k < meList->getLength();
k++) {
266 DOMNode* meNode = meList->item(
k);
267 if (!meNode)
return false;
268 DOMElement* meElement =
static_cast<DOMElement *
>(meNode);
269 if (!meElement)
return false;
271 me_names.push_back(me_name);
273 if (me_names.size() == 0)
return false;
283 cout <<
" SiPixelConfigParser::Configuration File is not set!!! " << endl;
287 unsigned int structureNodes =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureBarrelLevel"))->getLength();
288 if (structureNodes == 0)
return false;
290 DOMNode* structureNode =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureBarrelLevel"))->item(0);
292 if (! structureNode)
return false;
293 DOMElement* structureElement =
static_cast<DOMElement *
>(structureNode);
294 if (! structureElement)
return false;
303 cout <<
" SiPixelConfigParser::Configuration File is not set!!! " << endl;
307 unsigned int structureNodes =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureEndcapLevel"))->getLength();
308 if (structureNodes == 0)
return false;
310 DOMNode* structureNode =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureEndcapLevel"))->item(0);
312 if (! structureNode)
return false;
313 DOMElement* structureElement =
static_cast<DOMElement *
>(structureNode);
314 if (! structureElement)
return false;
322 vector<string>& me_names) {
325 cout <<
" SiPixelConfigParser::Configuration File is not set!!! " << endl;
330 unsigned int structureNodes =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureGrandBarrelLevel"))->getLength();
331 if (structureNodes == 0)
return false;
333 DOMNode* structureNode =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureGrandBarrelLevel"))->item(0);
335 if (! structureNode)
return false;
336 DOMElement* structureElement =
static_cast<DOMElement *
>(structureNode);
337 if (! structureElement)
return false;
341 DOMNodeList * meList = structureElement->getElementsByTagName(
qtxml::_toDOMS(
"MonElement"));
342 for (
unsigned int k = 0;
k < meList->getLength();
k++) {
343 DOMNode* meNode = meList->item(
k);
344 if (!meNode)
return false;
345 DOMElement* meElement =
static_cast<DOMElement *
>(meNode);
346 if (!meElement)
return false;
348 me_names.push_back(me_name);
350 if (me_names.size() == 0)
return false;
358 vector<string>& me_names) {
361 cout <<
" SiPixelConfigParser::Configuration File is not set!!! " << endl;
366 unsigned int structureNodes =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureGrandEndcapLevel"))->getLength();
367 if (structureNodes == 0)
return false;
369 DOMNode* structureNode =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureGrandEndcapLevel"))->item(0);
371 if (! structureNode)
return false;
372 DOMElement* structureElement =
static_cast<DOMElement *
>(structureNode);
373 if (! structureElement)
return false;
377 DOMNodeList * meList = structureElement->getElementsByTagName(
qtxml::_toDOMS(
"MonElement"));
378 for (
unsigned int k = 0;
k < meList->getLength();
k++) {
379 DOMNode* meNode = meList->item(
k);
380 if (!meNode)
return false;
381 DOMElement* meElement =
static_cast<DOMElement *
>(meNode);
382 if (!meElement)
return false;
384 me_names.push_back(me_name);
386 if (me_names.size() == 0)
return false;
395 cout <<
" SiPixelConfigParser::Configuration File is not set!!! " << endl;
399 unsigned int structureNodes =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureGrandBarrelLevel"))->getLength();
400 if (structureNodes == 0)
return false;
402 DOMNode* structureNode =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureGrandBarrelLevel"))->item(0);
404 if (! structureNode)
return false;
405 DOMElement* structureElement =
static_cast<DOMElement *
>(structureNode);
406 if (! structureElement)
return false;
415 cout <<
" SiPixelConfigParser::Configuration File is not set!!! " << endl;
419 unsigned int structureNodes =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureGrandEndcapLevel"))->getLength();
420 if (structureNodes == 0)
return false;
422 DOMNode* structureNode =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SubStructureGrandEndcapLevel"))->item(0);
424 if (! structureNode)
return false;
425 DOMElement* structureElement =
static_cast<DOMElement *
>(structureNode);
426 if (! structureElement)
return false;
435 cout <<
" SiPixelConfigParser::Configuration File is not set!!! " << endl;
438 unsigned int structureNodes =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"QTestMessageLimit"))->getLength();
439 if (structureNodes == 0)
return false;
441 DOMNode* structureNode =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"QTestMessageLimit"))->item(0);
443 if (! structureNode)
return false;
444 DOMElement* structureElement =
static_cast<DOMElement *
>(structureNode);
445 if (! structureElement)
return false;
455 cout <<
" SiPixelConfigParser::Configuration File is not set!!! " << endl;
458 unsigned int structureNodes =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SourceType"))->getLength();
459 if (structureNodes == 0)
return false;
461 DOMNode* structureNode =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"SourceType"))->item(0);
463 if (! structureNode)
return false;
464 DOMElement* structureElement =
static_cast<DOMElement *
>(structureNode);
465 if (! structureElement)
return false;
473 cout <<
" SiPixelConfigParser::Configuration File is not set!!! " << endl;
476 unsigned int structureNodes =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"CalibType"))->getLength();
477 if (structureNodes == 0)
return false;
479 DOMNode* structureNode =
doc()->getElementsByTagName(
qtxml::_toDOMS(
"CalibType"))->item(0);
481 if (! structureNode)
return false;
482 DOMElement* structureElement =
static_cast<DOMElement *
>(structureNode);
483 if (! structureElement)
return false;
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)