Go to the documentation of this file.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
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,
00039 int version,
00040 std::string path,
00041 std::ofstream *out,
00042 std::ofstream *out1 = NULL,
00043 std::ofstream *out2 = NULL
00044 ) const ;
00045 virtual void writeXML( std::ofstream *out,
00046 std::ofstream *out1 = NULL ,
00047 std::ofstream *out2 = NULL ) const ;
00048 virtual void writeXMLTrailer( std::ofstream *out,
00049 std::ofstream *out1 = NULL,
00050 std::ofstream *out2 =NULL
00051 ) const ;
00052
00053 const PixelROCMaskBits& getMaskBits(int ROCId) const;
00054
00055 PixelROCMaskBits* getMaskBits(PixelROCName name);
00056
00057 private:
00058
00059 std::vector<PixelROCMaskBits> maskbits_;
00060
00061 };
00062 }
00063
00064 #endif