Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 /**
0002    Translates a EcalWeightGroup record to XML
0003    and vice versa   
0004 
0005    \author Stefano ARGIRO
0006    \version $Id: EcalWeightGroupXMLTranslator.h,v 1.2 2009/06/30 14:40:11 argiro Exp $
0007    \date 20 Jun 2008
0008 */
0009 
0010 #ifndef _EcalWeightGroupXMLTranslator_h_
0011 #define _EcalWeightGroupXMLTranslator_h_
0012 
0013 #include "CondTools/Ecal/interface/EcalCondHeader.h"
0014 #include "CondFormats/EcalObjects/interface/EcalWeightXtalGroups.h"
0015 #include <string>
0016 
0017 class EcalWeightGroupXMLTranslator {
0018 public:
0019   static int readXML(const std::string& filename, EcalCondHeader& header, EcalWeightXtalGroups& record);
0020 
0021   static int writeXML(const std::string& filename, const EcalCondHeader& header, const EcalWeightXtalGroups& record);
0022 
0023 private:
0024   static std::string dumpXML(const EcalCondHeader& header, const EcalWeightXtalGroups& record);
0025 };
0026 
0027 #endif  // __EcalWeightGroupXMLTranslator_h_