RunHistoryStandard.cxx
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 //
3 // RunHistory
4 //
5 // jpaley@fnal.gov
6 //
7 ////////////////////////////////////////////////////////////////////////
8 // Framework includes
9 
10 // C++ language includes
11 
12 // LArSoft includes
14 
15 namespace detinfo {
16  //-----------------------------------------------
18  fRun(-1), fNSubruns(0), fRunType(kUnknownRunType)
19  {
20  }
21 
22  //-----------------------------------------------
24  {
25  fRun=run;
26  }
27 
28  //------------------------------------------------
30  {
31  }
32 
33  //------------------------------------------------
34  bool RunHistoryStandard::Update(uint64_t ts)
35  {
36  if (ts == 0) return false;
37 
38  return true;
39  }
40 
41  //------------------------------------------------
43  {
44  switch(fRunType) {
45  case(kProductionRun):
46  return std::string("Production");
47  case(kCommissioningRun):
48  return std::string("Commissioning");
49  case(kTestRun):
50  return std::string("Test");
51  case(kPedestalRun):
52  return std::string("Pedestal");
53  case(kCalibrationRun):
54  return std::string("Calibration");
55  case(kUnknownRunType):
56  default:
57  return std::string("Uknown");
58  }
59  }
60 }
virtual std::string RunTypeAsString() const override
std::string string
Definition: nybbler.cc:12
General LArSoft Utilities.
virtual bool Update(uint64_t ts=0) override=0