Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:57:16

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