10 int size= CalibrationXML::readAttribute<int>(dom,
"size");
12 DOMNode * n1 = dom->getFirstChild();
14 for(bin=0; bin <
size; bin ++)
16 while( ( n1->getNodeType() != DOMNode::ELEMENT_NODE ) && ( n1 != 0 ) ) n1 = n1->getNextSibling();
20 binValues.push_back(CalibrationXML::readAttribute<double>(binElement,
"value"));
22 binULimits.push_back(CalibrationXML::readAttribute<double>(binElement,
"uLimit"));
23 n1 = n1->getNextSibling();
27 binValues.push_back(CalibrationXML::readAttribute<int>(dom,
"overFlowValue"));
29 limits =
Range(binULimits.front(), binULimits.back());
36 int size=binULimits.size();
static void writeAttribute(DOMElement *dom, const std::string &name, const T &value)
static DOMElement * addChild(DOMNode *dom, const std::string &name)
XERCES_CPP_NAMESPACE::DOMNode DOMNode
PixelRecoRange< float > Range
void write(DOMElement *dom) const
bin
set the eta bin as selection string.
void read(DOMElement *dom)
XERCES_CPP_NAMESPACE::DOMElement DOMElement