Definition at line 109 of file EcalLaserAPDPNRatiosXMLTranslator.cc.
111 unique_ptr<DOMImplementation>
impl(DOMImplementationRegistry::getDOMImplementation(
cms::xerces::uStr(
"LS").ptr()));
113 DOMLSSerializer*
writer =
impl->createLSSerializer();
114 if (
writer->getDomConfig()->canSetParameter(XMLUni::fgDOMWRTFormatPrettyPrint,
true))
115 writer->getDomConfig()->setParameter(XMLUni::fgDOMWRTFormatPrettyPrint,
true);
117 DOMDocumentType* doctype =
impl->createDocumentType(
cms::xerces::uStr(
"XML").ptr(),
nullptr,
nullptr);
119 DOMElement*
root =
doc->getDocumentElement();
123 string Lasertag =
"Laser", LMtag =
"LM";
124 for (
int cellid = 0; cellid < (
int)
record.getTimeMap().size(); cellid++) {
126 root->appendChild(cellnode);
127 stringstream value_s;
132 t123[0] = (
record.getTimeMap())[cellid].
t1.value();
133 t123[1] = (
record.getTimeMap())[cellid].
t2.value();
134 t123[2] = (
record.getTimeMap())[cellid].
t3.value();
135 string Laser_t_tag[3] = {
"t1",
"t2",
"t3"};
136 for (
int i = 0;
i < 3;
i++) {
137 time_t
t = t123[
i] >> 32;
140 localtime_r(&
t, <);
141 strftime(
buf,
sizeof(
buf),
"%F %R:%S", <);
143 DOMDocument* subdoc = cellnode->getOwnerDocument();
144 DOMElement* new_node = subdoc->createElement(
cms::xerces::uStr(Laser_t_tag[
i].c_str()).ptr());
145 cellnode->appendChild(new_node);
146 std::stringstream value_ss;
148 string newstr = value_ss.str() +
" [" +
string(
buf) +
"]";
149 DOMText* tvalue = subdoc->createTextNode(
cms::xerces::uStr(newstr.c_str()).ptr());
150 new_node->appendChild(tvalue);
References visDQMUpload::buf, boostedTaus_cff::doc, submitPVValidationJobs::dump, RecoTauValidation_cfi::header, mps_fire::i, createfilelist::int, EBDetId::kSizeForDenseIndexing, EEDetId::kSizeForDenseIndexing, xuti::Laser_p1_tag(), xuti::Laser_p2_tag(), xuti::Laser_p3_tag(), EBDetId::MIN_HASH, p1, p2, p3, AlCaHarvesting_cff::record, AlCaHLTBitMon_QueryRunRegistry::string, submitPVValidationJobs::t, RandomServiceHelper::t1, RandomServiceHelper::t2, RandomServiceHelper::t3, cms::xerces::toString(), EBDetId::unhashIndex(), EEDetId::unhashIndex(), cms::xerces::uStr(), EEDetId::validHashIndex(), xuti::WeightGroups_tag(), xuti::writeCell(), xuti::writeHeader(), xuti::WriteNodeWithValue(), and cscNeutronWriter_cfi::writer.