Belle II Software  release-08-01-10
RCConfig.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 #ifndef Belle2_RCConfig_h
9 #define Belle2_RCConfig_h
10 
11 #include <daq/slc/database/DBObject.h>
12 
13 namespace Belle2 {
19  class DBInterface;
20 
21  class RCConfig {
22 
23  public:
24  RCConfig();
25  RCConfig(const RCConfig& config);
26  ~RCConfig() {}
27 
28  public:
29  void print();
30  DBObject& getObject() { return m_obj; }
31  const DBObject& getObject() const { return m_obj; }
32  void setObject(const DBObject& obj) { m_obj = obj; }
33  int getExpNumber() const { return m_expno; }
34  int getRunNumber() const { return m_runno; }
35  int getSubNumber() const { return m_subno; }
36  void setExpNumber(int expno) { m_expno = expno; }
37  void setRunNumber(int runno) { m_runno = runno; }
38  void setSubNumber(int subno) { m_subno = subno; }
39 
40  public:
41  int getConfigId() const { return m_obj.getId(); }
42  const std::string& getConfigName() const
43  {
44  return m_obj.getName();
45  }
46 
47  private:
48  DBObject m_obj;
49  int m_expno;
50  int m_runno;
51  int m_subno;
52  DBInterface* m_db;
53 
54  };
55 
57 }
58 
59 #endif
Abstract base class for different kinds of events.