Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:51:52

0001 /**
0002    Translates a EcalWeightSet record to XML
0003    and vice versa   
0004 
0005    \author Stefano ARGIRO
0006    \version $Id: EcalWeightSetXMLTranslator.h,v 1.1 2008/11/14 15:46:05 argiro Exp $
0007    \date 20 Jun 2008
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  // __EcalWeightSetXMLTranslator_h_