1 #ifndef CONDCORE_CTPPSPLUGINS_PPSTIMINGCALIBRATIONPAYLOADINSPECTORHELPER_H 2 #define CONDCORE_CTPPSPLUGINS_PPSTIMINGCALIBRATIONPAYLOADINSPECTORHELPER_H 101 return "channel = 4";
103 return "channel = 5";
105 return "channel = 6";
107 return "channel = 7";
109 return "channel = 8";
111 return "channel = 9";
113 return "channel = 10";
115 return "channel = 11";
166 return std::make_tuple(
payload.parameters(
db, 1, plane, channel)[param1],
167 payload.parameters(
db, 1, plane, channel)[param2]);
182 "PPSTimingCalibration parameters per channel") {}
185 auto tag = cond::payloadInspector::PlotBase::getTag<0>();
187 auto iov =
tag.iovs.back();
190 if (m_payload !=
nullptr) {
192 "PPSTimingCalibration parameters per channel",
"PPSTimingCalibration parameters per channel", 1400, 1000);
198 for (
int i = 0;
i <
n;
i++) {
199 y[
i] = m_payload->parameters(
db, 1, plane,
i)[param];
203 TGraph* graph =
new TGraph(
n,
x,
y);
208 graph->SetMarkerColor(2);
209 graph->SetMarkerSize(1.5);
210 graph->SetMarkerStyle(21);
211 graph->GetXaxis()->SetRangeUser(-.5, 11.5);
212 graph->GetXaxis()->SetNdivisions(16);
213 graph->GetYaxis()->SetNdivisions(32);
std::string m_imageFileName
PlotImage(const std::string &title)
static std::string getStringFromChannelEnum(const conditions_channel &channel)
ScatterPlot(const std::string &title, const std::string &xLabel, const std::string &yLabel)
static std::string getStringFromPlaneEnum(const conditions_plane &plane)
static std::string getStringFromParamEnum(const parameter ¶meter)
static std::string getStringFromDbEnum(const conditions_db &db)
float getFromPayload(PayloadType &payload) override
HistoryPlot(const std::string &title, const std::string &yLabel)
std::string getStringFromParamEnum(const parameters ¶meter, const bool addUnits=false)
std::tuple< double, double > getFromPayload(PayloadType &payload) override
std::shared_ptr< PayloadType > fetchPayload(const cond::Hash &payloadHash)