LArSoft
v06_85_00
Liquid Argon Software toolkit - http://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
#include <iostream>
12
13
// LArSoft includes
14
#include "
lardataalg/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
detinfo
{
24
//-----------------------------------------------
25
RunHistoryStandard::RunHistoryStandard
() :
26
fRun(-1), fNSubruns(0), fRunType(
kUnknownRunType
)
27
{
28
}
29
30
//-----------------------------------------------
31
RunHistoryStandard::RunHistoryStandard
(
int
run)
32
{
33
fRun
=run;
34
}
35
36
//------------------------------------------------
37
RunHistoryStandard::~RunHistoryStandard
()
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
//------------------------------------------------
50
std::string
RunHistoryStandard::RunTypeAsString
()
const
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
}
detinfo::RunHistoryStandard::RunTypeAsString
virtual std::string RunTypeAsString() const override
Definition:
RunHistoryStandard.cxx:50
detinfo::kCommissioningRun
Definition:
RunHistory.h:18
detinfo::kTestRun
Definition:
RunHistory.h:19
detinfo::kUnknownRunType
Definition:
RunHistory.h:16
RunHistoryStandard.h
MessageLogger.h
detinfo::kProductionRun
Definition:
RunHistory.h:17
detinfo::RunHistoryStandard::~RunHistoryStandard
virtual ~RunHistoryStandard()
Definition:
RunHistoryStandard.cxx:37
detinfo::RunHistoryStandard::RunHistoryStandard
RunHistoryStandard()
Definition:
RunHistoryStandard.cxx:25
detinfo
General LArSoft Utilities.
Definition:
DetectorClocksService.h:18
detinfo::RunHistoryStandard::Update
virtual bool Update(uint64_t ts=0) override=0
Definition:
RunHistoryStandard.cxx:42
detinfo::kPedestalRun
Definition:
RunHistory.h:20
detinfo::RunHistoryStandard::fRunType
int fRunType
Definition:
RunHistoryStandard.h:67
detinfo::kCalibrationRun
Definition:
RunHistory.h:21
detinfo::RunHistoryStandard::fRun
int fRun
Definition:
RunHistoryStandard.h:65
lardataalg
v1_02_01
source
lardataalg
DetectorInfo
RunHistoryStandard.cxx
Generated on Thu Jul 26 2018 13:09:57 for LArSoft by
1.8.11