File indexing completed on 2023-03-17 10:41:58
0001 #ifndef PixelLTCConfig_h
0002 #define PixelLTCConfig_h
0003
0004
0005
0006
0007
0008
0009
0010 #include <string>
0011 #include <map>
0012 #include <set>
0013 #include <fstream>
0014 #include <iostream>
0015 #include <sstream>
0016 #include <vector>
0017 #include "CalibFormats/SiPixelObjects/interface/PixelConfigBase.h"
0018
0019 namespace pos {
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029 class PixelLTCConfig : public PixelConfigBase {
0030 public:
0031 PixelLTCConfig(std::vector<std::vector<std::string> > &tableMat);
0032 PixelLTCConfig(std::string filename);
0033
0034 std::stringstream &getLTCConfigStream() { return ltcConfigStream_; }
0035
0036 void writeASCII(std::string dir) const override;
0037 void writeXML(pos::PixelConfigKey key, int version, std::string path) const override { ; }
0038 void writeXMLHeader(pos::PixelConfigKey key,
0039 int version,
0040 std::string path,
0041 std::ofstream *out,
0042 std::ofstream *out1 = nullptr,
0043 std::ofstream *out2 = nullptr) const override;
0044 void writeXML(std::ofstream *out, std::ofstream *out1 = nullptr, std::ofstream *out2 = nullptr) const override;
0045 void writeXMLTrailer(std::ofstream *out,
0046 std::ofstream *out1 = nullptr,
0047 std::ofstream *out2 = nullptr) const override;
0048
0049 private:
0050
0051 std::stringstream ltcConfigStream_;
0052 };
0053 }
0054
0055 #endif