CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalTBWeightsXMLTranslator.h
Go to the documentation of this file.
1 
10 #ifndef _EcalTBWeightsXMLTranslator_h_
11 #define _EcalTBWeightsXMLTranslator_h_
12 
13 #include <xercesc/dom/DOMNode.hpp>
18 #include <string>
19 
20 
21 
23 
24 
25  public:
26 
27  static int readXML(const std::string& filename,
28  EcalCondHeader& header,
30 
31  static int writeXML(const std::string& filename,
32  const EcalCondHeader& header,
33  const EcalTBWeights& record);
34 
35  static std::string dumpXML(const EcalCondHeader& header,
36  const EcalTBWeights& record);
37  private:
38 
39  static void readWeightSet(xercesc::DOMNode* parentNode,
40  EcalWeightSet& ws);
41  static void writeWeightSet(xercesc::DOMNode* parentNode,
42  const EcalWeightSet& ws);
43  static void writeWeightMatrix(xercesc::DOMNode* node,
45 
46  static void writeChi2WeightMatrix(xercesc::DOMNode* node,
48 
49 
50 
51 };
52 
53 
54 
55 
56 #endif
static std::string dumpXML(const EcalCondHeader &header, const EcalTBWeights &record)
JetCorrectorParameters::Record record
Definition: classes.h:7
static int writeXML(const std::string &filename, const EcalCondHeader &header, const EcalTBWeights &record)
static void writeWeightMatrix(xercesc::DOMNode *node, const EcalWeightSet::EcalWeightMatrix &matrix)
tuple node
Definition: Node.py:50
static void writeWeightSet(xercesc::DOMNode *parentNode, const EcalWeightSet &ws)
static void readWeightSet(xercesc::DOMNode *parentNode, EcalWeightSet &ws)
math::Matrix< 10, 10 >::type EcalChi2WeightMatrix
Definition: EcalWeightSet.h:23
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)
math::Matrix< 3, 10 >::type EcalWeightMatrix
Definition: EcalWeightSet.h:22