test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ODBadXTDat.h
Go to the documentation of this file.
1 #ifndef OBADXTDAT_H
2 #define OBADXTDAT_H
3 
4 #include <vector>
5 #include <stdexcept>
6 
9 
10 class ODBadXTDat : public IODConfig {
11  public:
12  friend class EcalCondDBInterface;
13  ODBadXTDat();
14  ~ODBadXTDat();
15 
16  // User data methods
17  inline std::string getTable() { return "BAD_CRYSTALS_DAT"; }
18 
19  inline void setId(int dac) { m_ID = dac; }
20  inline int getId() const { return m_ID; }
21 
22  inline void setSMId(int dac) { m_sm = dac; }
23  inline int getSMId() const { return m_sm; }
24 
25  inline void setFedId(int dac) { m_fed = dac; }
26  inline int getFedId() const { return m_fed; }
27 
28  inline void setTTId(int dac) { m_tt = dac; }
29  inline int getTTId() const { return m_tt; }
30 
31  inline void setXTId(int dac) { m_xt = dac; }
32  inline int getXTId() const { return m_xt; }
33 
34 
35  inline void setStatus(int dac) { m_t1 = dac; }
36  inline int getStatus() const { return m_t1; }
37 
38  private:
39  void prepareWrite()
40  throw(std::runtime_error);
41 
42  void writeDB(const ODBadXTDat* item, ODBadXTInfo* iov )
43  throw(std::runtime_error);
44 
45  void writeArrayDB(const std::vector< ODBadXTDat >& data, ODBadXTInfo* iov)
46  throw(std::runtime_error);
47 
48 
49  void fetchData(std::vector< ODBadXTDat >* fillMap, ODBadXTInfo* iov)
50  throw(std::runtime_error);
51 
52  // User data
53  int m_sm;
54  int m_fed;
55  int m_tt;
56  int m_xt;
57  int m_t1;
58  int m_ID;
59 
60 };
61 
62 #endif
void writeArrayDB(const std::vector< ODBadXTDat > &data, ODBadXTInfo *iov)
Definition: ODBadXTDat.cc:107
void setStatus(int dac)
Definition: ODBadXTDat.h:35
int getTTId() const
Definition: ODBadXTDat.h:29
void setTTId(int dac)
Definition: ODBadXTDat.h:28
std::string getTable()
Definition: ODBadXTDat.h:17
void writeDB(const ODBadXTDat *item, ODBadXTInfo *iov)
Definition: ODBadXTDat.cc:49
tuple iov
Definition: o2o.py:307
void setXTId(int dac)
Definition: ODBadXTDat.h:31
void setId(int dac)
Definition: ODBadXTDat.h:19
void fetchData(std::vector< ODBadXTDat > *fillMap, ODBadXTInfo *iov)
Definition: ODBadXTDat.cc:70
void prepareWrite()
Definition: ODBadXTDat.cc:33
int getSMId() const
Definition: ODBadXTDat.h:23
int getStatus() const
Definition: ODBadXTDat.h:36
string const
Definition: compareJSON.py:14
void setFedId(int dac)
Definition: ODBadXTDat.h:25
int getFedId() const
Definition: ODBadXTDat.h:26
int getId() const
Definition: ODBadXTDat.h:20
int getXTId() const
Definition: ODBadXTDat.h:32
void setSMId(int dac)
Definition: ODBadXTDat.h:22