Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:49

0001 /**
0002    Translates a EcalClusterEnergyCorrection record to XML
0003    and vice versa   
0004 
0005    \author 
0006    \version $Id: EcalClusterEnergyCorrectionXMLTranslator.h,v 1.0  $
0007    \date October 2011
0008 */
0009 
0010 #ifndef __EcalClusterEnergyCorrectionXMLTranslator_h_
0011 #define __EcalClusterEnergyCorrectionXMLTranslator_h_
0012 
0013 #include "CondTools/Ecal/interface/EcalCondHeader.h"
0014 #include "CondFormats/EcalObjects/interface/EcalFunctionParameters.h"
0015 #include <string>
0016 
0017 class EcalClusterEnergyCorrectionXMLTranslator {
0018 public:
0019   static int readXML(const std::string& filename, EcalCondHeader& header, EcalFunParams& record);
0020 
0021   static int writeXML(const std::string& filename, const EcalCondHeader& header, const EcalFunParams& record);
0022 
0023 private:
0024   // dump the CMSSW object container to XML
0025   static std::string dumpXML(const EcalCondHeader& header, const EcalFunParams& record);
0026 };
0027 
0028 #endif  // __EcalClusterEnergyCorrectionXMLTranslator_h_