CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  friend std::ostream& operator<<(std::ostream& s, const PixelTBMSettings& mask);
63 
64  unsigned char getAnalogInputBias() {return analogInputBias_;}
65  void setAnalogInputBias(unsigned char analogInputBias) {analogInputBias_=analogInputBias;}
66 
67  unsigned char getAnalogOutputBias() {return analogOutputBias_;}
68  void setAnalogOutputBias(unsigned char analogOutputBias) {analogOutputBias_=analogOutputBias;}
69 
70  unsigned char getAnalogOutputGain() {return analogOutputGain_;}
71  void setAnalogOutputGain(unsigned char analogOutputGain) {analogOutputGain_=analogOutputGain;}
72 
73  // Added by Dario (Apr 2008)
74  bool getMode(void) {return singlemode_;}
75  void setMode(bool mode) {singlemode_ = mode;}
76  void setROCName(std::string rocname){
77  PixelROCName tmp(rocname);
78  rocid_=tmp;
79  }
80  void setTBMGenericValue(std::string, int) ;
81 
82  private:
83 
86 
87  unsigned char analogInputBias_;
88  unsigned char analogOutputBias_;
89  unsigned char analogOutputGain_;
91 
92  };
93 }
94 /* @} */
95 #endif
void writeASCII(std::string dir) const
This file contains the base class for &quot;pixel configuration data&quot; management.
unsigned char analogOutputBias_
unsigned char analogOutputGain_
void writeXML(pos::PixelConfigKey key, int version, std::string path) const
#define NULL
Definition: scimark2.h:8
void setROCName(std::string rocname)
unsigned char getAnalogOutputBias()
unsigned char getAnalogInputBias()
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 &quot;pixel configuration data&quot; 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
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
This class implements..
void setAnalogInputBias(unsigned char analogInputBias)
friend std::ostream & operator<<(std::ostream &s, const PixelTBMSettings &mask)
unsigned char getAnalogOutputGain()
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
tuple filename
Definition: lut2db_cfg.py:20
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...