Translates a Ecal record to XML
- Version
- Id
- EcalDAQStripStatusXMLTranslator.h,v 1.1 2011/06/14 fay Exp
- Date
- 14 Jun 2011
Definition at line 14 of file EcalTPGStripStatusXMLTranslator.h.
Definition at line 67 of file EcalTPGStripStatusXMLTranslator.cc.
68 unique_ptr<DOMImplementation>
impl(DOMImplementationRegistry::getDOMImplementation(
cms::xerces::uStr(
"LS").ptr()));
70 DOMLSSerializer*
writer =
impl->createLSSerializer();
71 if (
writer->getDomConfig()->canSetParameter(XMLUni::fgDOMWRTFormatPrettyPrint,
true))
72 writer->getDomConfig()->setParameter(XMLUni::fgDOMWRTFormatPrettyPrint,
true);
74 DOMDocumentType* doctype =
impl->createDocumentType(
cms::xerces::uStr(
"XML").ptr(),
nullptr,
nullptr);
76 DOMElement*
root =
doc->getDocumentElement();
83 std::cout <<
"EcalTPGStripStatusXMLTranslator::dumpXML strip map size " << stripMap.size() << std::endl;
85 for (itSt = stripMap.begin(); itSt != stripMap.end(); ++itSt) {
86 if (itSt->second > 0) {
87 int tccid = itSt->first / 8192 & 0x7F;
88 int tt = itSt->first / 64 & 0x7F;
89 int pseudostrip = itSt->first / 8 & 0x7;
101 value_s << pseudostrip;
103 root->appendChild(cell_node);
References xuti::Cell_tag(), gather_cfg::cout, boostedTaus_cff::doc, submitPVValidationJobs::dump, RecoTauValidation_cfi::header, AlCaHarvesting_cff::record, AlCaHLTBitMon_QueryRunRegistry::string, cms::xerces::toString(), xuti::TPGStripStatus_tag(), groupFilesInBlocks::tt, cms::xerces::uStr(), xuti::writeHeader(), xuti::WriteNodeWithValue(), and cscNeutronWriter_cfi::writer.