CMS 3D CMS Logo

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

Go to the documentation of this file.
00001 #ifndef CALIHVSCANRATIODAT_H
00002 #define CALIHVSCANRATIODAT_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 CaliHVScanRatioDat : public IDataItem {
00013  public:
00014   friend class EcalCondDBInterface;
00015   CaliHVScanRatioDat();
00016   ~CaliHVScanRatioDat();
00017   
00018   // User data methods
00019   inline std::string getTable() { return "CALI_HV_SCAN_RATIO_DAT"; }
00020 
00021   inline void setHVRatio(float c) { m_hvratio = c; }
00022   inline float getHVRatio() const { return m_hvratio; }
00023 
00024   inline void setHVRatioRMS(float c) { m_hvratioRMS = c; }
00025   inline float getHVRatioRMS() const { return m_hvratioRMS; }
00026 
00027   inline void setTaskStatus(bool s) { m_taskStatus = s; }
00028   inline bool getTaskStatus() const { return m_taskStatus; }
00029 
00030  private:
00031   void prepareWrite() 
00032     throw(std::runtime_error);
00033   
00034   void writeDB(const EcalLogicID* ecid, const CaliHVScanRatioDat* item, CaliIOV* iov)
00035     throw(std::runtime_error);
00036   
00037   void fetchData(std::map< EcalLogicID, CaliHVScanRatioDat >* fillVec, CaliIOV* iov)
00038     throw(std::runtime_error);
00039   
00040   // User data
00041   float m_hvratio;
00042   float m_hvratioRMS;
00043   bool m_taskStatus;
00044   
00045   
00046 };
00047 
00048 #endif