#include <EcalTimeOffsetXMLTranslator.h>
◆ dumpXML()
Definition at line 74 of file EcalTimeOffsetXMLTranslator.cc.
75 unique_ptr<DOMImplementation>
impl(DOMImplementationRegistry::getDOMImplementation(
cms::xerces::uStr(
"LS").ptr()));
77 DOMLSSerializer*
writer =
impl->createLSSerializer();
78 if (
writer->getDomConfig()->canSetParameter(XMLUni::fgDOMWRTFormatPrettyPrint,
true))
79 writer->getDomConfig()->setParameter(XMLUni::fgDOMWRTFormatPrettyPrint,
true);
81 DOMDocumentType* doctype =
impl->createDocumentType(
cms::xerces::uStr(
"XML").ptr(),
nullptr,
nullptr);
83 DOMElement*
root =
doc->getDocumentElement();
References xuti::Barrel_tag(), boostedTaus_cff::doc, submitPVValidationJobs::dump, xuti::Endcap_tag(), RecoTauValidation_cfi::header, AlCaHarvesting_cff::record, AlCaHLTBitMon_QueryRunRegistry::string, xuti::TimeOffsetConstant_tag(), cms::xerces::toString(), cms::xerces::uStr(), xuti::writeHeader(), xuti::WriteNodeWithValue(), and cscNeutronWriter_cfi::writer.
◆ readXML()
Definition at line 21 of file EcalTimeOffsetXMLTranslator.cc.
26 XercesDOMParser*
parser =
new XercesDOMParser;
27 parser->setValidationScheme(XercesDOMParser::Val_Never);
28 parser->setDoNamespaces(
false);
29 parser->setDoSchema(
false);
33 DOMDocument* xmlDoc =
parser->getDocument();
35 std::cout <<
"EcalTimeOffsetXMLTranslator::Error parsing document" << std::endl;
40 DOMElement* elementRoot = xmlDoc->getDocumentElement();
47 double barrelvalue = 0;
48 double endcapvalue = 0;
53 record.setEBValue(barrelvalue);
54 record.setEEValue(endcapvalue);
References xuti::Barrel_tag(), gather_cfg::cout, xuti::Endcap_tag(), corrVsCorr::filename, xuti::getChildNode(), xuti::GetNodeData(), RecoTauValidation_cfi::header, writedatasetfile::parser, xuti::readHeader(), AlCaHarvesting_cff::record, cms::concurrency::xercesInitialize(), and cms::concurrency::xercesTerminate().
◆ writeXML()