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  virtual ~PixelTBMSettings(){}
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;
47  virtual void writeXMLHeader( pos::PixelConfigKey key,
48  int version,
50  std::ofstream *out,
51  std::ofstream *out1 = NULL,
52  std::ofstream *out2 = NULL
53  ) const ;
54  virtual void writeXML( std::ofstream *out,
55  std::ofstream *out1 = NULL ,
56  std::ofstream *out2 = NULL ) const ;
57  virtual void writeXMLTrailer( std::ofstream *out,
58  std::ofstream *out1 = NULL,
59  std::ofstream *out2 = NULL
60  ) const ;
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
void writeASCII(std::string dir) const
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
#define NULL
Definition: scimark2.h:8
void setROCName(std::string rocname)
std::ostream & operator<<(std::ostream &s, const PixelCalibConfiguration &calib)
virtual void writeXMLTrailer(std::ofstream *out, std::ofstream *out1=NULL, std::ofstream *out2=NULL) const
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 setAnalogOutputBias(unsigned char analogOutputBias)
unsigned char analogInputBias_
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
virtual void writeXMLHeader(pos::PixelConfigKey key, int version, std::string path, std::ofstream *out, std::ofstream *out1=NULL, std::ofstream *out2=NULL) const
void generateConfiguration(PixelFECConfigInterface *pixelFEC, PixelNameTranslation *trans, bool physics=false, bool doResets=true) const
This is the documentation about PixelTBMSettings...