Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 10:41:58

0001 #ifndef PixelLTCConfig_h
0002 #define PixelLTCConfig_h
0003 /**
0004 *   \file CalibFormats/SiPixelObjects/interface/PixelLTCConfig..h
0005 *   \brief This class reads the LTC configuration file
0006 *
0007 *   A longer explanation will be placed here later
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   /*!  \ingroup ConfigurationObjects "Configuration Objects"
0021 *    
0022 *  @{
0023 *
0024 *  \class PixelLTCConfig PixelLTCConfig.h
0025 *  \brief This is the documentation about PixelLTCConfig...
0026 *
0027 *  This class reads the LTC configuration file
0028 */
0029   class PixelLTCConfig : public PixelConfigBase {
0030   public:
0031     PixelLTCConfig(std::vector<std::vector<std::string> > &tableMat);
0032     PixelLTCConfig(std::string filename);
0033     //std::string getLTCConfigPath() {return ltcConfigPath_;}
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     //std::string ltcConfigPath_;
0051     std::stringstream ltcConfigStream_;
0052   };
0053 }  // namespace pos
0054 /* @} */
0055 #endif