26 {
"TPC_PT_351_TEMPERATURE", 0},
27 {
"TPC_PT_376_TEMPERATURE", 1},
28 {
"TPC_PT_415_TEMPERATURE", 2},
29 {
"TPC_PT_447_TEMPERATURE", 3},
30 {
"TPC_PT_477_TEMPERATURE", 4},
31 {
"TPC_PT_488_TEMPERATURE", 5},
32 {
"TPC_PT_537_TEMPERATURE", 6},
33 {
"TPC_PT_575_TEMPERATURE", 7},
34 {
"TPC_PT_589_TEMPERATURE", 8},
35 {
"TPC_PT_629_TEMPERATURE", 9},
36 {
"TPC_PT_664_TEMPERATURE", 10},
37 {
"TPC_PT_695_TEMPERATURE", 11},
38 {
"TPC_PT_735_TEMPERATURE", 12},
39 {
"TPC_PT_757_TEMPERATURE", 13},
40 {
"TPC_PT_797_TEMPERATURE", 14},
41 {
"TPC_PT_831_TEMPERATURE", 15},
42 {
"TPC_PT_851_TEMPERATURE", 16},
43 {
"TPC_PT_895_TEMPERATURE", 17},
48 for (
size_t i = 0;
i <
raw.size(); ++
i) {
49 raw[
i].sensorNumber =
i;
64 for (
size_t i = 0;
i <
states.size(); ++
i) {
71 {StackState::OFF,
"OFF"},
72 {StackState::STBY_CONFIGURED,
"STBY_CONFIGURED"},
73 {StackState::INTERMEDIATE,
"INTERMEDIATE"},
74 {StackState::ON,
"ON"},
75 {StackState::ERROR,
"ERROR"},
76 {StackState::ERROR_LOCAL,
"ERROR_LOCAL"},
77 {StackState::SOFT_INTERLOCK,
"SOFT_INTERLOCK"},
78 {StackState::INTERLOCK,
"INTERLOCK"},
79 {StackState::RAMPIG_UP_LOW,
"RAMPIG_UP_LOW"},
80 {StackState::RAMPIG_DOWN_LOW,
"RAMPIG_DOWN_LOW"},
81 {StackState::RAMPIG_UP,
"RAMPIG_UP"},
82 {StackState::RAMPIG_DOWN,
"RAMPIG_DOWN"},
83 {StackState::MIXED,
"MIXED"},
84 {StackState::NO_CONTROL,
"NO_CONTROL"},
89 constexpr auto max = std::numeric_limits<dcs::TimeStampType>::max();
90 const std::vector<TimeStampType>
times{
101 return *std::min_element(
times.begin(),
times.end());
106 constexpr auto min = 0;
107 const std::vector<TimeStampType>
times{
118 return *std::max_element(
times.begin(),
times.end());
std::vector< unsigned long > times
DCS data point data formats.
constexpr unsigned char SECTORSPERSIDE
constexpr unsigned short GEMSPERSTACK
constexpr unsigned char SIDES
constexpr unsigned short GEMSTACKSPERSECTOR
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::vector< DPType > data
RawDPsF h2o
H2O measurement from gas chromatograph.
RawDPsF neon
neon measurement from gas chromatograph
TimeStampType getMaxTime() const
TimeStampType getMinTime() const
RawDPsF co2
CO2 measurement from gas chromatograph.
RawDPsF h2oSensor
O2 measurement from dedicated gas sensor.
RawDPsF argon
argon measurement from gas chromatograph
RawDPsF o2Sensor
O2 measurement from dedicated gas sensor.
RawDPsF n2
neon measurement from gas chromatograph
std::vector< RawDPsF > voltages
voltages per GEM stack, counting is IROCs GEM1 top, bottom, GEM2 top, bottom, .. O1 ....
static const std::unordered_map< StackState, std::string > StackStateNameMap
map state to string
std::vector< RawDPsF > currents
currents per GEM stack, counting is IROCs GEM1 top, bottom, GEM2 top, bottom, .. O1 ....
static const std::unordered_map< std::string, int > SensorNameMap
std::vector< RawDPsF > raw
raw temperature values from DCS for