File indexing completed on 2024-04-06 11:58:13
0001 #ifndef PixelTrimACommon_h
0002 #define PixelTrimACommon_h
0003
0004
0005
0006
0007
0008
0009
0010
0011 #include <string>
0012 #include <vector>
0013 #include "CalibFormats/SiPixelObjects/interface/PixelTrimBase.h"
0014 #include "CalibFormats/SiPixelObjects/interface/PixelMaskBase.h"
0015 #include "CalibFormats/SiPixelObjects/interface/PixelROCTrimBits.h"
0016 #include "CalibFormats/SiPixelObjects/interface/PixelNameTranslation.h"
0017
0018 namespace pos {
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030 class PixelTrimCommon : public PixelTrimBase {
0031 public:
0032 PixelTrimCommon(std::string filename);
0033
0034
0035
0036
0037 void generateConfiguration(PixelFECConfigInterface* pixelFEC,
0038 PixelNameTranslation* trans,
0039 const PixelMaskBase& pixelMask) const override;
0040
0041 void writeBinary(std::string filename) const override;
0042
0043 void writeASCII(std::string filename) const override;
0044 void writeXML(pos::PixelConfigKey key, int version, std::string path) const override { ; }
0045 using PixelTrimBase::writeXML;
0046 using PixelTrimBase::writeXMLHeader;
0047 using PixelTrimBase::writeXMLTrailer;
0048 void writeXMLHeader(pos::PixelConfigKey key, int version, std::string path, std::ofstream* out) const override { ; }
0049 void writeXML(std::ofstream* out) const override { ; }
0050 void writeXMLTrailer(std::ofstream* out) const override { ; }
0051
0052 private:
0053 std::vector<PixelROCName> rocname_;
0054 std::vector<unsigned int> trimbits_;
0055 };
0056 }
0057 #endif