CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch2/src/CalibFormats/SiPixelObjects/interface/PixelLTCConfig.h

Go to the documentation of this file.
00001 #ifndef PixelLTCConfig_h
00002 #define PixelLTCConfig_h
00003 
00010 #include <string>
00011 #include <map>
00012 #include <set>
00013 #include <fstream>
00014 #include <iostream>
00015 #include <sstream>
00016 #include <vector>
00017 #include "CalibFormats/SiPixelObjects/interface/PixelConfigBase.h"
00018 
00019 
00020 namespace pos{
00030   class PixelLTCConfig: public PixelConfigBase{
00031  
00032   public:
00033    
00034     PixelLTCConfig(std::vector< std::vector<std::string> > &tableMat) ;
00035     PixelLTCConfig(std::string filename);
00036     //std::string getLTCConfigPath() {return ltcConfigPath_;}
00037     std::stringstream& getLTCConfigStream() {return ltcConfigStream_;}
00038 
00039     virtual void writeASCII(std::string dir) const;
00040     void         writeXML(        pos::PixelConfigKey key, int version, std::string path) const {;}
00041     virtual void writeXMLHeader(  pos::PixelConfigKey key, 
00042                                   int version, 
00043                                   std::string path, 
00044                                   std::ofstream *out,
00045                                   std::ofstream *out1 = NULL,
00046                                   std::ofstream *out2 = NULL
00047                                   ) const ;
00048     virtual void writeXML(        std::ofstream *out,                                                       
00049                                   std::ofstream *out1 = NULL ,
00050                                   std::ofstream *out2 = NULL ) const ;
00051     virtual void writeXMLTrailer( std::ofstream *out, 
00052                                   std::ofstream *out1 = NULL,
00053                                   std::ofstream *out2 = NULL
00054                                   ) const ;
00055  
00056   private:
00057  
00058     //std::string ltcConfigPath_;
00059     std::stringstream ltcConfigStream_;
00060 
00061   };
00062 }
00063 /* @} */
00064 #endif