CMS 3D CMS Logo

LMFRunDat.h

Go to the documentation of this file.
00001 #ifndef LMFRUNDAT_H
00002 #define LMFRUNDAT_H
00003 
00004 #include <vector>
00005 #include <stdexcept>
00006 
00007 #include "OnlineDB/EcalCondDB/interface/IDataItem.h"
00008 #include "OnlineDB/EcalCondDB/interface/LMFRunIOV.h"
00009 #include "OnlineDB/EcalCondDB/interface/EcalLogicID.h"
00010 
00011 class LMFRunDat : public IDataItem {
00012  public:
00013   friend class EcalCondDBInterface;
00014   LMFRunDat();
00015   ~LMFRunDat();
00016 
00017   // User data methods
00018   inline std::string getTable() { return "LMF_RUN_DAT"; }
00019 
00020   inline void setNumEvents(int num) { m_numEvents = num; }
00021   inline int getNumEvents() const { return m_numEvents; }
00022 
00023   inline void setQualityFlag(int x) { m_status = x; }
00024   inline int getQualityFlag() const { return m_status; }
00025 
00026  private:
00027   void prepareWrite() 
00028     throw(std::runtime_error);
00029 
00030   void writeDB(const EcalLogicID* ecid, const LMFRunDat* item, LMFRunIOV* iov )
00031     throw(std::runtime_error);
00032 
00033   void fetchData(std::map< EcalLogicID, LMFRunDat >* fillMap, LMFRunIOV* iov)
00034      throw(std::runtime_error);
00035 
00036   // User data
00037   int m_numEvents;
00038   int m_status;
00039 };
00040 
00041 #endif

Generated on Tue Jun 9 17:40:45 2009 for CMSSW by  doxygen 1.5.4