Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:47:21

0001 #ifndef PixelCalibBase_h
0002 #define PixelCalibBase_h
0003 /*! \file CalibFormats/SiPixelObjects/interface/PixelCalibBase.h
0004 *   \brief Base class for pixel calibration procedures
0005 *
0006 *   A longer explanation will be placed here later
0007 */
0008 
0009 #include "CalibFormats/SiPixelObjects/interface/PixelConfigKey.h"
0010 #include <string>
0011 #include <fstream>
0012 
0013 namespace pos {
0014   /*!  \defgroup CalibrationObjects "Calibration Objects"
0015 *    \brief Base class for pixel calibration procedures
0016 *
0017 *  @{
0018 *
0019 *   \class PixelCalibBase PixelCalibBase.h "interface/PixelCalibBase.h"
0020 *
0021 *   A longer explanation will be placed here later
0022 */
0023   class PixelCalibBase {
0024   public:
0025     PixelCalibBase();
0026     virtual ~PixelCalibBase();
0027     virtual std::string mode() const { return mode_; }
0028     virtual 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 {
0034       ;
0035     }
0036     virtual void writeXML(std::ofstream *out, std::ofstream *out1 = nullptr, std::ofstream *out2 = nullptr) const { ; }
0037     virtual void writeXMLTrailer(std::ofstream *out,
0038                                  std::ofstream *out1 = nullptr,
0039                                  std::ofstream *out2 = nullptr) const {
0040       ;
0041     }
0042 
0043   protected:
0044     std::string mode_;
0045   };
0046 }  // namespace pos
0047 /* @} */
0048 
0049 #endif