LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
RunHistory.h
Go to the documentation of this file.
1 // \file LArProperties.h
3 //
4 // \brief pure virtual base interface for run history
5 //
6 // \author jpaley@fnal.gov
7 //
9 #ifndef DETINFO_IRUNHISTORY_H
10 #define DETINFO_IRUNHISTORY_H
11 
13 namespace detinfo {
14 
15  enum RunType_t {
23  };
24 
25  class SubRun {
26  public:
27  virtual ~SubRun() = default;
28 
29  virtual uint64_t TStart() const = 0;
30  };
31 
32  class RunHistory {
33  public:
34  virtual ~RunHistory() = default;
35 
36  virtual bool Update(uint64_t) = 0;
37 
38  virtual int RunNumber() const = 0;
39  virtual int NSubruns() const = 0;
40  virtual int RunType() const = 0;
41  virtual std::string RunTypeAsString() const = 0;
42  virtual uint64_t TStart() const = 0;
43  virtual uint64_t TStop() const = 0;
44  virtual uint64_t Duration() const = 0;
45 
46  }; // class RunHistory
47 } //namespace detinfo
48 #endif // RunHistory_H
virtual ~SubRun()=default
virtual uint64_t TStart() const =0
c1 Update()
General LArSoft Utilities.