CMS 3D CMS Logo

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() noexcept(false);
80  int fetchID() noexcept(false);
82  int fetchIDLast() noexcept(false);
83  void setByID(int id) noexcept(false);
84 
85  void prepareWrite() noexcept(false);
86  void writeDB() noexcept(false);
88  int updateDefaultCycle() noexcept(false);
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
int fetchIDLast() noexcept(false)
void setDefaults(int x)
RunModeDef getRunModeDef() const
int fetchIDFromTagAndVersion() noexcept(false)
void writeDB() noexcept(false)
std::string getTable()
int getDefaults() const
RunModeDef m_runModeDef
std::string m_tag
#define noexcept
int fetchID() noexcept(false)
std::string getDescription() const
std::string m_description
void setRunModeDef(const RunModeDef &runModeDef)
void setRunTypeDef(const RunTypeDef &runTypeDef)
void prepareWrite() noexcept(false)
void setUsageStatus(std::string x)
int fetchNextId() noexcept(false)
RunTypeDef m_runTypeDef
void setDescription(std::string x)
bool operator!=(const ODRunConfigInfo &r) const
std::string m_usage_status
void setVersion(int x)
int updateDefaultCycle() noexcept(false)
int getVersion() const
Tm getDBTime() const
void setByID(int id) noexcept(false)
int getNumberOfEvents() const
std::string getTag() const
RunTypeDef getRunTypeDef() const
int getId() const
void fetchData(ODRunConfigInfo *result) noexcept(false)
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: Tm.h:13
void setNumberOfEvents(int x)