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  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
personalPlayback.level
level
Definition: personalPlayback.py:22
pos::PixelFEDTestDAC::writeXMLHeader
void writeXMLHeader(pos::PixelConfigKey key, int version, std::string path, std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
Definition: PixelFEDTestDAC.cc:432
pos::PixelCalibBase
Definition: PixelCalibBase.h:23
pos
Definition: PixelAliasList.h:18
pos::PixelFEDTestDAC::dacs_
std::vector< unsigned int > dacs_
Definition: PixelFEDTestDAC.h:49
pos::PixelFEDTestDAC::writeXMLTrailer
void writeXMLTrailer(std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
Definition: PixelFEDTestDAC.cc:491
pos::PixelFEDTestDAC::writeXML
void writeXML(std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
Definition: PixelFEDTestDAC.cc:479
PixelCalibBase.h
Base class for pixel calibration procedures.
pos::PixelFEDTestDAC::dacs
std::vector< unsigned int > dacs()
Definition: PixelFEDTestDAC.h:34
pos::PixelFEDTestDAC::mode
std::string mode() const override
Definition: PixelFEDTestDAC.h:33
corrVsCorr.filename
filename
Definition: corrVsCorr.py:123
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
a
double a
Definition: hdecay.h:119
pos::PixelConfigKey
This class implements..
Definition: PixelConfigKey.h:20
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
pos::PixelFEDTestDAC::decimalToBaseX
std::vector< unsigned int > decimalToBaseX(unsigned int a, unsigned int x, unsigned int length)
Definition: PixelFEDTestDAC.cc:412
PointingDoubleMultiSkim_cfg.out2
out2
Definition: PointingDoubleMultiSkim_cfg.py:85
PointingDoubleMultiSkim_cfg.out1
out1
Definition: PointingDoubleMultiSkim_cfg.py:57
pos::PixelCalibBase::mode_
std::string mode_
Definition: PixelCalibBase.h:44
pos::PixelFEDTestDAC::levelEncoder
unsigned int levelEncoder(int level)
Definition: PixelFEDTestDAC.cc:382
pos::PixelFEDTestDAC
This class implements..
Definition: PixelFEDTestDAC.h:29
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
crabWrapper.key
key
Definition: crabWrapper.py:19
BeamSplash_cfg.version
version
Definition: BeamSplash_cfg.py:45
pos::PixelFEDTestDAC::PixelFEDTestDAC
PixelFEDTestDAC(std::string filename)
Definition: PixelFEDTestDAC.cc:218