CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CaliIOV.h
Go to the documentation of this file.
1 #ifndef CALIIOV_H
2 #define CALIIOV_H
3 
4 #include <stdexcept>
5 #include <iostream>
6 
10 
11 typedef int run_t;
12 
13 class CaliIOV : public IIOV {
14  public:
15  friend class EcalCondDBInterface;
16 
17  CaliIOV();
18  ~CaliIOV();
19 
20  // Methods for user data
21 
22 
23  void setSince(Tm since);
24  Tm getSince() const;
25  void setTill(Tm till);
26  Tm getTill() const;
27  void setCaliTag(CaliTag tag);
28  CaliTag getCaliTag() const;
29 
30  // Methods from IUniqueDBObject
31  int getID(){ return m_ID;} ;
32  int fetchID() throw(std::runtime_error);
33  void setByID(int id) throw(std::runtime_error);
34 
35  // Operators
36  inline bool operator==(const CaliIOV &m) const
37  {
38  return ( m_caliTag == m.m_caliTag &&
39  m_since == m.m_since &&
40  m_till == m.m_till );
41  }
42 
43  inline bool operator!=(const CaliIOV &m) const { return !(*this == m); }
44 
45 
46  private:
47  // User data for this IOV
51 
52  int writeDB() throw(std::runtime_error);
53  void setByTm(CaliTag* tag, Tm time) throw(std::runtime_error);
54 };
55 
56 #endif
Definition: IIOV.h:11
~CaliIOV()
Definition: CaliIOV.cc:22
int run_t
Definition: CaliIOV.h:11
void setSince(Tm since)
Definition: CaliIOV.cc:28
Tm getSince() const
Definition: CaliIOV.cc:38
void setCaliTag(CaliTag tag)
Definition: CaliIOV.cc:62
Tm m_since
Definition: CaliIOV.h:48
int getID()
Definition: CaliIOV.h:31
CaliIOV()
Definition: CaliIOV.cc:12
CaliTag getCaliTag() const
Definition: CaliIOV.cc:72
Tm m_till
Definition: CaliIOV.h:49
void setTill(Tm till)
Definition: CaliIOV.cc:45
void setByID(int id)
Definition: CaliIOV.cc:128
int fetchID()
Definition: CaliIOV.cc:79
string const
Definition: compareJSON.py:14
Tm getTill() const
Definition: CaliIOV.cc:55
CaliTag m_caliTag
Definition: CaliIOV.h:50
Definition: Tm.h:14
void setByTm(CaliTag *tag, Tm time)
Definition: CaliIOV.cc:215
int writeDB()
Definition: CaliIOV.cc:165
bool operator!=(const CaliIOV &m) const
Definition: CaliIOV.h:43