CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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:
21  static int readXML(const std::string& filename, EcalCondHeader& header, EcalTBWeights& record);
22 
23  static int writeXML(const std::string& filename, const EcalCondHeader& header, const EcalTBWeights& record);
24 
25 private:
26  static std::string dumpXML(const EcalCondHeader& header, const EcalTBWeights& record);
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
auto &__restrict__ ws
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)
tuple filename
Definition: lut2db_cfg.py:20
static void writeChi2WeightMatrix(xercesc::DOMNode *node, const EcalWeightSet::EcalChi2WeightMatrix &matrix)