CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2/src/OnlineDB/EcalCondDB/interface/DCULVRBTempsDat.h

Go to the documentation of this file.
00001 #ifndef DCULVRBTEMPSDAT_H
00002 #define DCULVRBTEMPSDAT_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 DCULVRBTempsDat : public IDataItem {
00013  public:
00014   friend class EcalCondDBInterface;
00015   DCULVRBTempsDat();
00016   ~DCULVRBTempsDat();
00017 
00018   // User data methods
00019   inline std::string getTable() { return "DCU_LVRB_TEMPS_DAT"; }
00020 
00021   inline void setT1(float temp) { m_t1 = temp; }
00022   inline float getT1() const { return m_t1; }
00023 
00024   inline void setT2(float temp) { m_t2 = temp; }
00025   inline float getT2() const { return m_t2; }
00026 
00027   inline void setT3(float temp) { m_t3 = temp; }
00028   inline float getT3() const { return m_t3; }
00029 
00030   
00031  private:
00032   void prepareWrite() 
00033     throw(std::runtime_error);
00034 
00035   void writeDB(const EcalLogicID* ecid, const DCULVRBTempsDat* item, DCUIOV* iov)
00036     throw(std::runtime_error);
00037 
00038   void writeArrayDB(const std::map< EcalLogicID, DCULVRBTempsDat>* data, DCUIOV* iov)
00039     throw(std::runtime_error);
00040 
00041   void fetchData(std::map< EcalLogicID, DCULVRBTempsDat >* fillVec, DCUIOV* iov)
00042      throw(std::runtime_error);
00043 
00044   // User data
00045   float m_t1;
00046   float m_t2;
00047   float m_t3;  
00048 };
00049 
00050 #endif