CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
EcalTBWeightsXMLTranslator.h
Go to the documentation of this file.
1 
10 #ifndef _EcalTBWeightsXMLTranslator_h_
11 #define _EcalTBWeightsXMLTranslator_h_
12 
16 #include <xercesc/dom/DOMNode.hpp>
17 #include <string>
18 
20 public:
22 
23  static int writeXML(const std::string& filename, const EcalCondHeader& header, const EcalTBWeights& record);
24 
25 private:
27 
28  static void readWeightSet(xercesc::DOMNode* parentNode, EcalWeightSet& ws);
29  static void writeWeightSet(xercesc::DOMNode* parentNode, const EcalWeightSet& ws);
30  static void writeWeightMatrix(xercesc::DOMNode* node, const EcalWeightSet::EcalWeightMatrix& matrix);
31 
32  static void writeChi2WeightMatrix(xercesc::DOMNode* node, const EcalWeightSet::EcalChi2WeightMatrix& matrix);
33 };
34 
35 #endif
static std::string dumpXML(const EcalCondHeader &header, const EcalTBWeights &record)
static int writeXML(const std::string &filename, const EcalCondHeader &header, const EcalTBWeights &record)
static void writeWeightMatrix(xercesc::DOMNode *node, const EcalWeightSet::EcalWeightMatrix &matrix)
math::Matrix< 10, 10 >::type EcalChi2WeightMatrix
Definition: EcalWeightSet.h:20
math::Matrix< 3, 10 >::type EcalWeightMatrix
Definition: EcalWeightSet.h:19
static void writeWeightSet(xercesc::DOMNode *parentNode, const EcalWeightSet &ws)
static void readWeightSet(xercesc::DOMNode *parentNode, EcalWeightSet &ws)
static int readXML(const std::string &filename, EcalCondHeader &header, EcalTBWeights &record)
static void writeChi2WeightMatrix(xercesc::DOMNode *node, const EcalWeightSet::EcalChi2WeightMatrix &matrix)