CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/OnlineDB/EcalCondDB/interface/CaliTempDat.h

Go to the documentation of this file.
00001 #ifndef CALITEMPDAT_H
00002 #define CALITEMPDAT_H
00003 
00004 #include <map>
00005 #include <stdexcept>
00006 
00007 #include "OnlineDB/EcalCondDB/interface/IDataItem.h"
00008 #include "OnlineDB/EcalCondDB/interface/CaliTag.h"
00009 #include "OnlineDB/EcalCondDB/interface/CaliIOV.h"
00010 #include "OnlineDB/EcalCondDB/interface/EcalLogicID.h"
00011 
00012 class CaliTempDat : public IDataItem {
00013  public:
00014   friend class EcalCondDBInterface;
00015   CaliTempDat();
00016   ~CaliTempDat();
00017   
00018   // User data methods
00019   inline std::string getTable() { return "CALI_TEMP_DAT"; }
00020 
00021   inline void setBeta(float c) { m_beta = c; }
00022   inline float getBeta() const { return m_beta; }
00023 
00024   inline void setR25(float c) { m_r25 = c; }
00025   inline float getR25() const { return m_r25; }
00026 
00027   inline void setOffset(float c) { m_offset = c; }
00028   inline float getOffset() const { return m_offset; }
00029 
00030   inline void setTaskStatus(bool s) { m_taskStatus = s; }
00031   inline bool getTaskStatus() const { return m_taskStatus; }
00032 
00033  private:
00034   void prepareWrite() 
00035     throw(std::runtime_error);
00036   
00037   void writeDB(const EcalLogicID* ecid, const CaliTempDat* item, CaliIOV* iov)
00038     throw(std::runtime_error);
00039   
00040   void fetchData(std::map< EcalLogicID, CaliTempDat >* fillVec, CaliIOV* iov)
00041     throw(std::runtime_error);
00042 
00043   void writeArrayDB(const std::map< EcalLogicID, CaliTempDat >* data, CaliIOV* iov)
00044     throw(std::runtime_error);
00045 
00046 
00047   
00048   // User data
00049   float m_beta;
00050   float m_r25;
00051   float m_offset;
00052   bool m_taskStatus;
00053   
00054   
00055 };
00056 
00057 #endif