CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch1/src/OnlineDB/EcalCondDB/interface/MonPedestalsOnlineDat.h

Go to the documentation of this file.
00001 #ifndef MONPEDESTALSONLINEDAT_H
00002 #define MONPEDESTALSONLINEDAT_H
00003 
00004 #include <map>
00005 #include <stdexcept>
00006 
00007 #include "OnlineDB/EcalCondDB/interface/IDataItem.h"
00008 #include "OnlineDB/EcalCondDB/interface/MonRunTag.h"
00009 #include "OnlineDB/EcalCondDB/interface/MonRunIOV.h"
00010 #include "OnlineDB/EcalCondDB/interface/EcalLogicID.h"
00011 
00012 class MonPedestalsOnlineDat : public IDataItem {
00013  public:
00014   friend class EcalCondDBInterface;
00015   MonPedestalsOnlineDat();
00016   ~MonPedestalsOnlineDat();
00017 
00018   // User data methods
00019   inline std::string getTable() { return "MON_PEDESTALS_ONLINE_DAT"; }
00020 
00021   inline void setADCMeanG12(float mean) { m_adcMeanG12 = mean; }
00022   inline float getADCMeanG12() const { return m_adcMeanG12; }
00023 
00024   inline void setADCRMSG12(float rms) { m_adcRMSG12 = rms; }
00025   inline float getADCRMSG12() const { return m_adcRMSG12; }
00026 
00027   inline void setTaskStatus(bool status) { m_taskStatus = status; }
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 MonPedestalsOnlineDat* item, MonRunIOV* iov )
00035     throw(std::runtime_error);
00036 
00037   void writeArrayDB(const std::map< EcalLogicID, MonPedestalsOnlineDat >* data, MonRunIOV* iov)
00038   throw(std::runtime_error);
00039 
00040 
00041 
00042   void fetchData(std::map< EcalLogicID, MonPedestalsOnlineDat >* fillMap, MonRunIOV* iov)
00043      throw(std::runtime_error);
00044 
00045   // User data
00046   float m_adcMeanG12;
00047   float m_adcRMSG12;
00048   bool m_taskStatus;
00049 };
00050 
00051 #endif