RunHistory.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file GArProperties.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 GArSoft Utilities
13 namespace gar {
14  namespace detinfo {
15 
16  enum RunType_t {
24  };
25 
26  class SubRun {
27  public:
28  virtual ~SubRun() = default;
29 
30  virtual uint64_t TStart() const = 0;
31  };
32 
33  class RunHistory {
34  public:
35  virtual ~RunHistory() = default;
36 
37  virtual bool Update(uint64_t) = 0;
38 
39  virtual int RunNumber() const = 0;
40  virtual int NSubruns() const = 0;
41  virtual int RunType() const = 0;
42  virtual std::string RunTypeAsString() const = 0;
43  virtual uint64_t TStart() const = 0;
44  virtual uint64_t TStop() const = 0;
45  virtual uint64_t Duration() const = 0;
46 
47  }; // class RunHistory
48  } //namespace detinfo
49 } // gar
50 #endif // RunHistory_H
std::string string
Definition: nybbler.cc:12
virtual ~SubRun()=default
virtual uint64_t TStart() const =0
General LArSoft Utilities.
General GArSoft Utilities.
bool Update(detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, const TCSlice &slc, PFPStruct &pfp, bool prt)
Definition: PFPUtils.cxx:1056