CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/CalibFormats/SiPixelObjects/interface/PixelTKFECConfig.h

Go to the documentation of this file.
00001 #ifndef PixelTKFECConfig_h
00002 #define PixelTKFECConfig_h
00003 
00010 #include <iostream>
00011 #include <vector>
00012 #include <string>
00013 #include "CalibFormats/SiPixelObjects/interface/PixelConfigBase.h"
00014 #include "CalibFormats/SiPixelObjects/interface/PixelTKFECParameters.h"
00015 
00016 namespace pos{
00027   class PixelTKFECConfig: public PixelConfigBase {
00028 
00029   public:
00030 
00031     PixelTKFECConfig(std::string filename);  //  <---- Modified for the conversion from parallel vectors to object that contain the configuration
00032    
00033     PixelTKFECConfig(std::vector<std::vector<std::string> >& tableMat ); 
00034 
00035     virtual ~PixelTKFECConfig(); 
00036 
00037     unsigned int getNTKFECBoards() const;
00038 
00039     std::string  getTKFECID(unsigned int i) const;
00040     unsigned int getCrate(unsigned int i) const;
00041     std::string  getType(unsigned int i) const;
00042     unsigned int getAddress(unsigned int i) const;
00043     unsigned int crateFromTKFECID(std::string TKFECID) const;
00044     std::string  typeFromTKFECID(std::string TKFECID) const;
00045     unsigned int addressFromTKFECID(std::string TKFECID) const;
00046 
00047     virtual void writeASCII(std::string dir) const;
00048     virtual void writeXML(        pos::PixelConfigKey key, int version, std::string path) const {;}
00049     virtual void writeXMLHeader(  pos::PixelConfigKey key, 
00050                                   int version, 
00051                                   std::string path, 
00052                                   std::ofstream *out,
00053                                   std::ofstream *out1 = NULL,
00054                                   std::ofstream *out2 = NULL
00055                                   ) const ;
00056     virtual void writeXML(        std::ofstream *out,                                                       
00057                                   std::ofstream *out1 = NULL ,
00058                                   std::ofstream *out2 = NULL ) const ;
00059     virtual void writeXMLTrailer( std::ofstream *out, 
00060                                   std::ofstream *out1 = NULL,
00061                                   std::ofstream *out2 = NULL
00062                                   ) const ;
00063     
00064   private:
00065     std::vector< PixelTKFECParameters > TKFECconfig_;
00066   };
00067 }
00068 /* @} */
00069 #endif