Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 /**
0002    Translates a EcalLinearCorrections record to XML
0003    and vice versa   
0004 
0005    \author Stefano ARGIRO
0006    \version $Id: EcalLinearCorrectionsXMLTranslator.h,v 1.1 2012/11/21 17:01:39 fra Exp $
0007    \date 20 Jun 2008
0008 */
0009 #ifndef __EcalLinearCorrectionsXMLTranslator_h_
0010 #define __EcalLinearCorrectionsXMLTranslator_h_
0011 
0012 #include "CondFormats/EcalObjects/interface/EcalLinearCorrections.h"
0013 #include "CondTools/Ecal/interface/EcalCondHeader.h"
0014 #include <string>
0015 
0016 class EcalLinearCorrectionsXMLTranslator {
0017 public:
0018   static int readXML(const std::string& filename, EcalCondHeader& header, EcalLinearCorrections& record);
0019 
0020   static int writeXML(const std::string& filename, const EcalCondHeader& header, const EcalLinearCorrections& record);
0021 
0022 private:
0023   static std::string dumpXML(const EcalCondHeader& header, const EcalLinearCorrections& record);
0024 };
0025 
0026 #endif  // __EcalLinearCorrectionsXMLTranslator_h_