CMS 3D CMS Logo

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 
21  public:
22 
23  static int readXML(const std::string& filename,
26 
27  static int writeXML(const std::string& filename,
28  const EcalCondHeader& header,
29  const EcalTBWeights& record);
30 
31  private:
32 
33  static std::string dumpXML(const EcalCondHeader& header,
34  const EcalTBWeights& record);
35 
36  static void readWeightSet(xercesc::DOMNode* parentNode,
37  EcalWeightSet& ws);
38  static void writeWeightSet(xercesc::DOMNode* parentNode,
39  const EcalWeightSet& ws);
40  static void writeWeightMatrix(xercesc::DOMNode* node,
42 
43  static void writeChi2WeightMatrix(xercesc::DOMNode* node,
45 };
46 
47 #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)
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)
static void writeChi2WeightMatrix(xercesc::DOMNode *node, const EcalWeightSet::EcalChi2WeightMatrix &matrix)
math::Matrix< 3, 10 >::type EcalWeightMatrix
Definition: EcalWeightSet.h:22