Belle II Software  release-08-01-10
RunNumberTable.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_RunNumberTable_h
9 #define _Belle2_RunNumberTable_h
10 
11 #include "daq/slc/database/RunNumber.h"
12 
13 namespace Belle2 {
19  class DBInterface;
20 
22 
23  public:
24  RunNumberTable(DBInterface& db) : m_db(db) {}
25  ~RunNumberTable() {}
26 
27  public:
28  RunNumber add(const std::string& node,
29  const std::string& runtype,
30  int expno, int runno);
31  RunNumber add(const RunNumber& info);
32  int getRunNumber(const std::string& node, int expno);
33  int getExpNumber(const std::string& node);
34  void create();
35 
36  public:
37  RunNumberList get(const std::string& node, int expno, int runno_min = 0, int runno_max = -1);
38  RunNumberList get(int expno, int runno_min = 0, int runno_max = -1);
39 
40  private:
41  DBInterface& m_db;
42 
43  };
44 
46 }
47 
48 #endif
Abstract base class for different kinds of events.