#include <HcalConstantsXMLWriter.h>
|
| HcalConstantsXMLWriter () |
|
void | newCellLine (xercesc::DOMElement *, int, int, int, int, float) |
|
void | writeXML (std::string &, const std::vector< int > &, const std::vector< int > &, const std::vector< int > &, const std::vector< int > &, const std::vector< float > &) |
|
virtual | ~HcalConstantsXMLWriter () |
|
Definition at line 19 of file HcalConstantsXMLWriter.h.
HcalConstantsXMLWriter::HcalConstantsXMLWriter |
( |
| ) |
|
HcalConstantsXMLWriter::~HcalConstantsXMLWriter |
( |
| ) |
|
|
virtual |
void HcalConstantsXMLWriter::newCellLine |
( |
xercesc::DOMElement * |
, |
|
|
int |
, |
|
|
int |
, |
|
|
int |
, |
|
|
int |
, |
|
|
float |
|
|
) |
| |
Definition at line 81 of file HcalConstantsXMLWriter.cc.
References HLT_FULL_cff::depth, eta, pileupReCalc_HLTpaths::scale, and XERCES_CPP_NAMESPACE_USE::transcode().
85 DOMAttr* attrdet =
mDoc->createAttribute(tempStr);
88 DOMAttr* attreta =
mDoc->createAttribute(tempStr);
91 DOMAttr* attrphi =
mDoc->createAttribute(tempStr) ;
94 DOMAttr* attrdepth =
mDoc->createAttribute(tempStr) ;
97 DOMAttr* attrscale =
mDoc->createAttribute(tempStr) ;
102 detelem->setAttributeNode(attrdet);
108 detelem->setAttributeNode(attreta);
114 detelem->setAttributeNode(attrphi);
120 detelem->setAttributeNode(attrdepth);
126 detelem->setAttributeNode(attrscale);
XMLCh * transcode(const T &fInput)
xercesc::DOMDocument * mDoc
void HcalConstantsXMLWriter::writeXML |
( |
std::string & |
, |
|
|
const std::vector< int > & |
, |
|
|
const std::vector< int > & |
, |
|
|
const std::vector< int > & |
, |
|
|
const std::vector< int > & |
, |
|
|
const std::vector< float > & |
|
|
) |
| |
Definition at line 28 of file HcalConstantsXMLWriter.cc.
References gather_cfg::cout, benchmark_cfg::fb, i, runonSM::newfile, GenerateHcalLaserBadRunList::out, pyrootRender::root, and XERCES_CPP_NAMESPACE_USE::transcode().
30 int nn = newfile0.size();
32 for (
int i = 0;
i < nn;
i++)
34 newfile[
i]=newfile0[
i];
36 char const* fend=
"\0";
39 cout<<
" New file "<<newfile<<endl;
48 mDom = DOMImplementationRegistry::getDOMImplementation (tempStr);
57 DOMWriter* domWriter =
mDom->createDOMWriter();
58 domWriter->setFeature(XMLUni::fgDOMWRTFormatPrettyPrint,
true);
59 DOMElement*
root =
mDoc->getDocumentElement();
62 DOMElement* rootelem =
mDoc->createElement (tempStr);
63 root->appendChild(rootelem);
66 vector<DOMElement*> theDOMVec;
68 for(
unsigned int i=0;
i<detvec.size();
i++)
70 theDOMVec.push_back(
mDoc->createElement (tempStr));
71 newCellLine(theDOMVec[
i],detvec[i],etavec[i],phivec[i],depthvec[i],scalevec[i]);
72 rootelem->appendChild(theDOMVec[
i]);
75 cout<<
" Write Doc "<<theDOMVec.size()<<endl;
76 domWriter->writeNode (&formTarget, *
mDoc);
77 cout<<
" End of Writting "<<endl;
void newCellLine(xercesc::DOMElement *, int, int, int, int, float)
XMLCh * transcode(const T &fInput)
xercesc::DOMImplementation * mDom
xercesc::DOMDocument * mDoc
std::string HcalConstantsXMLWriter::hcalfileOut_ |
|
private |
xercesc::DOMDocument* HcalConstantsXMLWriter::mDoc |
|
private |
xercesc::DOMImplementation* HcalConstantsXMLWriter::mDom |
|
private |