CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PixelTrimBase.h
Go to the documentation of this file.
1 #ifndef PixelTrimBase_h
2 #define PixelTrimBase_h
3 
18 #include <string>
25 
26 
27 namespace pos{
47 
48  public:
49 
53 
54  virtual ~PixelTrimBase();
55 
56  void setOverride(PixelTrimOverrideBase* trimOverride);
57 
58  //Build the commands needed to configure ROCs
59  //on control link
60 
61  virtual void generateConfiguration(PixelFECConfigInterface* pixelFEC,
63  const PixelMaskBase& pixelMask) const =0;
64  virtual void writeBinary( std::string filename) const =0;
65 
66  virtual void writeASCII( std::string filename) const =0;
68  int version,
70  ) const {;}
72  int version,
74  std::ofstream *out,
75  std::ofstream *out1 = NULL,
76  std::ofstream *out2 = NULL
77  ) const {;}
78  virtual void writeXML( std::ofstream *out,
79  std::ofstream *out1 = NULL ,
80  std::ofstream *out2 = NULL
81  ) const {;}
82  virtual void writeXMLTrailer( std::ofstream *out,
83  std::ofstream *out1 = NULL,
84  std::ofstream *out2 = NULL
85  ) const {;}
86 
87  virtual PixelROCTrimBits getTrimBits(int ROCId) const =0;
88 
90 
91  friend std::ostream& operator<<(std::ostream& s, const PixelTrimBase& mask);
92 
93 
94  private:
95 
97 
98  };
99 }
100 /* @} */
101 #endif
void setOverride(PixelTrimOverrideBase *trimOverride)
This file contains the base class for &quot;pixel configuration data&quot; management.
std::string description()
virtual PixelROCTrimBits getTrimBits(int ROCId) const =0
virtual void writeASCII(std::string filename) const =0
#define NULL
Definition: scimark2.h:8
virtual void writeXMLHeader(pos::PixelConfigKey key, int version, std::string path, std::ofstream *out, std::ofstream *out1=NULL, std::ofstream *out2=NULL) const
Definition: PixelTrimBase.h:71
This class provides a translation from the naming documents standard to specify the ROC to the corres...
This class intends to define an abstract interface for the commands to talk to the PixelFEC...
tuple path
else: Piece not in the list, fine.
PixelTrimOverrideBase * trimOverride_
Definition: PixelTrimBase.h:96
virtual void writeXMLTrailer(std::ofstream *out, std::ofstream *out1=NULL, std::ofstream *out2=NULL) const
Definition: PixelTrimBase.h:82
This class implements..
This is the documentation about PixelMaskBase...
Definition: PixelMaskBase.h:36
This class implements..
tuple out
Definition: dbtoconf.py:99
std::string date()
virtual void writeBinary(std::string filename) const =0
friend std::ostream & operator<<(std::ostream &s, const PixelTrimBase &mask)
This class provides a base class for the pixel trim data for the pixel FEC configuration.
std::string creator()
This is the documentation about PixelNameTranslation...
This class implements..
Definition: PixelROCName.h:23
This class implements..
virtual ~PixelTrimBase()
list key
Definition: combine.py:13
tuple filename
Definition: lut2db_cfg.py:20
This class implements..
Definition: PixelTrimBase.h:46
PixelTrimBase(std::string description, std::string creator, std::string date)
virtual void generateConfiguration(PixelFECConfigInterface *pixelFEC, PixelNameTranslation *trans, const PixelMaskBase &pixelMask) const =0
virtual void writeXML(std::ofstream *out, std::ofstream *out1=NULL, std::ofstream *out2=NULL) const
Definition: PixelTrimBase.h:78
virtual void writeXML(pos::PixelConfigKey key, int version, std::string path) const
Definition: PixelTrimBase.h:67
This class stores the name and related hardware mappings for a ROC.