File indexing completed on 2024-09-07 04:35:41
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef __EcalWeightSetXMLTranslator_h_
0011 #define __EcalWeightSetXMLTranslator_h_
0012
0013 #include "CondFormats/EcalObjects/interface/EcalWeightSet.h"
0014 #include "CondTools/Ecal/interface/EcalCondHeader.h"
0015 #include <xercesc/dom/DOMElement.hpp>
0016 #include <string>
0017
0018 class EcalWeightSetXMLTranslator {
0019 public:
0020 EcalWeightSetXMLTranslator() {}
0021
0022 static int readXML(const std::string& filename, EcalCondHeader& header, EcalWeightSet& record);
0023
0024 static int writeXML(const std::string& filename, const EcalCondHeader& header, const EcalWeightSet& record);
0025
0026 private:
0027 static std::string dumpXML(const EcalCondHeader& header, const EcalWeightSet& record);
0028
0029 static void write10x10(xercesc::DOMElement* node, const EcalWeightSet& record);
0030 static void write3x10(xercesc::DOMElement* node, const EcalWeightSet& record);
0031 };
0032
0033 #endif