CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 <cstdlib>
17 
18 namespace pos {
19 
30  public:
32  PixelFEDTestDAC(std::vector<std::vector<std::string> > &);
33  std::string mode() const override { return mode_; }
34  std::vector<unsigned int> dacs() { return dacs_; }
36  int version,
38  std::ofstream *out,
39  std::ofstream *out1 = nullptr,
40  std::ofstream *out2 = nullptr) const override;
41  void writeXML(std::ofstream *out, std::ofstream *out1 = nullptr, std::ofstream *out2 = nullptr) const override;
42  void writeXMLTrailer(std::ofstream *out,
43  std::ofstream *out1 = nullptr,
44  std::ofstream *out2 = nullptr) const override;
45 
46  private:
47  unsigned int levelEncoder(int level);
48  std::vector<unsigned int> decimalToBaseX(unsigned int a, unsigned int x, unsigned int length);
49  std::vector<unsigned int> dacs_;
50  };
51 } // namespace pos
52 /* @} */
53 #endif
std::vector< unsigned int > dacs_
void writeXMLTrailer(std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
Base class for pixel calibration procedures.
std::vector< unsigned int > dacs()
tuple key
prepare the HTCondor submission files and eventually submit them
This class implements..
PixelFEDTestDAC(std::string filename)
std::string mode() const override
unsigned int levelEncoder(int level)
This class implements..
void writeXMLHeader(pos::PixelConfigKey key, int version, std::string path, std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
std::vector< unsigned int > decimalToBaseX(unsigned int a, unsigned int x, unsigned int length)
double a
Definition: hdecay.h:119
tuple filename
Definition: lut2db_cfg.py:20
tuple level
Definition: testEve_cfg.py:47
void writeXML(std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override