CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
35  PixelTrimAllPixels(std::string filename);
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;
44 
45  void writeBinary(std::string filename) const;
46 
47  void writeASCII(std::string filename) const;
48  void writeXML( pos::PixelConfigKey key, int version, std::string path) const {;}
50  int version,
51  std::string path,
52  std::ofstream *out,
53  std::ofstream *out1 = NULL,
54  std::ofstream *out2 = NULL
55  ) const ;
56  virtual void writeXML( std::ofstream *out,
57  std::ofstream *out1 = NULL ,
58  std::ofstream *out2 = NULL ) const ;
59  virtual void writeXMLTrailer( std::ofstream *out,
60  std::ofstream *out1 = NULL,
61  std::ofstream *out2 =NULL
62  ) const ;
63 
64  PixelROCTrimBits getTrimBits(int ROCId) const;
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
void writeASCII(std::string filename) const
#define NULL
Definition: scimark2.h:8
This class provides a translation from the naming documents standard to specify the ROC to the corres...
void writeXML(pos::PixelConfigKey key, int version, std::string path) const
list path
Definition: scaleCards.py:51
std::vector< std::string > rocname_
std::vector< PixelROCTrimBits > trimbits_
PixelROCTrimBits getTrimBits(int ROCId) const
This class implements..
This is the documentation about PixelMaskBase...
Definition: PixelMaskBase.h:36
This class implements..
tuple out
Definition: dbtoconf.py:99
virtual void writeXMLHeader(pos::PixelConfigKey key, int version, std::string path, std::ofstream *out, std::ofstream *out1=NULL, std::ofstream *out2=NULL) const
PixelTrimAllPixels(std::string filename)
This class provides a base class for the pixel trim data for the pixel FEC configuration.
This is the documentation about PixelNameTranslation...
This class implements..
Definition: PixelROCName.h:23
This class implements..
list key
Definition: combine.py:13
tuple filename
Definition: lut2db_cfg.py:20
virtual void writeXMLTrailer(std::ofstream *out, std::ofstream *out1=NULL, std::ofstream *out2=NULL) const
This class implements..
Definition: PixelTrimBase.h:46
void generateConfiguration(PixelFECConfigInterface *pixelFEC, PixelNameTranslation *trans, const PixelMaskBase &pixelMask) const
This class stores the name and related hardware mappings for a ROC.