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