CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/OnlineDB/EcalCondDB/interface/FEConfigFgrDat.h

Go to the documentation of this file.
00001 #ifndef FECONFFGRDAT_H
00002 #define FECONFFGRDAT_H
00003 
00004 #include <vector>
00005 #include <stdexcept>
00006 
00007 #include "OnlineDB/EcalCondDB/interface/IDataItem.h"
00008 #include "OnlineDB/EcalCondDB/interface/FEConfigFgrInfo.h"
00009 #include "OnlineDB/EcalCondDB/interface/EcalLogicID.h"
00010 
00011 class FEConfigFgrDat : public IDataItem {
00012  public:
00013   friend class EcalCondDBInterface; // XXX temp should not need
00014   FEConfigFgrDat();
00015   ~FEConfigFgrDat();
00016 
00017   // User data methods
00018   inline std::string getTable() { return "FE_CONFIG_FGR_DAT"; }
00019 
00020   inline void setFgrGroupId(int x) { m_group_id = x; }
00021   inline int getFgrGroupId() const { return m_group_id; }
00022 
00023  private:
00024   void prepareWrite() 
00025     throw(std::runtime_error);
00026 
00027   void writeDB(const EcalLogicID* ecid, const FEConfigFgrDat* item, FEConfigFgrInfo* iconf)
00028     throw(std::runtime_error);
00029 
00030 
00031   void writeArrayDB(const std::map< EcalLogicID, FEConfigFgrDat>* data, FEConfigFgrInfo* iconf)
00032   throw(std::runtime_error);
00033 
00034 
00035   void fetchData(std::map< EcalLogicID, FEConfigFgrDat >* fillMap, FEConfigFgrInfo* iconf)
00036      throw(std::runtime_error);
00037 
00038   // User data
00039   int m_group_id;
00040 
00041 };
00042 
00043 #endif