Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
garsoft
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
#include <iostream>
12
13
// GArSoft includes
14
#include "DetectorInfo/RunHistoryStandard.h"
15
16
// ROOT includes
17
#include "TMath.h"
18
19
// Framework includes
20
#include "
messagefacility/MessageLogger/MessageLogger.h
"
21
#include "cetlib_except/exception.h"
22
23
namespace
gar
{
24
namespace
detinfo
{
25
//-----------------------------------------------
26
RunHistoryStandard::RunHistoryStandard
()
27
: fRun(-1)
28
, fNSubruns(0)
29
, fRunType(
kUnknownRunType
)
30
{
31
}
32
33
//-----------------------------------------------
34
RunHistoryStandard::RunHistoryStandard
(
int
run
)
35
{
36
fRun
=
run
;
37
}
38
39
//------------------------------------------------
40
RunHistoryStandard::~RunHistoryStandard
()
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
//------------------------------------------------
53
std::string
RunHistoryStandard::RunTypeAsString
()
const
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
gar::detinfo::RunHistoryStandard::fRun
int fRun
Definition:
RunHistoryStandard.h:66
gar::detinfo::RunHistoryStandard::fRunType
int fRunType
Definition:
RunHistoryStandard.h:68
gar::detinfo::kTestRun
Definition:
RunHistory.h:20
gar::detinfo::RunHistoryStandard::Update
virtual bool Update(uint64_t ts=0) override
Definition:
RunHistoryStandard.cxx:45
string
std::string string
Definition:
nybbler.cc:12
gar::detinfo::kPedestalRun
Definition:
RunHistory.h:21
filelisting.run
int run
Definition:
filelisting.py:13
gar::detinfo::kCommissioningRun
Definition:
RunHistory.h:19
MessageLogger.h
gar::detinfo::RunHistoryStandard::~RunHistoryStandard
virtual ~RunHistoryStandard()
Definition:
RunHistoryStandard.cxx:40
gar::detinfo::kUnknownRunType
Definition:
RunHistory.h:17
gar::detinfo::RunHistoryStandard::RunTypeAsString
virtual std::string RunTypeAsString() const override
Definition:
RunHistoryStandard.cxx:53
detinfo
General LArSoft Utilities.
Definition:
CalibrationTreeBuilder.h:23
gar::detinfo::kCalibrationRun
Definition:
RunHistory.h:22
gar
General GArSoft Utilities.
Definition:
anatest_module.cc:57
gar::detinfo::RunHistoryStandard::RunHistoryStandard
RunHistoryStandard()
Definition:
RunHistoryStandard.cxx:26
gar::detinfo::kProductionRun
Definition:
RunHistory.h:18
Generated by
1.8.11