Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef PixelMaxVsf_h
0002 #define PixelMaxVsf_h
0003 /**
0004 * \file CalibFormats/SiPixelObjects/interface/PixelMaxVsf.h
0005 * \brief This class specifies the maximum Vsf setting that should be used
0006 *        for each ROC.
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   /*!  \ingroup ConfigurationObjects "Configuration Objects"
0017 *    
0018 *  @{
0019 *
0020 *  \class PixelMaxVsf PixelMaxVsf.h
0021 *  \brief This is the documentation about PixelMaxVsf...
0022 *
0023 *   This class specifies the maximum Vsf setting that should be used
0024 *   for each ROC.
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 }  // namespace pos
0053 /* @} */
0054 #endif