Belle II Software  release-05-02-19
RCConfig.h
1 #ifndef Belle2_RCConfig_h
2 #define Belle2_RCConfig_h
3 
4 #include <daq/slc/database/DBObject.h>
5 
6 namespace Belle2 {
12  class DBInterface;
13 
14  class RCConfig {
15 
16  public:
17  RCConfig();
18  RCConfig(const RCConfig& config);
19  ~RCConfig() {}
20 
21  public:
22  void print();
23  DBObject& getObject() { return m_obj; }
24  const DBObject& getObject() const { return m_obj; }
25  void setObject(const DBObject& obj) { m_obj = obj; }
26  int getExpNumber() const { return m_expno; }
27  int getRunNumber() const { return m_runno; }
28  int getSubNumber() const { return m_subno; }
29  void setExpNumber(int expno) { m_expno = expno; }
30  void setRunNumber(int runno) { m_runno = runno; }
31  void setSubNumber(int subno) { m_subno = subno; }
32 
33  public:
34  int getConfigId() const { return m_obj.getId(); }
35  const std::string& getConfigName() const
36  {
37  return m_obj.getName();
38  }
39 
40  private:
41  DBObject m_obj;
42  int m_expno;
43  int m_runno;
44  int m_subno;
45  DBInterface* m_db;
46 
47  };
48 
50 }
51 
52 #endif
Belle2::DBObject
Definition: DBObject.h:14
Belle2::RCConfig
Definition: RCConfig.h:14
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::DBInterface
Definition: DBInterface.h:19