66 unique_ptr<DOMImplementation>
impl( DOMImplementationRegistry::getDOMImplementation(
cms::xerces::uStr(
"LS").ptr()));
68 DOMLSSerializer*
writer =
impl->createLSSerializer();
69 if( writer->getDomConfig()->canSetParameter( XMLUni::fgDOMWRTFormatPrettyPrint,
true ))
70 writer->getDomConfig()->setParameter( XMLUni::fgDOMWRTFormatPrettyPrint,
true );
72 DOMDocumentType* doctype =
impl->createDocumentType(
cms::xerces::uStr(
"XML").ptr(),
nullptr,
nullptr );
75 DOMElement*
root = doc->getDocumentElement();
80 std::vector<float>::iterator it;
85 root->getOwnerDocument()->createElement(
cms::xerces::uStr(ETCAB_tag.c_str()).ptr());
86 root->appendChild(ETCAB);
87 for (it = vect.begin(); it != vect.end(); it++ ) {
93 ETCAB_tag =
"EBTimeCorrShiftBins";
95 ETCAB = root->getOwnerDocument()->createElement(
cms::xerces::uStr(ETCAB_tag.c_str()).ptr());
96 root->appendChild(ETCAB);
97 for (it = vect.begin(); it != vect.end(); it++ ) {
103 ETCAB_tag =
"EETimeCorrAmplitudeBins";
105 ETCAB = root->getOwnerDocument()->createElement(
cms::xerces::uStr(ETCAB_tag.c_str()).ptr());
106 root->appendChild(ETCAB);
107 for (it = vect.begin(); it != vect.end(); it++ ) {
113 ETCAB_tag =
"EETimeCorrShiftBins";
115 ETCAB = root->getOwnerDocument()->createElement(
cms::xerces::uStr(ETCAB_tag.c_str()).ptr());
116 root->appendChild(ETCAB);
117 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)