CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_4/src/OnlineDB/EcalCondDB/interface/FEConfigFgrEEStripDat.h

Go to the documentation of this file.
00001 #ifndef FECONFFGREESTRIPDAT_H
00002 #define FECONFFGREESTRIPDAT_H
00003 
00004 #include <vector>
00005 #include <stdexcept>
00006 
00007 #include "OnlineDB/EcalCondDB/interface/IDataItem.h"
00008 #include "OnlineDB/EcalCondDB/interface/FEConfigFgrInfo.h"
00009 #include "OnlineDB/EcalCondDB/interface/EcalLogicID.h"
00010 
00011 class FEConfigFgrEEStripDat : public IDataItem {
00012  public:
00013   friend class EcalCondDBInterface; // XXX temp should not need
00014   FEConfigFgrEEStripDat();
00015   ~FEConfigFgrEEStripDat();
00016 
00017   // User data methods
00018   inline std::string getTable() { return "FE_CONFIG_FGREEST_DAT"; }
00019 
00020   inline void setThreshold(unsigned int mean) { m_thresh = mean; }
00021   inline unsigned int getThreshold() const { return m_thresh; }
00022   inline void setLutFg(unsigned int mean) { m_lut_fg = mean; }
00023   inline unsigned int getLutFg() const { return m_lut_fg; }
00024   inline void setLUTFgr(unsigned int mean) { m_lut_fg = mean; }
00025   inline unsigned int getLUTFgr() const { return m_lut_fg; }
00026   inline void setLutFgr(unsigned int mean) { m_lut_fg = mean; }
00027   inline unsigned int getLutFgr() const { return m_lut_fg; }
00028 
00029  private:
00030   void prepareWrite() 
00031     throw(std::runtime_error);
00032 
00033   void writeDB(const EcalLogicID* ecid, const FEConfigFgrEEStripDat* item, FEConfigFgrInfo* iconf)
00034     throw(std::runtime_error);
00035 
00036 
00037   void writeArrayDB(const std::map< EcalLogicID, FEConfigFgrEEStripDat>* data, FEConfigFgrInfo* iconf)
00038   throw(std::runtime_error);
00039 
00040 
00041   void fetchData(std::map< EcalLogicID, FEConfigFgrEEStripDat >* fillMap, FEConfigFgrInfo* iconf)
00042      throw(std::runtime_error);
00043 
00044   // User data
00045   unsigned int m_thresh;
00046   unsigned int m_lut_fg;
00047 
00048 };
00049 
00050 #endif