Belle II Software development
RunNumber.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_RunNumber_h
9#define _Belle2_RunNumber_h
10
11#include <vector>
12#include <string>
13
14namespace Belle2 {
20 class RunNumber {
21
22 public:
23 RunNumber();
24 RunNumber(const std::string& node,
25 const std::string& runtype,
26 int expno, int runno,
27 int id = 0, long long record_time = 0);
28 ~RunNumber() {}
29
30 public:
31 const std::string& getNode() const { return m_node; }
32 const std::string& getRunType() const { return m_runtype; }
33 int getExpNumber() const { return m_expno; }
34 int getRunNumber() const { return m_runno; }
35 int getId() const { return m_id; }
36 long long getRecordTime() const { return m_record_time; }
37 void setNode(const std::string& node) { m_node = node; }
38 void setRunType(const std::string& runtype) { m_runtype = runtype; }
39 void setExpNumber(int expno) { m_expno = expno; }
40 void setRunNumber(int runno) { m_runno = runno; }
41 void setId(int id) { m_id = id; }
42 void setRecordTime(long long record_time)
43 {
44 m_record_time = record_time;
45 }
46
47 private:
48 std::string m_node;
49 std::string m_runtype;
50 int m_expno;
51 int m_runno;
52 int m_id;
53 long long m_record_time;
54
55 };
56
57 typedef std::vector<RunNumber> RunNumberList;
58
60}
61
62#endif
Abstract base class for different kinds of events.