LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
13
#include "
lardataalg/DetectorInfo/RunHistoryStandard.h
"
14
15
namespace
detinfo
{
16
//-----------------------------------------------
17
RunHistoryStandard::RunHistoryStandard
() : fRun(-1), fNSubruns(0), fRunType(
kUnknownRunType
) {}
18
19
//-----------------------------------------------
20
RunHistoryStandard::RunHistoryStandard
(
int
run)
21
{
22
fRun
= run;
23
}
24
25
//------------------------------------------------
26
RunHistoryStandard::~RunHistoryStandard
() {}
27
28
//------------------------------------------------
29
bool
RunHistoryStandard::Update
(uint64_t ts)
30
{
31
if
(ts == 0)
return
false
;
32
33
return
true
;
34
}
35
36
//------------------------------------------------
37
std::string
RunHistoryStandard::RunTypeAsString
()
const
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
}
detinfo::RunHistoryStandard::RunTypeAsString
virtual std::string RunTypeAsString() const override
Definition:
RunHistoryStandard.cxx:37
detinfo::kCommissioningRun
Definition:
RunHistory.h:18
detinfo::kTestRun
Definition:
RunHistory.h:19
detinfo::kUnknownRunType
Definition:
RunHistory.h:16
RunHistoryStandard.h
detinfo::kProductionRun
Definition:
RunHistory.h:17
detinfo::RunHistoryStandard::~RunHistoryStandard
virtual ~RunHistoryStandard()
Definition:
RunHistoryStandard.cxx:26
detinfo::RunHistoryStandard::RunHistoryStandard
RunHistoryStandard()
Definition:
RunHistoryStandard.cxx:17
detinfo
General LArSoft Utilities.
Definition:
BeamFlashTrackMatchTaggerAlg.h:23
detinfo::RunHistoryStandard::Update
virtual bool Update(uint64_t ts=0) override=0
Definition:
RunHistoryStandard.cxx:29
detinfo::kPedestalRun
Definition:
RunHistory.h:20
detinfo::RunHistoryStandard::fRunType
int fRunType
Definition:
RunHistoryStandard.h:66
detinfo::kCalibrationRun
Definition:
RunHistory.h:21
detinfo::RunHistoryStandard::fRun
int fRun
Definition:
RunHistoryStandard.h:64
lardataalg
v09_17_03
source
lardataalg
DetectorInfo
RunHistoryStandard.cxx
Generated on Thu May 2 2024 20:59:37 for LArSoft by
1.8.11