Translates a EcalGainRatio record to XML and vice versa
- Author
- Francesco RUBBO
- Version
- Id
- EcalPulseShapesXMLTranslator.h,v 0 2010/04/26 fay Exp
- Date
- 26 Apr 2010
Definition at line 15 of file EcalPulseShapesXMLTranslator.h.
Definition at line 131 of file EcalPulseShapesXMLTranslator.cc.
132 unique_ptr<DOMImplementation>
impl(DOMImplementationRegistry::getDOMImplementation(
cms::xerces::uStr(
"LS").ptr()));
134 DOMLSSerializer*
writer =
impl->createLSSerializer();
135 if (
writer->getDomConfig()->canSetParameter(XMLUni::fgDOMWRTFormatPrettyPrint,
true))
136 writer->getDomConfig()->setParameter(XMLUni::fgDOMWRTFormatPrettyPrint,
true);
138 DOMDocumentType* doctype =
impl->createDocumentType(
cms::xerces::uStr(
"XML").ptr(),
nullptr,
nullptr);
141 DOMElement*
root =
doc->getDocumentElement();
144 if (
record.barrelItems().empty())
151 if (!
record[rawid].pdfval[5])
170 if (
record.endcapItems().empty())
180 if (!
record[rawid].pdfval[5])
References boostedTaus_cff::doc, submitPVValidationJobs::dump, RecoTauValidation_cfi::header, EBDetId::kSizeForDenseIndexing, EEDetId::kSizeForDenseIndexing, EBDetId::MIN_HASH, xuti::PulseShapes_tag(), AlCaHarvesting_cff::record, xuti::sample0_tag(), xuti::sample10_tag(), xuti::sample11_tag(), xuti::sample1_tag(), xuti::sample2_tag(), xuti::sample3_tag(), xuti::sample4_tag(), xuti::sample5_tag(), xuti::sample6_tag(), xuti::sample7_tag(), xuti::sample8_tag(), xuti::sample9_tag(), AlCaHLTBitMon_QueryRunRegistry::string, cms::xerces::toString(), EBDetId::unhashIndex(), EEDetId::unhashIndex(), cms::xerces::uStr(), EEDetId::validHashIndex(), xuti::writeCell(), xuti::writeHeader(), xuti::WriteNodeWithValue(), and cscNeutronWriter_cfi::writer.
Definition at line 22 of file EcalPulseShapesXMLTranslator.cc.
27 XercesDOMParser*
parser =
new XercesDOMParser;
28 parser->setValidationScheme(XercesDOMParser::Val_Never);
29 parser->setDoNamespaces(
false);
30 parser->setDoSchema(
false);
34 DOMDocument* xmlDoc =
parser->getDocument();
36 std::cout <<
"EcalPulseShapesXMLTranslator::Error parsing document" << std::endl;
40 DOMElement* elementRoot = xmlDoc->getDocumentElement();
105 cellnode = cellnode->getNextSibling();
107 while (cellnode && cellnode->getNodeType() != DOMNode::ELEMENT_NODE)
108 cellnode = cellnode->getNextSibling();
114 std::cout <<
" nb of channels found in xml file " <<
chan << std::endl;
References xuti::Cell_tag(), officialStyle::chan, gather_cfg::cout, corrVsCorr::filename, xuti::getChildNode(), xuti::GetNodeData(), RecoTauValidation_cfi::header, writedatasetfile::parser, xuti::readCellId(), xuti::readHeader(), AlCaHarvesting_cff::record, alignCSCRings::s, xuti::sample0_tag(), xuti::sample10_tag(), xuti::sample11_tag(), xuti::sample1_tag(), xuti::sample2_tag(), xuti::sample3_tag(), xuti::sample4_tag(), xuti::sample5_tag(), xuti::sample6_tag(), xuti::sample7_tag(), xuti::sample8_tag(), xuti::sample9_tag(), EgammaValidation_cff::samples, EcalPulseShape::TEMPLATESAMPLES, cms::concurrency::xercesInitialize(), and cms::concurrency::xercesTerminate().