CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ODRunConfigInfo.h
Go to the documentation of this file.
1 #ifndef ODRUNCONFIGINFO_H
2 #define ODRUNCONFIGINFO_H
3 
4 #include <stdexcept>
5 #include <iostream>
6 
11 
12 class ODRunConfigInfo : public IODConfig {
13  public:
14  friend class EcalCondDBInterface;
15 
18  inline std::string getTable() { return "ECAL_RUN_CONFIGURATION_DAT"; }
19 
20  inline void setId(int id) { m_ID = id; }
21  inline int getId() const { return m_ID; }
22 
23 
24 
25  void setDBTime(const Tm& x) { m_db_time=x; }
26 inline Tm getDBTime() const{ return m_db_time;}
27 //
28 inline void setTag(std::string x) { m_tag = x; }
29 std::string getTag() const{ return m_tag;}
30 //
33 //
34 void setVersion(int x){ m_version = x; }
35 int getVersion()const {return m_version; }
36 //
38 int getNumberOfSequences()const {return m_num_seq; }
39 //
40 void setDefaults(int x) { m_defaults = x;}
41 int getDefaults() const{ return m_defaults;}
42 //
45 //
47 int getNumberOfEvents() const{ return m_num_events ;}
48 //
51 //
52 
53  RunTypeDef getRunTypeDef() const;
54  void setRunTypeDef(const RunTypeDef& runTypeDef);
55  RunModeDef getRunModeDef() const;
56  void setRunModeDef(const RunModeDef& runModeDef);
57 
58 
59  // operators
60  inline bool operator==(const ODRunConfigInfo &r) const { return (m_ID == r.m_ID ); }
61  inline bool operator!=(const ODRunConfigInfo &r) const { return !(*this == r); }
62 
63  private:
64  // User data for this IOV
65  int m_ID;
68  int m_version;
71  int m_num_seq;
77 
78  // Methods from IUniqueDBObject
79  int fetchNextId() throw(std::runtime_error);
80  int fetchID() throw(std::runtime_error);
81  int fetchIDFromTagAndVersion() throw(std::runtime_error);
82  int fetchIDLast() throw(std::runtime_error);
83  void setByID(int id) throw(std::runtime_error);
84 
85  void prepareWrite() throw(std::runtime_error);
86  void writeDB() throw(std::runtime_error);
87  void fetchData(ODRunConfigInfo * result) throw(std::runtime_error);
88  int updateDefaultCycle() throw(std::runtime_error);
89  void clear();
90 
91 };
92 
93 
94 
95 #endif
std::string getTriggerMode() const
std::string m_trigger_mode
bool operator==(const ODRunConfigInfo &r) const
void setDefaults(int x)
RunModeDef getRunModeDef() const
std::string getTable()
void setByID(int id)
void fetchData(ODRunConfigInfo *result)
int getDefaults() const
RunModeDef m_runModeDef
std::string m_tag
std::string getDescription() const
std::string m_description
void setRunModeDef(const RunModeDef &runModeDef)
void setRunTypeDef(const RunTypeDef &runTypeDef)
void setUsageStatus(std::string x)
RunTypeDef m_runTypeDef
void setDescription(std::string x)
bool operator!=(const ODRunConfigInfo &r) const
std::string m_usage_status
tuple result
Definition: query.py:137
void setVersion(int x)
int getVersion() const
Tm getDBTime() const
int getNumberOfEvents() const
std::string getTag() const
int fetchIDFromTagAndVersion()
RunTypeDef getRunTypeDef() const
int getId() const
void setId(int id)
void setNumberOfSequences(int n)
void setTriggerMode(std::string x)
void setTag(std::string x)
int getNumberOfSequences() const
std::string getUsageStatus() const
void setDBTime(const Tm &x)
Definition: DDAxes.h:10
Definition: Tm.h:13
void setNumberOfEvents(int x)