00001 #ifndef PixelMaskAllPixels_h 00002 #define PixelMaskAllPixels_h 00003 00009 #include <vector> 00010 #include <string> 00011 #include "CalibFormats/SiPixelObjects/interface/PixelMaskBase.h" 00012 #include "CalibFormats/SiPixelObjects/interface/PixelROCMaskBits.h" 00013 00014 namespace pos{ 00023 class PixelMaskAllPixels: public PixelMaskBase { 00024 00025 public: 00026 00027 PixelMaskAllPixels(std::string filename); 00028 PixelMaskAllPixels(std::vector< std::vector<std::string> >& tableMat); 00029 // modified by MR on 18-04-2008 10:05:04 00030 PixelMaskAllPixels() ; 00031 void addROCMaskBits(PixelROCMaskBits); 00032 00033 00034 void writeBinary(std::string filename) const; 00035 00036 void writeASCII(std::string dir) const; 00037 void writeXML( pos::PixelConfigKey key, int version, std::string path) const {;} 00038 virtual void writeXMLHeader(pos::PixelConfigKey key, int version, std::string path, std::ofstream *out) const {;} 00039 virtual void writeXML( std::ofstream *out) const {;} 00040 virtual void writeXMLTrailer( std::ofstream *out) const {;} 00041 00042 const PixelROCMaskBits& getMaskBits(int ROCId) const; 00043 00044 PixelROCMaskBits* getMaskBits(PixelROCName name); 00045 00046 private: 00047 00048 std::vector<PixelROCMaskBits> maskbits_; 00049 00050 }; 00051 } 00052 /* @} */ 00053 #endif