1 #ifndef CONDCORE_RUNINFOPLUGINS_RUNINFOPAYLOADINSPECTORHELPER_H
2 #define CONDCORE_RUNINFOPLUGINS_RUNINFOPAYLOADINSPECTORHELPER_H
10 #include "TPaveText.h"
19 constexpr std::array<int, 7>
nominalCurrents{{-1, 0, 9558, 14416, 16819, 18268, 19262}};
20 constexpr std::array<float, 7>
nominalFields{{3.8, 0., 2., 3., 3.5, 3.8, 4.}};
54 time_t start_time =
payload->m_start_time_ll;
56 time_t end_time =
payload->m_stop_time_ll;
58 return difftime(end_time, start_time) / 1.0e+6;
63 const time_t start_time =
payload->m_start_time_ll / 1.0e+6;
64 return std::asctime(std::gmtime(&start_time));
69 const time_t end_time =
payload->m_stop_time_ll / 1.0e+6;
70 return std::asctime(std::gmtime(&end_time));
83 return "start current [A]";
85 return "stop current [A]";
87 return "average current [A]";
89 return "max current [A]";
91 return "min current [A]";
93 return "run duration [s]";
97 return "B-field intensity [T]";
99 return "should never be here";
109 for (
int i = 0;
i < 20;
i++) {
111 rgb[
i][0] = 0.80 + 0.01 *
i;
112 rgb[
i][1] = 0.00 + 0.03 *
i;
115 rgb[
i][0] = 0.80 + 0.01 *
i;
116 rgb[
i][1] = 0.00 + 0.03 *
i + 0.15 + 0.10 * (
i - 17);
118 }
else if (
i == 19) {
126 gStyle->SetPalette(20, pcol);
129 obj->SetMinimum(-1.
e-15);
130 obj->SetMaximum(+1.0);
131 obj->SetOption(
"colz");