CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/OnlineDB/EcalCondDB/interface/MonPNPedDat.h

Go to the documentation of this file.
00001 #ifndef MONPNPEDDAT_H
00002 #define MONPNPEDDAT_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 MonPNPedDat : public IDataItem {
00013  public:
00014   friend class EcalCondDBInterface;
00015   MonPNPedDat();
00016   ~MonPNPedDat();
00017 
00018   // User data methods
00019   inline std::string getTable() { return "MON_PN_PED_DAT"; }
00020 
00021   inline void setPedMeanG1(float mean) { m_pedMeanG1 = mean; }
00022   inline float getPedMeanG1() const { return m_pedMeanG1; }
00023 
00024   inline void setPedRMSG1(float mean) { m_pedRMSG1 = mean; }
00025   inline float getPedRMSG1() const { return m_pedRMSG1; }
00026 
00027   inline void setPedMeanG16(float mean) { m_pedMeanG16 = mean; }
00028   inline float getPedMeanG16() const { return m_pedMeanG16; }
00029 
00030   inline void setPedRMSG16(float mean) { m_pedRMSG16 = mean; }
00031   inline float getPedRMSG16() const { return m_pedRMSG16; }
00032 
00033   inline void setTaskStatus(bool status) { m_taskStatus = status; }
00034   inline bool getTaskStatus() const { return m_taskStatus; }
00035   
00036  private:
00037   void prepareWrite() 
00038     throw(std::runtime_error);
00039 
00040   void writeDB(const EcalLogicID* ecid, const MonPNPedDat* item, MonRunIOV* iov)
00041     throw(std::runtime_error);
00042 
00043   void writeArrayDB(const std::map< EcalLogicID, MonPNPedDat >* data, MonRunIOV* iov)
00044     throw(std::runtime_error);
00045 
00046 
00047 
00048   void fetchData(std::map< EcalLogicID, MonPNPedDat >* fillVec, MonRunIOV* iov)
00049      throw(std::runtime_error);
00050 
00051   // User data
00052   float m_pedMeanG1;
00053   float m_pedRMSG1;
00054   float m_pedMeanG16;
00055   float m_pedRMSG16;
00056   bool m_taskStatus;
00057 };
00058 
00059 #endif