Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:53

0001 #ifndef FECONFFGREESTRIPDAT_H
0002 #define FECONFFGREESTRIPDAT_H
0003 
0004 #include <vector>
0005 #include <stdexcept>
0006 
0007 #include "OnlineDB/EcalCondDB/interface/IDataItem.h"
0008 #include "OnlineDB/EcalCondDB/interface/FEConfigFgrInfo.h"
0009 #include "OnlineDB/EcalCondDB/interface/EcalLogicID.h"
0010 
0011 class FEConfigFgrEEStripDat : public IDataItem {
0012 public:
0013   friend class EcalCondDBInterface;  // XXX temp should not need
0014   FEConfigFgrEEStripDat();
0015   ~FEConfigFgrEEStripDat() override;
0016 
0017   // User data methods
0018   inline std::string getTable() override { return "FE_CONFIG_FGREEST_DAT"; }
0019 
0020   inline void setThreshold(unsigned int mean) { m_thresh = mean; }
0021   inline unsigned int getThreshold() const { return m_thresh; }
0022   inline void setLutFg(unsigned int mean) { m_lut_fg = mean; }
0023   inline unsigned int getLutFg() const { return m_lut_fg; }
0024   inline void setLUTFgr(unsigned int mean) { m_lut_fg = mean; }
0025   inline unsigned int getLUTFgr() const { return m_lut_fg; }
0026   inline void setLutFgr(unsigned int mean) { m_lut_fg = mean; }
0027   inline unsigned int getLutFgr() const { return m_lut_fg; }
0028 
0029 private:
0030   void prepareWrite() noexcept(false) override;
0031 
0032   void writeDB(const EcalLogicID* ecid, const FEConfigFgrEEStripDat* item, FEConfigFgrInfo* iconf) noexcept(false);
0033 
0034   void writeArrayDB(const std::map<EcalLogicID, FEConfigFgrEEStripDat>* data, FEConfigFgrInfo* iconf) noexcept(false);
0035 
0036   void fetchData(std::map<EcalLogicID, FEConfigFgrEEStripDat>* fillMap, FEConfigFgrInfo* iconf) noexcept(false);
0037 
0038   // User data
0039   unsigned int m_thresh;
0040   unsigned int m_lut_fg;
0041 };
0042 
0043 #endif