CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/OnlineDB/EcalCondDB/interface/DCUIDarkPedDat.h

Go to the documentation of this file.
00001 #ifndef DCUIDARKPEDDAT_H
00002 #define DCUIDARKPEDDAT_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 DCUIDarkPedDat : public IDataItem {
00013  public:
00014   friend class EcalCondDBInterface;
00015   DCUIDarkPedDat();
00016   ~DCUIDarkPedDat();
00017 
00018   // User data methods
00019   inline std::string getTable() { return "DCU_IDARK_PED_DAT"; }
00020 
00021   inline void setPed(float temp) { m_ped = temp; }
00022   inline float getPed() const { return m_ped; }
00023   
00024  private:
00025   void prepareWrite() 
00026     throw(std::runtime_error);
00027 
00028   void writeDB(const EcalLogicID* ecid, const DCUIDarkPedDat* item, DCUIOV* iov)
00029     throw(std::runtime_error);
00030 
00031   void writeArrayDB(const std::map< EcalLogicID, DCUIDarkPedDat>* data, DCUIOV* iov)
00032     throw(std::runtime_error);
00033 
00034   void fetchData(std::map< EcalLogicID, DCUIDarkPedDat >* fillVec, DCUIOV* iov)
00035      throw(std::runtime_error);
00036 
00037   // User data
00038   float m_ped;
00039   
00040 };
00041 
00042 #endif