CMS 3D CMS Logo

PixelTBMSettings.h
Go to the documentation of this file.
1 #ifndef PixelTBMSettings_h
2 #define PixelTBMSettings_h
3 
11 #include <vector>
15 
16 namespace pos {
28  public:
29  PixelTBMSettings(std::vector<std::vector<std::string> > &tableMat);
31  // modified by MR on 29-04-2008 16:43:30
32  PixelTBMSettings() : PixelConfigBase("", "", "") { ; }
33 
34  ~PixelTBMSettings() override {}
35 
36  //Generate the DAC settings
38  PixelNameTranslation *trans,
39  bool physics = false,
40  bool doResets = true) const;
41 
42  void writeBinary(std::string filename) const;
43 
44  void writeASCII(std::string dir) const override;
45  void writeXML(pos::PixelConfigKey key, int version, std::string path) const override { ; }
47  int version,
49  std::ofstream *out,
50  std::ofstream *out1 = nullptr,
51  std::ofstream *out2 = nullptr) const override;
52  void writeXML(std::ofstream *out, std::ofstream *out1 = nullptr, std::ofstream *out2 = nullptr) const override;
53  void writeXMLTrailer(std::ofstream *out,
54  std::ofstream *out1 = nullptr,
55  std::ofstream *out2 = nullptr) const override;
56 
57  unsigned char getAnalogInputBias() const { return analogInputBias_; }
58  void setAnalogInputBias(unsigned char analogInputBias) { analogInputBias_ = analogInputBias; }
59 
60  unsigned char getAnalogOutputBias() const { return analogOutputBias_; }
61  void setAnalogOutputBias(unsigned char analogOutputBias) { analogOutputBias_ = analogOutputBias; }
62 
63  unsigned char getAnalogOutputGain() const { return analogOutputGain_; }
64  void setAnalogOutputGain(unsigned char analogOutputGain) { analogOutputGain_ = analogOutputGain; }
65 
66  // Added by Dario (Apr 2008)
67  bool getMode(void) const { return singlemode_; }
68  void setMode(bool mode) { singlemode_ = mode; }
69  PixelROCName const &getROCName() const { return rocid_; }
70  void setROCName(std::string rocname) {
71  PixelROCName tmp(rocname);
72  rocid_ = tmp;
73  }
75 
76  private:
79 
80  unsigned char analogInputBias_;
81  unsigned char analogOutputBias_;
82  unsigned char analogOutputGain_;
84  };
85 
86  std::ostream &operator<<(std::ostream &s, const PixelTBMSettings &mask);
87 } // namespace pos
88 /* @} */
89 #endif
unsigned char getAnalogOutputGain() const
void generateConfiguration(PixelFECConfigInterface *pixelFEC, PixelNameTranslation *trans, bool physics=false, bool doResets=true) const
This file contains the base class for "pixel configuration data" management.
unsigned char analogOutputBias_
bool getMode(void) const
unsigned char analogOutputGain_
void writeXMLTrailer(std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
void setROCName(std::string rocname)
unsigned char getAnalogOutputBias() const
unsigned char getAnalogInputBias() const
std::ostream & operator<<(std::ostream &s, const PixelCalibConfiguration &calib)
void writeXMLHeader(pos::PixelConfigKey key, int version, std::string path, std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
constexpr uint32_t mask
Definition: gpuClustering.h:24
This class provides a translation from the naming documents standard to specify the ROC to the corres...
void writeBinary(std::string filename) const
void writeASCII(std::string dir) const override
void setAnalogOutputGain(unsigned char analogOutputGain)
This file contains the base class for "pixel configuration data" management.
This class intends to define an abstract interface for the commands to talk to the PixelFEC...
void setTBMGenericValue(std::string, int)
PixelModuleName moduleId_
void writeXML(pos::PixelConfigKey key, int version, std::string path) const override
PixelROCName const & getROCName() const
This class implements..
void setAnalogInputBias(unsigned char analogInputBias)
void setAnalogOutputBias(unsigned char analogOutputBias)
unsigned char analogInputBias_
This is the documentation about PixelNameTranslation...
This class implements..
This class implements..
Definition: PixelROCName.h:23
void setMode(bool mode)
tmp
align.sh
Definition: createJobs.py:716
This is the documentation about PixelTBMSettings...