CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_0/src/OnlineDB/EcalCondDB/interface/RunConfigDat.h

Go to the documentation of this file.
00001 #ifndef RUNCONFIGDAT_H
00002 #define RUNCONFIGDAT_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 RunConfigDat : public IDataItem {
00012  public:
00013   friend class EcalCondDBInterface;
00014   RunConfigDat();
00015   ~RunConfigDat();
00016 
00017   // User data methods
00018   inline std::string getTable() { return "RUN_CONFIG_DAT"; }
00019 
00020   inline std::string getConfigTag() const { return m_configTag; }
00021   inline void setConfigTag(std::string tag) { m_configTag = tag; }
00022 
00023   inline int getConfigVersion() const { return m_configVer; }
00024   inline void setConfigVersion(int ver) { m_configVer = ver; }
00025 
00026  private:
00027   void prepareWrite() 
00028     throw(std::runtime_error);
00029 
00030   void writeDB(const EcalLogicID* ecid, const RunConfigDat* item, RunIOV* iov )
00031     throw(std::runtime_error);
00032 
00033   void fetchData(std::map< EcalLogicID, RunConfigDat >* fillMap, RunIOV* iov)
00034      throw(std::runtime_error);
00035 
00036   // User data
00037   std::string m_configTag;
00038   int m_configVer;
00039 
00040 };
00041 
00042 #endif