00001 #ifndef MODCCSFEDAT_H 00002 #define MODCCSFEDAT_H 00003 00004 #include <map> 00005 #include <stdexcept> 00006 00007 #include "OnlineDB/EcalCondDB/interface/IDataItem.h" 00008 #include "OnlineDB/EcalCondDB/interface/MODRunIOV.h" 00009 #include "OnlineDB/EcalCondDB/interface/EcalLogicID.h" 00010 00011 class MODCCSFEDat : public IDataItem { 00012 public: 00013 friend class EcalCondDBInterface; 00014 MODCCSFEDat(); 00015 ~MODCCSFEDat(); 00016 00017 // User data methods 00018 inline std::string getTable() { return "OD_CCS_FE_DAT"; } 00019 00020 inline void setWord(int x) { m_word = x; } 00021 inline int getWord() const { return m_word; } 00022 00023 private: 00024 void prepareWrite() 00025 throw(std::runtime_error); 00026 00027 void writeDB(const EcalLogicID* ecid, const MODCCSFEDat* item, MODRunIOV* iov ) 00028 throw(std::runtime_error); 00029 00030 void writeArrayDB(const std::map< EcalLogicID, MODCCSFEDat >* data, MODRunIOV* iov) 00031 throw(std::runtime_error); 00032 00033 00034 00035 void fetchData(std::map< EcalLogicID, MODCCSFEDat >* fillMap, MODRunIOV* iov) 00036 throw(std::runtime_error); 00037 00038 // User data 00039 int m_word; 00040 00041 }; 00042 00043 #endif