CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_13_patch3/src/OnlineDB/EcalCondDB/interface/DCUIDarkDat.h

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