![]() |
![]() |
00001 #ifndef _PixelFEDTestDAC_h_ 00002 #define _PixelFEDTestDAC_h_ 00003 00011 #include <iostream> 00012 #include <string> 00013 #include <vector> 00014 #include <fstream> 00015 #include <stdlib.h> 00016 #include "CalibFormats/SiPixelObjects/interface/PixelCalibBase.h" 00017 00018 namespace pos{ 00019 00029 class PixelFEDTestDAC : public PixelCalibBase{ 00030 00031 public: 00032 PixelFEDTestDAC(std::string filename); 00033 PixelFEDTestDAC(std::vector< std::vector<std::string> > &); 00034 std::string mode() {return mode_;} 00035 std::vector<unsigned int> dacs() {return dacs_;} 00036 00037 private: 00038 00039 unsigned int levelEncoder(int level); 00040 std::vector<unsigned int> decimalToBaseX(unsigned int a, unsigned int x, unsigned int length); 00041 std::vector<unsigned int> dacs_; 00042 00043 }; 00044 } 00045 /* @} */ 00046 #endif 00047 00048 00049 00050 00051 00052