Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef FECONFIGBADStripDAT_H
0002 #define FECONFIGBADStripDAT_H
0003 
0004 #include <vector>
0005 #include <stdexcept>
0006 
0007 #include "OnlineDB/EcalCondDB/interface/IODConfig.h"
0008 #include "OnlineDB/EcalCondDB/interface/FEConfigBadStripInfo.h"
0009 
0010 class FEConfigBadStripDat : public IODConfig {
0011 public:
0012   friend class EcalCondDBInterface;
0013   FEConfigBadStripDat();
0014   ~FEConfigBadStripDat() override;
0015 
0016   // User data methods
0017   inline std::string getTable() override { return "FE_CONFIG_BadST_DAT"; }
0018 
0019   inline void setId(int dac) { m_ID = dac; }
0020   inline int getId() const { return m_ID; }
0021 
0022   inline void setFedId(int dac) { m_fed = dac; }
0023   inline int getFedId() const { return m_fed; }
0024 
0025   inline void setTCCId(int dac) { m_tcc = dac; }
0026   inline int getTCCId() const { return m_tcc; }
0027 
0028   inline void setTTId(int dac) { m_tt = dac; }
0029   inline int getTTId() const { return m_tt; }
0030 
0031   inline void setStripId(int dac) { m_xt = dac; }
0032   inline int getStripId() const { return m_xt; }
0033 
0034   inline void setStatus(int dac) { m_t1 = dac; }
0035   inline int getStatus() const { return m_t1; }
0036 
0037 private:
0038   void prepareWrite() noexcept(false) override;
0039 
0040   void writeDB(const FEConfigBadStripDat* item, FEConfigBadStripInfo* iov) noexcept(false);
0041 
0042   void writeArrayDB(const std::vector<FEConfigBadStripDat>& data, FEConfigBadStripInfo* iov) noexcept(false);
0043 
0044   void fetchData(std::vector<FEConfigBadStripDat>* fillMap, FEConfigBadStripInfo* iov) noexcept(false);
0045 
0046   // User data
0047   int m_tcc;
0048   int m_fed;
0049   int m_tt;
0050   int m_xt;
0051   int m_t1;
0052   int m_ID;
0053 };
0054 
0055 #endif