All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RunHistory.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file LArProperties.h
3 //
4 // \brief pure virtual base interface for run history
5 //
6 // \author jpaley@fnal.gov
7 //
8 ////////////////////////////////////////////////////////////////////////
9 #ifndef DETINFO_IRUNHISTORY_H
10 #define DETINFO_IRUNHISTORY_H
11 
12 ///General LArSoft Utilities
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 uint64_t TStart() const =0
virtual bool Update(uint64_t)=0
virtual ~SubRun()=default
virtual uint64_t Duration() const =0
virtual uint64_t TStop() const =0
virtual int NSubruns() const =0
virtual ~RunHistory()=default
virtual int RunType() const =0
virtual int RunNumber() const =0
virtual std::string RunTypeAsString() const =0
virtual uint64_t TStart() const =0