CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2_patch1/src/OnlineDB/EcalCondDB/interface/FEConfigLUTParamDat.h

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