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(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 //
31 void setDescription(std::string x) { m_description = x;}
32 std::string getDescription() const{ return m_description;}
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 //
43 void setTriggerMode(std::string x) { m_trigger_mode = x;}
44 std::string getTriggerMode() const{ return m_trigger_mode;}
45 //
47 int getNumberOfEvents() const{ return m_num_events ;}
48 //
49 void setUsageStatus(std::string x) { m_usage_status = x;}
50 std::string getUsageStatus() const{ return m_usage_status;}
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;
67  std::string m_tag;
68  int m_version;
71  int m_num_seq;
72  std::string m_description;
74  std::string m_trigger_mode;
76  std::string m_usage_status;
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 setDBTime(Tm x)
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 setUsageStatus(std::string x)
void setRunTypeDef(const RunTypeDef runTypeDef)
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
x
Definition: VDTMath.h:216
Definition: Tm.h:14
void setNumberOfEvents(int x)