Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:53

0001 #ifndef FECONFLUTPARAMDAT_H
0002 #define FECONFLUTPARAMDAT_H
0003 
0004 #include <vector>
0005 #include <stdexcept>
0006 
0007 #include "OnlineDB/EcalCondDB/interface/IDataItem.h"
0008 #include "OnlineDB/EcalCondDB/interface/FEConfigLUTInfo.h"
0009 #include "OnlineDB/EcalCondDB/interface/EcalLogicID.h"
0010 
0011 class FEConfigLUTParamDat : public IDataItem {
0012 public:
0013   friend class EcalCondDBInterface;  // XXX temp should not need
0014   FEConfigLUTParamDat();
0015   ~FEConfigLUTParamDat() override;
0016 
0017   // User data methods
0018   inline std::string getTable() override { return "FE_CONFIG_LUTPARAM_DAT"; }
0019 
0020   inline void setETSat(float x) { m_etsat = x; }
0021   inline void setTTThreshlow(float x) { m_tthreshlow = x; }
0022   inline void setTTThreshhigh(float x) { m_tthreshhigh = x; }
0023 
0024   inline float getETSat() const { return m_etsat; }
0025   inline float getTTThreshlow() const { return m_tthreshlow; }
0026   inline float getTTThreshhigh() const { return m_tthreshhigh; }
0027 
0028 private:
0029   void prepareWrite() noexcept(false) override;
0030 
0031   void writeDB(const EcalLogicID* ecid, const FEConfigLUTParamDat* item, FEConfigLUTInfo* iconf) noexcept(false);
0032 
0033   void writeArrayDB(const std::map<EcalLogicID, FEConfigLUTParamDat>* data, FEConfigLUTInfo* iconf) noexcept(false);
0034 
0035   void fetchData(std::map<EcalLogicID, FEConfigLUTParamDat>* fillMap, FEConfigLUTInfo* iconf) noexcept(false);
0036 
0037   // User data
0038   float m_etsat;
0039   float m_tthreshlow;
0040   float m_tthreshhigh;
0041 };
0042 
0043 #endif