Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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