CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/CondTools/Ecal/interface/EcalFloatCondObjectContainerXMLTranslator.h

Go to the documentation of this file.
00001 
00010 #ifndef __EcalFloatCondObjectContainterXMLTranslator_h_
00011 #define __EcalFloatCondObjectContainterXMLTranslator_h_
00012 
00013 #include "CondTools/Ecal/interface/XercesString.h"
00014 #include "CondTools/Ecal/interface/EcalCondHeader.h"
00015 #include "CondFormats/EcalObjects/interface/EcalCondObjectContainer.h"
00016 #include <xercesc/dom/DOMNode.hpp>
00017 #include <string>
00018 #include <vector>
00019 
00020 
00021 class EcalFloatCondObjectContainerXMLTranslator {
00022 
00023 public:
00024   
00025 
00026   static int readXML  (const std::string& filename,
00027                        EcalCondHeader& header,
00028                        EcalFloatCondObjectContainer& record);
00029 
00030   static std::vector<float>  barrelfromXML(const std::string& filename);
00031                       
00032   static std::vector<float>  endcapfromXML(const std::string& filename);
00033 
00034   static int writeXML (const std::string& filename, 
00035                        const EcalCondHeader& header,
00036                        const EcalFloatCondObjectContainer& record);
00037   
00038   // dump the CMSSW object container to XML
00039   static std::string dumpXML(const EcalCondHeader& header,
00040                              const EcalFloatCondObjectContainer& record);
00041 
00042   // dump the two flat arrays (hashed-indexed as in EBDetId, EEDetId) to XML 
00043   static std::string dumpXML(const EcalCondHeader& header,
00044                              const std::vector<float>& eb,
00045                              const std::vector<float>& ee);
00046 
00047 };
00048 
00049 
00050 
00051 #endif // __EcalFloatCondObjectContainerXMLTranslator_h_
00052 
00053 // Configure (x)emacs for this file ...
00054 // Local Variables:
00055 // mode:c++
00056 // compile-command: "cd ..; scram b"
00057 // End: