Translates a EcalGainRatio record to XML and vice versa
- Author
- Francesco RUBBO
- Version
- Id
- EcalGainRatiosXMLTranslator.h,v 1.1 2008/11/14 15:46:05 argiro Exp
- Date
- 29 Jul 2008
Definition at line 16 of file EcalGainRatiosXMLTranslator.h.
Definition at line 82 of file EcalGainRatiosXMLTranslator.cc.
83 unique_ptr<DOMImplementation>
impl(DOMImplementationRegistry::getDOMImplementation(
cms::xerces::uStr(
"LS").ptr()));
85 DOMLSSerializer*
writer =
impl->createLSSerializer();
86 if (
writer->getDomConfig()->canSetParameter(XMLUni::fgDOMWRTFormatPrettyPrint,
true))
87 writer->getDomConfig()->setParameter(XMLUni::fgDOMWRTFormatPrettyPrint,
true);
89 DOMDocumentType* doctype =
impl->createDocumentType(
cms::xerces::uStr(
"XML").ptr(),
nullptr,
nullptr);
91 DOMElement*
root =
doc->getDocumentElement();
94 if (
record.barrelItems().empty())
101 if (!
record[rawid].gain12Over6() && !
record[rawid].gain6Over1())
110 if (
record.endcapItems().empty())
120 if (!
record[rawid].gain12Over6() && !
record[rawid].gain6Over1())
References boostedTaus_cff::doc, submitPVValidationJobs::dump, xuti::Gain12Over6_tag(), xuti::Gain6Over1_tag(), xuti::GainRatios_tag(), RecoTauValidation_cfi::header, EBDetId::kSizeForDenseIndexing, EEDetId::kSizeForDenseIndexing, EBDetId::MIN_HASH, AlCaHarvesting_cff::record, 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.