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
std::string string
Definition: nybbler.cc:12
virtual ~SubRun()=default
virtual uint64_t TStart() const =0
General LArSoft Utilities.
bool Update(detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, const TCSlice &slc, PFPStruct &pfp, bool prt)
Definition: PFPUtils.cxx:1056