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, int version, std::string path, std::ofstream *out) const {;} 00050 virtual void writeXML( std::ofstream *out) const {;} 00051 virtual void writeXMLTrailer( std::ofstream *out) const {;} 00052 00053 private: 00054 std::vector< PixelTKFECParameters > TKFECconfig_; 00055 }; 00056 } 00057 /* @} */ 00058 #endif