CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/OnlineDB/EcalCondDB/interface/FEConfigFgrEETowerDat.h

Go to the documentation of this file.
00001 #ifndef FECONFFGREETOWERDAT_H
00002 #define FECONFFGREETOWERDAT_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 FEConfigFgrEETowerDat : public IDataItem {
00012  public:
00013   friend class EcalCondDBInterface; // XXX temp should not need
00014   FEConfigFgrEETowerDat();
00015   ~FEConfigFgrEETowerDat();
00016 
00017   // User data methods
00018   inline std::string getTable() { return "FE_CONFIG_FGREETT_DAT"; }
00019 
00020   inline void setLUTValue(int mean) { m_lut = mean; }
00021   inline int getLUTValue() const { return m_lut; }
00022   inline void setLutValue(int mean) { m_lut = mean; }
00023   inline int getLutValue() const { return m_lut; }
00024 
00025  private:
00026   void prepareWrite() 
00027     throw(std::runtime_error);
00028 
00029   void writeDB(const EcalLogicID* ecid, const FEConfigFgrEETowerDat* item, FEConfigFgrInfo* iconf)
00030     throw(std::runtime_error);
00031 
00032 
00033   void writeArrayDB(const std::map< EcalLogicID, FEConfigFgrEETowerDat>* data, FEConfigFgrInfo* iconf)
00034   throw(std::runtime_error);
00035 
00036 
00037   void fetchData(std::map< EcalLogicID, FEConfigFgrEETowerDat >* fillMap, FEConfigFgrInfo* iconf)
00038      throw(std::runtime_error);
00039 
00040   // User data
00041 
00042   int m_lut;
00043 
00044 };
00045 
00046 #endif