Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 /**
0002    Translates a EcalClusterEnergyCorrection record to XML
0003    and vice versa   
0004 
0005    \author 
0006    \version $Id: EcalClusterEnergyCorrectionObjectSpecificXMLTranslator.h,v 1.0  $
0007    \date November 2011
0008 */
0009 
0010 #ifndef __EcalClusterEnergyCorrectionObjectSpecificXMLTranslator_h_
0011 #define __EcalClusterEnergyCorrectionObjectSpecificXMLTranslator_h_
0012 
0013 #include "CondTools/Ecal/interface/EcalCondHeader.h"
0014 #include "CondFormats/EcalObjects/interface/EcalFunctionParameters.h"
0015 #include <string>
0016 
0017 class EcalClusterEnergyCorrectionObjectSpecificXMLTranslator {
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_