CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch2/src/OnlineDB/EcalCondDB/interface/ODEcalCycle.h

Go to the documentation of this file.
00001 #ifndef ODECALCYCLE_H
00002 #define ODECALCYCLE_H
00003 
00004 #include <map>
00005 #include <stdexcept>
00006 
00007 #include "OnlineDB/EcalCondDB/interface/IODConfig.h"
00008 
00009 class ODEcalCycle : public IODConfig {
00010  public:
00011   friend class EcalCondDBInterface ;
00012 
00013   ODEcalCycle();
00014   ~ODEcalCycle();
00015 
00016   // User data methods
00017   inline std::string getTable() { return "ECAL_CYCLE"; }
00018 
00019   inline void setId(int id) { m_ID = id; }
00020   inline int getId() const { return m_ID; }
00021   inline void setTag(std::string x) { m_tag = x; }
00022   inline std::string getTag() const { return m_tag; }
00023   inline void setVersion(int x) { m_version = x; }
00024   inline int getVersion() const { return m_version; }
00025   inline void setSeqNum(int x) { m_seq_num = x; }
00026   inline int getSeqNum() const { return m_seq_num; }
00027 
00028   inline void setSequenceId(int x) { m_seq_id = x; }
00029   inline int getSequenceId() const { return m_seq_id; }
00030 
00031   inline void setCycleNum(int x) { m_cycle_num = x; }
00032   inline int getCycleNum() const { return m_cycle_num; }
00033   inline void setCycleTag(std::string x) { m_cycle_tag = x; }
00034   inline std::string getCycleTag() const { return m_cycle_tag; }
00035   inline void setCycleDescription(std::string x) { m_cycle_description = x; }
00036   inline std::string getCycleDescription() const { return m_cycle_description; }
00037   inline void setCCSId(int x) { m_ccs = x; }
00038   inline int getCCSId() const { return m_ccs; }
00039   inline void setDCCId(int x) { m_dcc = x; }
00040   inline int getDCCId() const { return m_dcc; }
00041   inline void setLaserId(int x) { m_laser = x; }
00042   inline int getLaserId() const { return m_laser; }
00043   inline void setLTCId(int x) { m_ltc = x; }
00044   inline int getLTCId() const { return m_ltc; }
00045   inline void setLTSId(int x) { m_lts = x; }
00046   inline int getLTSId() const { return m_lts; }
00047   inline void setDCUId(int x) { m_dcu = x; }
00048   inline int getDCUId() const { return m_dcu; }
00049   inline void setTCCId(int x) { m_tcc = x; }
00050   inline int getTCCId() const { return m_tcc; }
00051   inline void setTCCEEId(int x) { m_tcc_ee = x; }
00052   inline int getTCCEEId() const { return m_tcc_ee; }
00053   inline void setTTCCIId(int x) { m_ttcci = x; }
00054   inline int getTTCCIId() const { return m_ttcci; }
00055   inline void setMataqId(int x) { m_mataq = x; }
00056   inline int getMataqId() const { return m_mataq; }
00057   inline void setJBH4Id(int x) { m_jbh4 = x; }
00058   inline int getJBH4Id() const { return m_jbh4; }
00059   inline void setScanId(int x) { m_scan = x; }
00060   inline int getScanId() const { return m_scan; }
00061   inline void setTTCFId(int x) { m_ttcf = x; }
00062   inline int getTTCFId() const { return m_ttcf; }
00063   inline void setSRPId(int x) { m_srp = x; }
00064   inline int getSRPId() const { return m_srp; }
00065 
00066   void printout();
00067 
00068  private:
00069   void prepareWrite()  throw(std::runtime_error);
00070   void writeDB()       throw(std::runtime_error);
00071   void clear();
00072   int fetchID()        throw(std::runtime_error);
00073   void setByID(int id) throw(std::runtime_error);
00074   void fetchData(ODEcalCycle * result)     throw(std::runtime_error);
00075 
00076   // User data
00077   int m_ID;
00078   std::string m_tag;
00079   int m_version;
00080   int m_seq_num;
00081   int m_seq_id;
00082   int m_cycle_num;
00083   std::string m_cycle_tag;
00084   std::string m_cycle_description;
00085   int m_ccs;
00086   int m_dcc;
00087   int m_laser;
00088   int m_ltc;
00089   int m_lts;
00090   int m_dcu;
00091   int m_tcc;
00092   int m_tcc_ee;
00093   int m_ttcci;
00094   int m_mataq;
00095   int m_jbh4;
00096   int m_scan;
00097   int m_srp;
00098   int m_ttcf;
00099 
00100 };
00101 
00102 #endif