CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PixelFEDTestDAC.h
Go to the documentation of this file.
1 #ifndef _PixelFEDTestDAC_h_
2 #define _PixelFEDTestDAC_h_
3 
11 #include <iostream>
12 #include <string>
13 #include <vector>
14 #include <fstream>
15 #include <stdlib.h>
17 
18 namespace pos{
19 
30 
31  public:
32  PixelFEDTestDAC(std::string filename);
33  PixelFEDTestDAC(std::vector< std::vector<std::string> > &);
34  std::string mode() {return mode_;}
35  std::vector<unsigned int> dacs() {return dacs_;}
36  virtual void writeXMLHeader( pos::PixelConfigKey key,
37  int version,
38  std::string path,
39  std::ofstream *out,
40  std::ofstream *out1 = NULL,
41  std::ofstream *out2 = NULL
42  ) const ;
43  virtual void writeXML( std::ofstream *out,
44  std::ofstream *out1 = NULL ,
45  std::ofstream *out2 = NULL ) const ;
46  virtual void writeXMLTrailer( std::ofstream *out,
47  std::ofstream *out1 = NULL,
48  std::ofstream *out2 = NULL
49  ) const ;
50 
51  private:
52 
53  unsigned int levelEncoder(int level);
54  std::vector<unsigned int> decimalToBaseX(unsigned int a, unsigned int x, unsigned int length);
55  std::vector<unsigned int> dacs_;
56 
57  };
58 }
59 /* @} */
60 #endif
61 
62 
63 
64 
65 
66 
std::vector< unsigned int > dacs_
#define NULL
Definition: scimark2.h:8
list path
Definition: scaleCards.py:51
Base class for pixel calibration procedures.
std::vector< unsigned int > dacs()
virtual void writeXMLTrailer(std::ofstream *out, std::ofstream *out1=NULL, std::ofstream *out2=NULL) const
This class implements..
tuple out
Definition: dbtoconf.py:99
PixelFEDTestDAC(std::string filename)
unsigned int levelEncoder(int level)
This class implements..
virtual void writeXML(std::ofstream *out, std::ofstream *out1=NULL, std::ofstream *out2=NULL) const
std::vector< unsigned int > decimalToBaseX(unsigned int a, unsigned int x, unsigned int length)
list key
Definition: combine.py:13
double a
Definition: hdecay.h:121
tuple filename
Definition: lut2db_cfg.py:20
virtual void writeXMLHeader(pos::PixelConfigKey key, int version, std::string path, std::ofstream *out, std::ofstream *out1=NULL, std::ofstream *out2=NULL) const
tuple level
Definition: testEve_cfg.py:34
x
Definition: VDTMath.h:216