Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:47:22

0001 #ifndef PixelMaskAllPixels_h
0002 #define PixelMaskAllPixels_h
0003 /**
0004 *   \file CalibFormats/SiPixelObjects/interface/PixelMaskAllPixels..h
0005 *   \brief This clss implements..
0006 *
0007 *   A longer explanation will be placed here later
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   /*!  \ingroup ConfigurationObjects "Configuration Objects"
0016 *    
0017 *  @{
0018 *
0019 *  \class PixelMaskAllPixels PixelMaskAllPixels.h
0020 *  \brief This is the documentation about PixelMaskAllPixels...
0021 *
0022 */
0023   class PixelMaskAllPixels : public PixelMaskBase {
0024   public:
0025     PixelMaskAllPixels(std::string filename);
0026     PixelMaskAllPixels(std::vector<std::vector<std::string> > &tableMat);
0027     // modified by MR on 18-04-2008 10:05:04
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 }  // namespace pos
0054 /* @} */
0055 #endif