00001 00007 #ifndef __EcalTPGTowerStatusXMLTranslator_h_ 00008 #define __EcalTPGTowerStatusXMLTranslator_h_ 00009 00010 #include "CondFormats/EcalObjects/interface/EcalTPGTowerStatus.h" 00011 00012 #include "CondTools/Ecal/interface/XercesString.h" 00013 #include "CondTools/Ecal/interface/EcalCondHeader.h" 00014 #include <string> 00015 #include <xercesc/dom/DOMNode.hpp> 00016 00017 static const char CVSId__EcalTPGTowerStatusXMLTranslator[] = 00018 "$Id: EcalTPGTowerStatusXMLTranslator.h,v 1.1 2011/06/22 12:52:52 fay Exp $"; 00019 00020 00021 //class EcalTPGTowerStatus; 00022 00023 class EcalTPGTowerStatusXMLTranslator { 00024 00025 public: 00026 00027 static int readXML (const std::string& filename, 00028 EcalCondHeader& header, 00029 EcalTPGTowerStatus& record); 00030 00031 static int writeXML(const std::string& filename, 00032 const EcalCondHeader& header, 00033 const EcalTPGTowerStatus& record); 00034 00035 static std::string dumpXML(const EcalCondHeader& header, 00036 const EcalTPGTowerStatus& record); 00037 00038 static void plot(std::string, const EcalTPGTowerStatus& record); 00039 }; 00040 00041 #endif // __EcalTPGTowerStatusXMLTranslator_h_