LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
RunHistoryStandard.cxx
Go to the documentation of this file.
1 //
3 // RunHistory
4 //
5 // jpaley@fnal.gov
6 //
8 // Framework includes
9 
10 // C++ language includes
11 
12 // LArSoft includes
14 
15 namespace detinfo {
16  //-----------------------------------------------
17  RunHistoryStandard::RunHistoryStandard() : fRun(-1), fNSubruns(0), fRunType(kUnknownRunType) {}
18 
19  //-----------------------------------------------
21  {
22  fRun = run;
23  }
24 
25  //------------------------------------------------
27 
28  //------------------------------------------------
29  bool RunHistoryStandard::Update(uint64_t ts)
30  {
31  if (ts == 0) return false;
32 
33  return true;
34  }
35 
36  //------------------------------------------------
38  {
39  switch (fRunType) {
40  case (kProductionRun): return std::string("Production");
41  case (kCommissioningRun): return std::string("Commissioning");
42  case (kTestRun): return std::string("Test");
43  case (kPedestalRun): return std::string("Pedestal");
44  case (kCalibrationRun): return std::string("Calibration");
45  case (kUnknownRunType):
46  default: return std::string("Uknown");
47  }
48  }
49 }
virtual std::string RunTypeAsString() const override
General LArSoft Utilities.
virtual bool Update(uint64_t ts=0) override=0