64 unique_ptr<DOMImplementation> impl(DOMImplementationRegistry::getDOMImplementation(
cms::xerces::uStr(
"LS").ptr()));
66 DOMLSSerializer* writer = impl->createLSSerializer();
67 if (writer->getDomConfig()->canSetParameter(XMLUni::fgDOMWRTFormatPrettyPrint,
true))
68 writer->getDomConfig()->setParameter(XMLUni::fgDOMWRTFormatPrettyPrint,
true);
70 DOMDocumentType* doctype = impl->createDocumentType(
cms::xerces::uStr(
"XML").ptr(),
nullptr,
nullptr);
72 DOMElement* root = doc->getDocumentElement();
77 std::vector<float>::iterator it;
81 DOMElement* ETCAB = root->getOwnerDocument()->createElement(
cms::xerces::uStr(ETCAB_tag.c_str()).ptr());
82 root->appendChild(ETCAB);
83 for (it = vect.begin(); it != vect.end(); it++) {
89 ETCAB_tag =
"EBTimeCorrShiftBins";
91 ETCAB = root->getOwnerDocument()->createElement(
cms::xerces::uStr(ETCAB_tag.c_str()).ptr());
92 root->appendChild(ETCAB);
93 for (it = vect.begin(); it != vect.end(); it++) {
99 ETCAB_tag =
"EETimeCorrAmplitudeBins";
101 ETCAB = root->getOwnerDocument()->createElement(
cms::xerces::uStr(ETCAB_tag.c_str()).ptr());
102 root->appendChild(ETCAB);
103 for (it = vect.begin(); it != vect.end(); it++) {
109 ETCAB_tag =
"EETimeCorrShiftBins";
111 ETCAB = root->getOwnerDocument()->createElement(
cms::xerces::uStr(ETCAB_tag.c_str()).ptr());
112 root->appendChild(ETCAB);
113 for (it = vect.begin(); it != vect.end(); it++) {
std::vector< float > EBTimeCorrShiftBins
void WriteNodeWithValue(xercesc::DOMNode *parentNode, const std::string &tag, const T &value)
write a node with
const std::string Value_tag("Value")
std::vector< float > EBTimeCorrAmplitudeBins
std::vector< float > EETimeCorrShiftBins
std::string toString(XMLCh const *toTranscode)
const std::string IntercalibConstants_tag("EcalIntercalibConstants")
std::vector< float > EETimeCorrAmplitudeBins
void writeHeader(xercesc::DOMNode *parentNode, const EcalCondHeader &header)
write
ZStr< XMLCh > uStr(char const *str)
tuple dump
OutputFilePath = cms.string('/tmp/zhokin/'), OutputFileExt = cms.string(''),.