File indexing completed on 2024-04-06 11:58:13
0001 #ifndef PixelMaskAllPixels_h
0002 #define PixelMaskAllPixels_h
0003
0004
0005
0006
0007
0008
0009 #include <vector>
0010 #include <string>
0011 #include "CalibFormats/SiPixelObjects/interface/PixelMaskBase.h"
0012 #include "CalibFormats/SiPixelObjects/interface/PixelROCMaskBits.h"
0013
0014 namespace pos {
0015
0016
0017
0018
0019
0020
0021
0022
0023 class PixelMaskAllPixels : public PixelMaskBase {
0024 public:
0025 PixelMaskAllPixels(std::string filename);
0026 PixelMaskAllPixels(std::vector<std::vector<std::string> > &tableMat);
0027
0028 PixelMaskAllPixels();
0029 void addROCMaskBits(const PixelROCMaskBits &);
0030
0031 void writeBinary(std::string filename) const override;
0032
0033 void writeASCII(std::string dir) const override;
0034 void writeXML(pos::PixelConfigKey key, int version, std::string path) const override { ; }
0035 void writeXMLHeader(pos::PixelConfigKey key,
0036 int version,
0037 std::string path,
0038 std::ofstream *out,
0039 std::ofstream *out1 = nullptr,
0040 std::ofstream *out2 = nullptr) const override;
0041 void writeXML(std::ofstream *out, std::ofstream *out1 = nullptr, std::ofstream *out2 = nullptr) const override;
0042 void writeXMLTrailer(std::ofstream *out,
0043 std::ofstream *out1 = nullptr,
0044 std::ofstream *out2 = nullptr) const override;
0045
0046 const PixelROCMaskBits &getMaskBits(int ROCId) const override;
0047
0048 PixelROCMaskBits *getMaskBits(PixelROCName name) override;
0049
0050 private:
0051 std::vector<PixelROCMaskBits> maskbits_;
0052 };
0053 }
0054
0055 #endif