LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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 #include <iostream>
12 
13 // LArSoft includes
15 
16 // ROOT includes
17 #include "TMath.h"
18 
19 // Framework includes
21 #include "cetlib_except/exception.h"
22 
23 namespace detinfo {
24  //-----------------------------------------------
26  fRun(-1), fNSubruns(0), fRunType(kUnknownRunType)
27  {
28  }
29 
30  //-----------------------------------------------
32  {
33  fRun=run;
34  }
35 
36  //------------------------------------------------
38  {
39  }
40 
41  //------------------------------------------------
42  bool RunHistoryStandard::Update(uint64_t ts)
43  {
44  if (ts == 0) return false;
45 
46  return true;
47  }
48 
49  //------------------------------------------------
51  {
52  switch(fRunType) {
53  case(kProductionRun):
54  return std::string("Production");
55  case(kCommissioningRun):
56  return std::string("Commissioning");
57  case(kTestRun):
58  return std::string("Test");
59  case(kPedestalRun):
60  return std::string("Pedestal");
61  case(kCalibrationRun):
62  return std::string("Calibration");
63  case(kUnknownRunType):
64  default:
65  return std::string("Uknown");
66  }
67  }
68 }
virtual std::string RunTypeAsString() const override
General LArSoft Utilities.
virtual bool Update(uint64_t ts=0) override=0