CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/OnlineDB/EcalCondDB/interface/ODGolBiasCurrentDat.h

Go to the documentation of this file.
00001 #ifndef ODGOLBIASCURRENTDAT_H
00002 #define ODGOLBIASCURRENTDAT_H
00003 
00004 #include <vector>
00005 #include <stdexcept>
00006 
00007 #include "OnlineDB/EcalCondDB/interface/IDataItem.h"
00008 #include "OnlineDB/EcalCondDB/interface/EcalLogicID.h"
00009 #include "OnlineDB/EcalCondDB/interface/ODGolBiasCurrentInfo.h"
00010 
00011 class ODGolBiasCurrentDat : public IODConfig {
00012  public:
00013   friend class EcalCondDBInterface;
00014   ODGolBiasCurrentDat();
00015   ~ODGolBiasCurrentDat();
00016 
00017   // User data methods
00018   inline std::string getTable() { return "GOL_BIAS_CURRENT_DAT"; }
00019 
00020   inline void setId(int dac) { m_ID = dac; }
00021   inline int getId() const { return m_ID; }
00022 
00023   inline void setGolId(int dac) { m_gol = dac; }
00024   inline int getGolId() const { return m_gol; }
00025 
00026   inline void setFedId(int dac) { m_fed = dac; }
00027   inline int getFedId() const { return m_fed; }
00028 
00029   inline void setTTId(int dac) { m_tt = dac; }
00030   inline int getTTId() const { return m_tt; }
00031 
00032   inline void setCurrent(int dac) { m_cur = dac; }
00033   inline int getCurrent() const { return m_cur; }
00034 
00035   inline void setPLLCurrent(int x) { m_pll_cur = x; }
00036   inline int getPLLCurrent() const { return m_pll_cur; }
00037 
00038   inline void setStatus(int dac) { m_sta = dac; }
00039   inline int getStatus() const { return m_sta; }
00040 
00041 
00042  private:
00043   void prepareWrite() 
00044     throw(std::runtime_error);
00045 
00046   void writeDB(const ODGolBiasCurrentDat* item, ODGolBiasCurrentInfo* iov )
00047     throw(std::runtime_error);
00048 
00049   void writeArrayDB(const std::vector< ODGolBiasCurrentDat > data, ODGolBiasCurrentInfo* iov)
00050     throw(std::runtime_error);
00051 
00052 
00053   void fetchData(std::vector< ODGolBiasCurrentDat >* fillMap, ODGolBiasCurrentInfo* iov)
00054      throw(std::runtime_error);
00055 
00056   // User data
00057   int m_gol;
00058   int m_fed;
00059   int m_tt;
00060   int m_cur;
00061   int m_pll_cur;
00062   int m_sta;
00063   int m_ID;
00064  
00065 };
00066 
00067 #endif