1 #ifndef CONDCORE_RUNINFOPLUGINS_RUNINFOPAYLOADINSPECTORHELPER_H 2 #define CONDCORE_RUNINFOPLUGINS_RUNINFOPAYLOADINSPECTORHELPER_H 58 return "start current [A]";
60 return "stop current [A]";
62 return "average current [A]";
64 return "max current [A]";
66 return "min current [A]";
68 return "run duration [#mus]";
72 return "B-field intensity [T]";
74 return "should never be here";
84 for (
int i = 0;
i < 20;
i++) {
86 rgb[
i][0] = 0.80 + 0.01 *
i;
87 rgb[
i][1] = 0.00 + 0.03 *
i;
90 rgb[
i][0] = 0.80 + 0.01 *
i;
91 rgb[
i][1] = 0.00 + 0.03 *
i + 0.15 + 0.10 * (
i - 17);
98 pcol[
i] = TColor::GetColor(rgb[
i][0], rgb[i][1], rgb[i][2]);
101 gStyle->SetPalette(20, pcol);
104 obj->SetMinimum(-1.
e-15);
105 obj->SetMaximum(+1.0);
106 obj->SetOption(
"colz");
void reportSummaryMapPalette(TH2 *obj)
std::array< float, 7 > nominalFields
std::array< int, 7 > nominalCurrents
std::string getStringFromTypeEnum(const parameters ¶meter)
float theBField(const float current)
def rgb(r, g, b, maximum=1.)