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