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 
29  public:
30 
31  PixelTBMSettings(std::vector < std::vector< std::string> > &tableMat);
33  // modified by MR on 29-04-2008 16:43:30
35 
36  ~PixelTBMSettings() override{}
37 
38  //Generate the DAC settings
40  PixelNameTranslation* trans,
41  bool physics=false, bool doResets=true) const;
42 
43  void writeBinary(std::string filename) const;
44 
45  void writeASCII(std::string dir) const override;
46  void writeXML( pos::PixelConfigKey key, int version, std::string path) const override {;}
48  int version,
50  std::ofstream *out,
51  std::ofstream *out1 = nullptr,
52  std::ofstream *out2 = nullptr
53  ) const override ;
54  void writeXML( std::ofstream *out,
55  std::ofstream *out1 = nullptr ,
56  std::ofstream *out2 = nullptr ) const override ;
57  void writeXMLTrailer( std::ofstream *out,
58  std::ofstream *out1 = nullptr,
59  std::ofstream *out2 = nullptr
60  ) const override ;
61 
62  unsigned char getAnalogInputBias() const {return analogInputBias_;}
63  void setAnalogInputBias(unsigned char analogInputBias) {analogInputBias_=analogInputBias;}
64 
65  unsigned char getAnalogOutputBias() const {return analogOutputBias_;}
66  void setAnalogOutputBias(unsigned char analogOutputBias) {analogOutputBias_=analogOutputBias;}
67 
68  unsigned char getAnalogOutputGain() const {return analogOutputGain_;}
69  void setAnalogOutputGain(unsigned char analogOutputGain) {analogOutputGain_=analogOutputGain;}
70 
71  // Added by Dario (Apr 2008)
72  bool getMode(void) const {return singlemode_;}
73  void setMode(bool mode) {singlemode_ = mode;}
74  PixelROCName const& getROCName() const { return rocid_;}
75  void setROCName(std::string rocname){
76  PixelROCName tmp(rocname);
77  rocid_=tmp;
78  }
79  void setTBMGenericValue(std::string, int) ;
80 
81  private:
82 
85 
86  unsigned char analogInputBias_;
87  unsigned char analogOutputBias_;
88  unsigned char analogOutputGain_;
90 
91  };
92 
93  std::ostream& operator<<(std::ostream& s, const PixelTBMSettings& mask);
94 }
95 /* @} */
96 #endif
This file contains the base class for "pixel configuration data" management.
unsigned char getAnalogInputBias() const
unsigned char analogOutputBias_
unsigned char getAnalogOutputBias() const
unsigned char analogOutputGain_
bool getMode(void) const
void writeXML(pos::PixelConfigKey key, int version, std::string path) const override
void setROCName(std::string rocname)
std::ostream & operator<<(std::ostream &s, const PixelCalibConfiguration &calib)
This class provides a translation from the naming documents standard to specify the ROC to the corres...
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 writeBinary(std::string filename) const
This class implements..
void setAnalogInputBias(unsigned char analogInputBias)
void writeXMLHeader(pos::PixelConfigKey key, int version, std::string path, std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
void writeXMLTrailer(std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
void setAnalogOutputBias(unsigned char analogOutputBias)
unsigned char analogInputBias_
void writeASCII(std::string dir) const override
This is the documentation about PixelNameTranslation...
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
This class implements..
This class implements..
Definition: PixelROCName.h:23
unsigned char getAnalogOutputGain() const
PixelROCName const & getROCName() const
void setMode(bool mode)
dbl *** dir
Definition: mlp_gen.cc:35
void generateConfiguration(PixelFECConfigInterface *pixelFEC, PixelNameTranslation *trans, bool physics=false, bool doResets=true) const
This is the documentation about PixelTBMSettings...