CMS 3D CMS Logo

PixelTrimAllPixels.h
Go to the documentation of this file.
1 #ifndef PixelTrimAllPixels_h
2 #define PixelTrimAllPixels_h
3 
11 #include <string>
12 #include <vector>
18 
19 namespace pos{
32 
33  public:
34 
36  PixelTrimAllPixels(std::vector<std::vector<std::string> > &tableMat);
37 
38  //Build the commands needed to configure ROCs
39  //on control link
40 
42  PixelNameTranslation* trans,
43  const PixelMaskBase& pixelMask) const override;
44 
45  void writeBinary(std::string filename) const override;
46 
47  void writeASCII(std::string filename) const override;
48  void writeXML( pos::PixelConfigKey key, int version, std::string path) const override {;}
50  int version,
52  std::ofstream *out,
53  std::ofstream *out1 = nullptr,
54  std::ofstream *out2 = nullptr
55  ) const override ;
56  void writeXML( std::ofstream *out,
57  std::ofstream *out1 = nullptr ,
58  std::ofstream *out2 = nullptr ) const override ;
59  void writeXMLTrailer( std::ofstream *out,
60  std::ofstream *out1 = nullptr,
61  std::ofstream *out2 =nullptr
62  ) const override ;
63 
64  PixelROCTrimBits getTrimBits(int ROCId) const override;
65 
67 
68 
69  private:
70 
71  std::vector<std::string> rocname_;
72  std::vector<PixelROCTrimBits> trimbits_;
73 
74  };
75 }
76 /* @} */
77 #endif
void writeBinary(std::string filename) const override
void writeASCII(std::string filename) const override
void writeXML(pos::PixelConfigKey key, int version, std::string path) const override
void writeXMLTrailer(std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
This class provides a translation from the naming documents standard to specify the ROC to the corres...
std::vector< std::string > rocname_
void writeXMLHeader(pos::PixelConfigKey key, int version, std::string path, std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
std::vector< PixelROCTrimBits > trimbits_
This class implements..
PixelROCTrimBits getTrimBits(int ROCId) const override
This is the documentation about PixelMaskBase...
Definition: PixelMaskBase.h:36
This class implements..
PixelTrimAllPixels(std::string filename)
This class provides a base class for the pixel trim data for the pixel FEC configuration.
void generateConfiguration(PixelFECConfigInterface *pixelFEC, PixelNameTranslation *trans, const PixelMaskBase &pixelMask) const override
This is the documentation about PixelNameTranslation...
This class implements..
Definition: PixelROCName.h:23
This class implements..
This class implements..
Definition: PixelTrimBase.h:46
This class stores the name and related hardware mappings for a ROC.