Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef ODECALCYCLE_H
0002 #define ODECALCYCLE_H
0003 
0004 #include <map>
0005 #include <stdexcept>
0006 
0007 #include "OnlineDB/EcalCondDB/interface/IODConfig.h"
0008 
0009 class ODEcalCycle : public IODConfig {
0010 public:
0011   friend class EcalCondDBInterface;
0012 
0013   ODEcalCycle();
0014   ~ODEcalCycle() override;
0015 
0016   // User data methods
0017   inline std::string getTable() override { return "ECAL_CYCLE"; }
0018 
0019   inline void setId(int id) { m_ID = id; }
0020   inline int getId() const { return m_ID; }
0021   inline void setTag(std::string x) { m_tag = x; }
0022   inline std::string getTag() const { return m_tag; }
0023   inline void setVersion(int x) { m_version = x; }
0024   inline int getVersion() const { return m_version; }
0025   inline void setSeqNum(int x) { m_seq_num = x; }
0026   inline int getSeqNum() const { return m_seq_num; }
0027 
0028   inline void setSequenceId(int x) { m_seq_id = x; }
0029   inline int getSequenceId() const { return m_seq_id; }
0030 
0031   inline void setCycleNum(int x) { m_cycle_num = x; }
0032   inline int getCycleNum() const { return m_cycle_num; }
0033   inline void setCycleTag(std::string x) { m_cycle_tag = x; }
0034   inline std::string getCycleTag() const { return m_cycle_tag; }
0035   inline void setCycleDescription(std::string x) { m_cycle_description = x; }
0036   inline std::string getCycleDescription() const { return m_cycle_description; }
0037   inline void setCCSId(int x) { m_ccs = x; }
0038   inline int getCCSId() const { return m_ccs; }
0039   inline void setDCCId(int x) { m_dcc = x; }
0040   inline int getDCCId() const { return m_dcc; }
0041   inline void setLaserId(int x) { m_laser = x; }
0042   inline int getLaserId() const { return m_laser; }
0043   inline void setLTCId(int x) { m_ltc = x; }
0044   inline int getLTCId() const { return m_ltc; }
0045   inline void setLTSId(int x) { m_lts = x; }
0046   inline int getLTSId() const { return m_lts; }
0047   inline void setDCUId(int x) { m_dcu = x; }
0048   inline int getDCUId() const { return m_dcu; }
0049   inline void setTCCId(int x) { m_tcc = x; }
0050   inline int getTCCId() const { return m_tcc; }
0051   inline void setTCCEEId(int x) { m_tcc_ee = x; }
0052   inline int getTCCEEId() const { return m_tcc_ee; }
0053   inline void setTTCCIId(int x) { m_ttcci = x; }
0054   inline int getTTCCIId() const { return m_ttcci; }
0055   inline void setMataqId(int x) { m_mataq = x; }
0056   inline int getMataqId() const { return m_mataq; }
0057   inline void setJBH4Id(int x) { m_jbh4 = x; }
0058   inline int getJBH4Id() const { return m_jbh4; }
0059   inline void setScanId(int x) { m_scan = x; }
0060   inline int getScanId() const { return m_scan; }
0061   inline void setTTCFId(int x) { m_ttcf = x; }
0062   inline int getTTCFId() const { return m_ttcf; }
0063   inline void setSRPId(int x) { m_srp = x; }
0064   inline int getSRPId() const { return m_srp; }
0065 
0066   void printout();
0067 
0068 private:
0069   void prepareWrite() noexcept(false) override;
0070   void writeDB() noexcept(false);
0071   void clear();
0072   int fetchID() noexcept(false);
0073   void setByID(int id) noexcept(false);
0074   void fetchData(ODEcalCycle* result) noexcept(false);
0075 
0076   // User data
0077   int m_ID;
0078   std::string m_tag;
0079   int m_version;
0080   int m_seq_num;
0081   int m_seq_id;
0082   int m_cycle_num;
0083   std::string m_cycle_tag;
0084   std::string m_cycle_description;
0085   int m_ccs;
0086   int m_dcc;
0087   int m_laser;
0088   int m_ltc;
0089   int m_lts;
0090   int m_dcu;
0091   int m_tcc;
0092   int m_tcc_ee;
0093   int m_ttcci;
0094   int m_mataq;
0095   int m_jbh4;
0096   int m_scan;
0097   int m_srp;
0098   int m_ttcf;
0099 };
0100 
0101 #endif