#include <EcalADCToGeVXMLTranslator.h>
Definition at line 19 of file EcalADCToGeVXMLTranslator.h.
Definition at line 80 of file EcalADCToGeVXMLTranslator.cc.
References xuti::ADCToGeVConstant_tag(), xuti::Barrel_tag(), common_cff::doc, FrontierConditions_GlobalTag_cff::dump, xuti::Endcap_tag(), EcalADCToGeVConstant::getEBValue(), EcalADCToGeVConstant::getEEValue(), AlCaHLTBitMon_QueryRunRegistry::string, cms::xerces::toString(), cms::xerces::uStr(), xuti::writeHeader(), xuti::WriteNodeWithValue(), and cscNeutronWriter_cfi::writer.
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 );
93 DOMElement*
root = doc->getDocumentElement();
void WriteNodeWithValue(xercesc::DOMNode *parentNode, const std::string &tag, const T &value)
write a node with
std::string toString(XMLCh const *toTranscode)
const std::string ADCToGeVConstant_tag("EcalADCToGeVConstant")
void writeHeader(xercesc::DOMNode *parentNode, const EcalCondHeader &header)
write
ZStr< XMLCh > uStr(char const *str)
const std::string Endcap_tag("EndcapValue")
const std::string Barrel_tag("BarrelValue")
Definition at line 21 of file EcalADCToGeVXMLTranslator.cc.
References xuti::Barrel_tag(), gather_cfg::cout, xuti::Endcap_tag(), xuti::getChildNode(), xuti::GetNodeData(), createfilelist::parser, xuti::readHeader(), EcalADCToGeVConstant::setEBValue(), EcalADCToGeVConstant::setEEValue(), cms::concurrency::xercesInitialize(), and cms::concurrency::xercesTerminate().
27 XercesDOMParser*
parser =
new XercesDOMParser;
28 parser->setValidationScheme( XercesDOMParser::Val_Never );
29 parser->setDoNamespaces(
false );
30 parser->setDoSchema(
false );
34 DOMDocument* xmlDoc = parser->getDocument();
36 std::cout <<
"EcalADCToGeVXMLTranslator::Error parsing document" << std::endl;
41 DOMElement* elementRoot = xmlDoc->getDocumentElement();
void setEEValue(const float &value)
void readHeader(xercesc::DOMNode *parentNode, EcalCondHeader &header)
read header from
void setEBValue(const float &value)
void GetNodeData(xercesc::DOMNode *node, T &value)
get the node data
xercesc::DOMNode * getChildNode(xercesc::DOMNode *node, const std::string &nodename)
get the child of
const std::string Endcap_tag("EndcapValue")
const std::string Barrel_tag("BarrelValue")