00001 #ifndef PixelCalibBase_h 00002 #define PixelCalibBase_h 00003 00009 #include "CalibFormats/SiPixelObjects/interface/PixelConfigKey.h" 00010 #include <string> 00011 #include <fstream> 00012 00013 00014 namespace pos{ 00024 class PixelCalibBase { 00025 00026 public: 00027 00028 PixelCalibBase(); 00029 virtual ~PixelCalibBase(); 00030 virtual std::string mode() const {return mode_;} 00031 virtual void writeXMLHeader( pos::PixelConfigKey &key, 00032 int version, 00033 std::string path, 00034 std::ofstream *out, 00035 std::ofstream *out1 = NULL, 00036 std::ofstream *out2 = NULL 00037 ) const {;} 00038 virtual void writeXML( std::ofstream *out, 00039 std::ofstream *out1 = NULL , 00040 std::ofstream *out2 = NULL ) const {;} 00041 virtual void writeXMLTrailer( std::ofstream *out, 00042 std::ofstream *out1 = NULL, 00043 std::ofstream *out2 = NULL 00044 ) const {;} 00045 00046 protected: 00047 00048 std::string mode_; 00049 00050 }; 00051 } 00052 /* @} */ 00053 00054 #endif