Translates a EcalFloatClusterCrackCorr record to XML and vice versa
- Author
- Version
- Id
- EcalClusterCrackCorrXMLTranslator.h,v 1.0
- Date
- October 2011
Definition at line 16 of file EcalClusterCrackCorrXMLTranslator.h.
Definition at line 49 of file EcalClusterCrackCorrXMLTranslator.cc.
50 unique_ptr<DOMImplementation>
impl(DOMImplementationRegistry::getDOMImplementation(
cms::xerces::uStr(
"LS").ptr()));
52 DOMLSSerializer*
writer =
impl->createLSSerializer();
53 if (
writer->getDomConfig()->canSetParameter(XMLUni::fgDOMWRTFormatPrettyPrint,
true))
54 writer->getDomConfig()->setParameter(XMLUni::fgDOMWRTFormatPrettyPrint,
true);
56 DOMDocumentType* doctype =
impl->createDocumentType(
cms::xerces::uStr(
"XML").ptr(),
nullptr,
nullptr);
57 const std::string EcalClusterCrackCorr_tag(
"EcalClusterCrackCorr");
58 DOMDocument*
doc =
impl->createDocument(
nullptr,
cms::xerces::uStr(EcalClusterCrackCorr_tag.c_str()).ptr(), doctype);
60 DOMElement*
root =
doc->getDocumentElement();
63 const std::string ECCC_tag[4] = {
"IPCloseEtaSide",
"IPFarEtaSide",
"IPClosePhiSide",
"IPFarPhiSide"};
66 for (EcalFunctionParameters::const_iterator it =
record.params().begin(); it !=
record.params().end(); ++it) {
70 std::stringstream
out;
75 root->appendChild(ECCC);
References boostedTaus_cff::doc, submitPVValidationJobs::dump, RecoTauValidation_cfi::header, EgammaValidation_cff::num, MillePedeFileConverter_cfg::out, AlCaHarvesting_cff::record, alignCSCRings::s, AlCaHLTBitMon_QueryRunRegistry::string, cms::xerces::toString(), cms::xerces::uStr(), xuti::Value_tag(), xuti::writeHeader(), xuti::WriteNodeWithValue(), and cscNeutronWriter_cfi::writer.