File indexing completed on 2024-04-06 11:58:13
0001 #ifndef PixelMaxVsf_h
0002 #define PixelMaxVsf_h
0003
0004
0005
0006
0007
0008
0009 #include <map>
0010 #include <string>
0011 #include <vector>
0012 #include "CalibFormats/SiPixelObjects/interface/PixelConfigBase.h"
0013 #include "CalibFormats/SiPixelObjects/interface/PixelROCName.h"
0014
0015 namespace pos {
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026 class PixelMaxVsf : public PixelConfigBase {
0027 public:
0028 PixelMaxVsf(std::vector<std::vector<std::string> > &tableMat);
0029 PixelMaxVsf(std::string filename);
0030
0031 void writeASCII(std::string dir = "") const override;
0032 void writeXML(pos::PixelConfigKey key, int version, std::string path) const override { ; }
0033 void writeXMLHeader(pos::PixelConfigKey key,
0034 int version,
0035 std::string path,
0036 std::ofstream *out,
0037 std::ofstream *out1 = nullptr,
0038 std::ofstream *out2 = nullptr) const override;
0039 void writeXML(std::ofstream *out, std::ofstream *out1 = nullptr, std::ofstream *out2 = nullptr) const override;
0040 void writeXMLTrailer(std::ofstream *out,
0041 std::ofstream *out1 = nullptr,
0042 std::ofstream *out2 = nullptr) const override;
0043
0044 bool getVsf(PixelROCName roc, unsigned int &Vsf) const;
0045
0046 void setVsf(PixelROCName roc, unsigned int Vsf);
0047
0048 private:
0049 std::map<PixelROCName, unsigned int> rocs_;
0050 };
0051
0052 }
0053
0054 #endif