Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef FECONFIGBADTTDAT_H
0002 #define FECONFIGBADTTDAT_H
0003 
0004 #include <vector>
0005 #include <stdexcept>
0006 
0007 #include "OnlineDB/EcalCondDB/interface/IODConfig.h"
0008 #include "OnlineDB/EcalCondDB/interface/FEConfigBadTTInfo.h"
0009 
0010 class FEConfigBadTTDat : public IODConfig {
0011 public:
0012   friend class EcalCondDBInterface;
0013   FEConfigBadTTDat();
0014   ~FEConfigBadTTDat() override;
0015 
0016   // User data methods
0017   inline std::string getTable() override { return "FE_CONFIG_BadTT_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 x) { m_fed = x; }
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 setStatus(int dac) { m_t1 = dac; }
0032   inline int getStatus() const { return m_t1; }
0033 
0034 private:
0035   void prepareWrite() noexcept(false) override;
0036 
0037   void writeDB(const FEConfigBadTTDat* item, FEConfigBadTTInfo* iov) noexcept(false);
0038 
0039   void writeArrayDB(const std::vector<FEConfigBadTTDat>& data, FEConfigBadTTInfo* iov) noexcept(false);
0040 
0041   void fetchData(std::vector<FEConfigBadTTDat>* fillMap, FEConfigBadTTInfo* iov) noexcept(false);
0042 
0043   // User data
0044   int m_tcc;
0045   int m_fed;
0046   int m_tt;
0047   int m_t1;
0048   int m_ID;
0049 };
0050 
0051 #endif