CMS 3D CMS Logo

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

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