00001 #ifndef DCUCAPSULETEMPDAT_H 00002 #define DCUCAPSULETEMPDAT_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 DCUCapsuleTempDat : public IDataItem { 00013 public: 00014 friend class EcalCondDBInterface; 00015 DCUCapsuleTempDat(); 00016 ~DCUCapsuleTempDat(); 00017 00018 // User data methods 00019 inline std::string getTable() { return "DCU_CAPSULE_TEMP_DAT"; } 00020 00021 inline void setCapsuleTemp(float temp) { m_capsuleTemp = temp; } 00022 inline float getCapsuleTemp() const { return m_capsuleTemp; } 00023 00024 private: 00025 void prepareWrite() 00026 throw(std::runtime_error); 00027 00028 void writeDB(const EcalLogicID* ecid, const DCUCapsuleTempDat* item, DCUIOV* iov) 00029 throw(std::runtime_error); 00030 00031 void writeArrayDB(const std::map< EcalLogicID, DCUCapsuleTempDat>* data, DCUIOV* iov) 00032 throw(std::runtime_error); 00033 00034 void fetchData(std::map< EcalLogicID, DCUCapsuleTempDat >* fillVec, DCUIOV* iov) 00035 throw(std::runtime_error); 00036 00037 // User data 00038 float m_capsuleTemp; 00039 00040 }; 00041 00042 #endif