Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
lardataalg
lardataalg
DetectorInfo
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
13
#include "
lardataalg/DetectorInfo/RunHistoryStandard.h
"
14
15
namespace
detinfo
{
16
//-----------------------------------------------
17
RunHistoryStandard::RunHistoryStandard
() :
18
fRun(-1), fNSubruns(0), fRunType(
kUnknownRunType
)
19
{
20
}
21
22
//-----------------------------------------------
23
RunHistoryStandard::RunHistoryStandard
(
int
run
)
24
{
25
fRun
=
run
;
26
}
27
28
//------------------------------------------------
29
RunHistoryStandard::~RunHistoryStandard
()
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
//------------------------------------------------
42
std::string
RunHistoryStandard::RunTypeAsString
()
const
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
}
detinfo::RunHistoryStandard::RunTypeAsString
virtual std::string RunTypeAsString() const override
Definition:
RunHistoryStandard.cxx:42
detinfo::kCommissioningRun
Definition:
RunHistory.h:18
detinfo::kTestRun
Definition:
RunHistory.h:19
string
std::string string
Definition:
nybbler.cc:12
RunHistoryStandard.h
detinfo::kUnknownRunType
Definition:
RunHistory.h:16
filelisting.run
int run
Definition:
filelisting.py:13
detinfo::kProductionRun
Definition:
RunHistory.h:17
detinfo::RunHistoryStandard::~RunHistoryStandard
virtual ~RunHistoryStandard()
Definition:
RunHistoryStandard.cxx:29
detinfo::RunHistoryStandard::RunHistoryStandard
RunHistoryStandard()
Definition:
RunHistoryStandard.cxx:17
detinfo
General LArSoft Utilities.
Definition:
CalibrationTreeBuilder.h:23
detinfo::RunHistoryStandard::Update
virtual bool Update(uint64_t ts=0) override=0
Definition:
RunHistoryStandard.cxx:34
detinfo::kPedestalRun
Definition:
RunHistory.h:20
detinfo::RunHistoryStandard::fRunType
int fRunType
Definition:
RunHistoryStandard.h:65
detinfo::kCalibrationRun
Definition:
RunHistory.h:21
detinfo::RunHistoryStandard::fRun
int fRun
Definition:
RunHistoryStandard.h:63
Generated by
1.8.11