#include <HcalConstantsXMLWriter.h>
List of all members.
Public Member Functions |
| HcalConstantsXMLWriter () |
void | newCellLine (xercesc::DOMElement *, int, int, int, int, float) |
void | writeXML (std::string &, std::vector< int >, std::vector< int >, std::vector< int >, std::vector< int >, std::vector< float >) |
virtual | ~HcalConstantsXMLWriter () |
Private Attributes |
std::string | hcalfileOut_ |
xercesc::DOMDocument * | mDoc |
xercesc::DOMImplementation * | mDom |
Detailed Description
Definition at line 19 of file HcalConstantsXMLWriter.h.
Constructor & Destructor Documentation
HcalConstantsXMLWriter::HcalConstantsXMLWriter |
( |
| ) |
|
HcalConstantsXMLWriter::~HcalConstantsXMLWriter |
( |
| ) |
[virtual] |
Member Function Documentation
void HcalConstantsXMLWriter::newCellLine |
( |
xercesc::DOMElement * |
, |
|
|
int |
, |
|
|
int |
, |
|
|
int |
, |
|
|
int |
, |
|
|
float |
|
|
) |
| |
Definition at line 81 of file HcalConstantsXMLWriter.cc.
References eta(), and phi.
{
XMLCh tempStr[100];
XMLString::transcode("det_index", tempStr, 99);
DOMAttr* attrdet = mDoc->createAttribute(tempStr);
XMLString::transcode("eta_index", tempStr, 99);
DOMAttr* attreta = mDoc->createAttribute(tempStr);
XMLString::transcode("phi_index", tempStr, 99);
DOMAttr* attrphi = mDoc->createAttribute(tempStr) ;
XMLString::transcode("depth_index", tempStr, 99);
DOMAttr* attrdepth = mDoc->createAttribute(tempStr) ;
XMLString::transcode("scale_factor", tempStr, 99);
DOMAttr* attrscale = mDoc->createAttribute(tempStr) ;
ostringstream ost;
ost <<det;
attrdet->setValue(XMLString::transcode(ost.str().c_str()));
detelem->setAttributeNode(attrdet);
ostringstream ost1;
ost1 <<eta;
attreta->setValue(XMLString::transcode(ost1.str().c_str()));
detelem->setAttributeNode(attreta);
ostringstream ost2;
ost2 <<phi;
attrphi->setValue(XMLString::transcode(ost2.str().c_str()));
detelem->setAttributeNode(attrphi);
ostringstream ost3;
ost3 <<depth;
attrdepth->setValue(XMLString::transcode(ost3.str().c_str()));
detelem->setAttributeNode(attrdepth);
ostringstream ost4;
ost4 << scale;
attrscale->setValue(XMLString::transcode(ost4.str().c_str()));
detelem->setAttributeNode(attrscale);
}
void HcalConstantsXMLWriter::writeXML |
( |
std::string & |
, |
|
|
std::vector< int > |
, |
|
|
std::vector< int > |
, |
|
|
std::vector< int > |
, |
|
|
std::vector< int > |
, |
|
|
std::vector< float > |
|
|
) |
| |
Member Data Documentation