CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/OnlineDB/EcalCondDB/interface/RunPTMTempDat.h

Go to the documentation of this file.
00001 #ifndef RUNPTMTEMPDAT_H
00002 #define RUNPTMTEMPDAT_H
00003 
00004 #include <vector>
00005 #include <stdexcept>
00006 
00007 #include "OnlineDB/EcalCondDB/interface/IDataItem.h"
00008 #include "OnlineDB/EcalCondDB/interface/RunIOV.h"
00009 #include "OnlineDB/EcalCondDB/interface/EcalLogicID.h"
00010 
00011 class RunPTMTempDat : public IDataItem {
00012  public:
00013   friend class EcalCondDBInterface;
00014   RunPTMTempDat();
00015   ~RunPTMTempDat();
00016 
00017   // User data methods
00018   inline std::string getTable() { return "RUN_PTM_TEMP_DAT"; }
00019   inline void setTemperature(float t) { m_temperature = t; }
00020   inline float getTemperature() const { return m_temperature; }
00021 
00022  private:
00023   void prepareWrite() 
00024     throw(std::runtime_error);
00025 
00026   void writeDB(const EcalLogicID* ecid, const RunPTMTempDat* item, RunIOV* iov )
00027     throw(std::runtime_error);
00028 
00029   void fetchData(std::map< EcalLogicID, RunPTMTempDat >* fillMap, RunIOV* iov)
00030      throw(std::runtime_error);
00031 
00032   // User data
00033   float m_temperature;
00034 };
00035 
00036 #endif