Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 /**
0002    Translates a EcalGainRatio record to XML and vice versa   
0003    \author Francesco RUBBO
0004    \version $Id: EcalPulseSymmCovariancesXMLTranslator.h,v 0 2010/04/26 fay Exp $
0005    \date 26 Apr 2010
0006 */
0007 
0008 #ifndef __EcalPulseSymmCovariancesXMLTranslator_h_
0009 #define __EcalPulseSymmCovariancesXMLTranslator_h_
0010 
0011 #include "CondFormats/EcalObjects/interface/EcalPulseSymmCovariances.h"
0012 #include "CondTools/Ecal/interface/EcalCondHeader.h"
0013 #include <string>
0014 
0015 class EcalPulseSymmCovariancesXMLTranslator {
0016 public:
0017   static int readXML(const std::string& filename, EcalCondHeader& header, EcalPulseSymmCovariances& record);
0018 
0019   static int writeXML(const std::string& filename,
0020                       const EcalCondHeader& header,
0021                       const EcalPulseSymmCovariances& record);
0022 
0023 private:
0024   static std::string dumpXML(const EcalCondHeader& header, const EcalPulseSymmCovariances& record);
0025 };
0026 
0027 #endif  // __EcalPulseSymmCovariancesXMLTranslator_h_