Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:58:13

0001 #ifndef PixelTTCciConfig_h
0002 #define PixelTTCciConfig_h
0003 //
0004 // This class reads the TTC configuration file
0005 //
0006 //
0007 //
0008 
0009 #include <string>
0010 #include <vector>
0011 #include <map>
0012 #include <set>
0013 #include <fstream>
0014 #include <iostream>
0015 #include <sstream>
0016 #include "CalibFormats/SiPixelObjects/interface/PixelConfigBase.h"
0017 
0018 namespace pos {
0019   class PixelTTCciConfig : public PixelConfigBase {
0020   public:
0021     PixelTTCciConfig(std::string filename);
0022     PixelTTCciConfig(std::vector<std::vector<std::string> > &);
0023     //std::string getTTCConfigPath() {return ttcConfigPath_;}
0024     std::stringstream &getTTCConfigStream() { return ttcConfigStream_; }
0025 
0026     void writeASCII(std::string dir) const override;
0027     void writeXML(pos::PixelConfigKey key, int version, std::string path) const override { ; }
0028     void writeXMLHeader(pos::PixelConfigKey key,
0029                         int version,
0030                         std::string path,
0031                         std::ofstream *out,
0032                         std::ofstream *out1 = nullptr,
0033                         std::ofstream *out2 = nullptr) const override;
0034     void writeXML(std::ofstream *out, std::ofstream *out1 = nullptr, std::ofstream *out2 = nullptr) const override;
0035     void writeXMLTrailer(std::ofstream *out,
0036                          std::ofstream *out1 = nullptr,
0037                          std::ofstream *out2 = nullptr) const override;
0038 
0039   private:
0040     //std::string ttcConfigPath_;
0041     std::stringstream ttcConfigStream_;
0042   };
0043 }  // namespace pos
0044 #endif