CMS 3D CMS Logo

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 <cstdlib>
17 
18 namespace pos{
19 
30 
31  public:
33  PixelFEDTestDAC(std::vector< std::vector<std::string> > &);
34  std::string mode() const override {return mode_;}
35  std::vector<unsigned int> dacs() {return dacs_;}
37  int version,
39  std::ofstream *out,
40  std::ofstream *out1 = nullptr,
41  std::ofstream *out2 = nullptr
42  ) const override ;
43  void writeXML( std::ofstream *out,
44  std::ofstream *out1 = nullptr ,
45  std::ofstream *out2 = nullptr ) const override ;
46  void writeXMLTrailer( std::ofstream *out,
47  std::ofstream *out1 = nullptr,
48  std::ofstream *out2 = nullptr
49  ) const override ;
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_
void writeXMLHeader(pos::PixelConfigKey key, int version, std::string path, std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
Base class for pixel calibration procedures.
std::vector< unsigned int > dacs()
This class implements..
void writeXMLTrailer(std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
PixelFEDTestDAC(std::string filename)
unsigned int levelEncoder(int level)
void writeXML(std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
This class implements..
std::vector< unsigned int > decimalToBaseX(unsigned int a, unsigned int x, unsigned int length)
double a
Definition: hdecay.h:121
std::string mode() const override