Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef FECONFLINPARAMDAT_H
0002 #define FECONFLINPARAMDAT_H
0003 
0004 #include <vector>
0005 #include <stdexcept>
0006 
0007 #include "OnlineDB/EcalCondDB/interface/IDataItem.h"
0008 #include "OnlineDB/EcalCondDB/interface/FEConfigLinInfo.h"
0009 #include "OnlineDB/EcalCondDB/interface/EcalLogicID.h"
0010 
0011 class FEConfigLinParamDat : public IDataItem {
0012 public:
0013   friend class EcalCondDBInterface;
0014   FEConfigLinParamDat();
0015   ~FEConfigLinParamDat() override;
0016 
0017   // User data methods
0018   inline std::string getTable() override { return "FE_CONFIG_LINPARAM_DAT"; }
0019 
0020   inline void setETSat(float x) { m_etsat = x; }
0021 
0022   inline float getETSat() const { return m_etsat; }
0023 
0024 private:
0025   void prepareWrite() noexcept(false) override;
0026 
0027   void writeDB(const EcalLogicID* ecid, const FEConfigLinParamDat* item, FEConfigLinInfo* iconf) noexcept(false);
0028 
0029   void writeArrayDB(const std::map<EcalLogicID, FEConfigLinParamDat>* data, FEConfigLinInfo* iconf) noexcept(false);
0030 
0031   void fetchData(std::map<EcalLogicID, FEConfigLinParamDat>* fillMap, FEConfigLinInfo* iconf) noexcept(false);
0032 
0033   // User data
0034   float m_etsat;
0035 };
0036 
0037 #endif