Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef PixelTrimACommon_h
0002 #define PixelTrimACommon_h
0003 /**
0004 * \file CalibFormats/SiPixelObjects/interface/PixelTrimCommon.h
0005 * \brief This class implements..
0006 *
0007 *   A longer explanation will be placed here later
0008 *
0009 */
0010 
0011 #include <string>
0012 #include <vector>
0013 #include "CalibFormats/SiPixelObjects/interface/PixelTrimBase.h"
0014 #include "CalibFormats/SiPixelObjects/interface/PixelMaskBase.h"
0015 #include "CalibFormats/SiPixelObjects/interface/PixelROCTrimBits.h"
0016 #include "CalibFormats/SiPixelObjects/interface/PixelNameTranslation.h"
0017 
0018 namespace pos {
0019   /*!  \ingroup TrimObjects "Trim Objects"
0020 *    \ingroup ConfigurationObjects "Configuration Objects"
0021 *    
0022 *  @{
0023 *
0024 *  \class PixelTrimCommon PixelTrimCommon.h
0025 *  \brief This class implements..
0026 *
0027 *   A longer explanation will be placed here later
0028 *
0029 */
0030   class PixelTrimCommon : public PixelTrimBase {
0031   public:
0032     PixelTrimCommon(std::string filename);
0033 
0034     //Build the commands needed to configure ROCs
0035     //on control link
0036 
0037     void generateConfiguration(PixelFECConfigInterface* pixelFEC,
0038                                PixelNameTranslation* trans,
0039                                const PixelMaskBase& pixelMask) const override;
0040 
0041     void writeBinary(std::string filename) const override;
0042 
0043     void writeASCII(std::string filename) const override;
0044     void writeXML(pos::PixelConfigKey key, int version, std::string path) const override { ; }
0045     using PixelTrimBase::writeXML;
0046     using PixelTrimBase::writeXMLHeader;
0047     using PixelTrimBase::writeXMLTrailer;
0048     void writeXMLHeader(pos::PixelConfigKey key, int version, std::string path, std::ofstream* out) const override { ; }
0049     void writeXML(std::ofstream* out) const override { ; }
0050     void writeXMLTrailer(std::ofstream* out) const override { ; }
0051 
0052   private:
0053     std::vector<PixelROCName> rocname_;
0054     std::vector<unsigned int> trimbits_;
0055   };
0056 }  // namespace pos
0057 #endif