CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_0/src/OnlineDB/EcalCondDB/interface/FEConfigBadTTDat.h

Go to the documentation of this file.
00001 #ifndef FECONFIGBADTTDAT_H
00002 #define FECONFIGBADTTDAT_H
00003 
00004 #include <vector>
00005 #include <stdexcept>
00006 
00007 #include "OnlineDB/EcalCondDB/interface/IODConfig.h"
00008 #include "OnlineDB/EcalCondDB/interface/FEConfigBadTTInfo.h"
00009 
00010 class FEConfigBadTTDat : public IODConfig {
00011  public:
00012   friend class EcalCondDBInterface;
00013   FEConfigBadTTDat();
00014   ~FEConfigBadTTDat();
00015 
00016   // User data methods
00017   inline std::string getTable() { return "FE_CONFIG_BadTT_DAT"; }
00018 
00019   inline void setId(int dac) { m_ID = dac; }
00020   inline int getId() const { return m_ID; }
00021 
00022   inline void setFedId(int x) { m_fed = x; }
00023   inline int getFedId() const { return m_fed; }
00024 
00025   inline void setTCCId(int dac) { m_tcc = dac; }
00026   inline int getTCCId() const { return m_tcc; }
00027 
00028   inline void setTTId(int dac) { m_tt = dac; }
00029   inline int getTTId() const { return m_tt; }
00030 
00031 
00032   inline void setStatus(int dac) { m_t1 = dac; }
00033   inline int getStatus() const { return m_t1; }
00034 
00035  private:
00036   void prepareWrite() 
00037     throw(std::runtime_error);
00038 
00039   void writeDB(const FEConfigBadTTDat* item, FEConfigBadTTInfo* iov )
00040     throw(std::runtime_error);
00041 
00042   void writeArrayDB(const std::vector< FEConfigBadTTDat > data, FEConfigBadTTInfo* iov)
00043     throw(std::runtime_error);
00044 
00045 
00046   void fetchData(std::vector< FEConfigBadTTDat >* fillMap, FEConfigBadTTInfo* iov)
00047      throw(std::runtime_error);
00048 
00049   // User data
00050   int m_tcc;
00051   int m_fed;
00052   int m_tt;
00053   int m_t1;
00054   int m_ID;
00055  
00056 };
00057 
00058 #endif