Translates a Ecal record to XML and vice versa
- Version
- Id
- EcalDAQCrystalStatusXMLTranslator.h,v 1.1 2011/04/04 fay Exp
- Date
- 4 Apr 2011
Definition at line 14 of file EcalTPGCrystalStatusXMLTranslator.h.
Definition at line 40 of file EcalTPGCrystalStatusXMLTranslator.cc.
42 unique_ptr<DOMImplementation>
impl(DOMImplementationRegistry::getDOMImplementation(
cms::xerces::uStr(
"LS").ptr()));
44 DOMLSSerializer*
writer =
impl->createLSSerializer();
45 if (
writer->getDomConfig()->canSetParameter(XMLUni::fgDOMWRTFormatPrettyPrint,
true))
46 writer->getDomConfig()->setParameter(XMLUni::fgDOMWRTFormatPrettyPrint,
true);
47 DOMDocumentType* doctype =
impl->createDocumentType(
cms::xerces::uStr(
"XML").ptr(),
nullptr,
nullptr);
50 DOMElement*
root =
doc->getDocumentElement();
60 std::cout <<
"EcalTPGCrystalStatusXMLTranslator::dumpXML" << std::endl;
62 int thesign =
sign == 1 ? 1 : -1;
67 if (
record[
id.rawId()].getStatusCode() > 0) {
79 if (
record[
id.rawId()].getStatusCode() > 0) {
References gather_cfg::cout, common_cff::doc, FrontierConditions_GlobalTag_cff::dump, RecoTauValidation_cfi::header, triggerObjects_cff::id, LEDCalibrationChannels::ieta, LEDCalibrationChannels::iphi, EEDetId::IX_MAX, EEDetId::IY_MAX, kBarlRings, kBarlWedges, kEndcWedgesX, kEndcWedgesY, kSides, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, GlobalPosition_Frontier_DevDB_cff::record, Validation_hcalonly_cfi::sign, AlCaHLTBitMon_QueryRunRegistry::string, cms::xerces::toString(), xuti::TPGCrystalStatus_tag(), cms::xerces::uStr(), EEDetId::validDetId(), xuti::writeCell(), xuti::writeHeader(), xuti::WriteNodeWithValue(), and cscNeutronWriter_cfi::writer.