CMS 3D CMS Logo

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

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