1 #ifndef CONDCORE_CTPPSPLUGINS_PPSTIMINGCALIBRATIONPAYLOADINSPECTORHELPER_H 2 #define CONDCORE_CTPPSPLUGINS_PPSTIMINGCALIBRATIONPAYLOADINSPECTORHELPER_H 48 template <PPSTimingCalibrationPI::parameter param,
class PayloadType>
68 return payload.parameters(std::stoi(
db), std::stoi(
station), std::stoi(plane), std::stoi(channel))[param];
75 template <PPSTimingCalibrationPI::parameter param,
class PayloadType>
80 "PPSTimingCalibration parameters per channel") {
87 auto tag = cond::payloadInspector::PlotBase::getTag<0>();
89 auto iov =
tag.iovs.back();
97 if (m_payload !=
nullptr) {
99 "PPSTimingCalibration parameters per channel",
"PPSTimingCalibration parameters per channel", 1400, 1000);
105 for (
int i = 0;
i <
n;
i++) {
106 y[
i] = m_payload->parameters(std::stoi(
db), std::stoi(
station), std::stoi(plane),
i)[param];
110 TGraph* graph =
new TGraph(
n,
x,
y);
111 graph->SetTitle((
"PPSTimingCalibration db = " +
db +
", " +
"station = " +
station +
", " +
"plane = " + plane +
115 graph->SetMarkerColor(2);
116 graph->SetMarkerSize(1.5);
117 graph->SetMarkerStyle(21);
118 graph->GetXaxis()->SetRangeUser(-.5, 11.5);
119 graph->GetXaxis()->SetNdivisions(16);
120 graph->GetYaxis()->SetNdivisions(32);
std::string m_imageFileName
PlotImage(const std::string &title)
const std::string CHANNEL
float getFromPayload(PayloadType &payload) override
const std::string STATION
std::string getStringFromParamEnum(const parameter ¶meter)
const std::map< std::string, std::string > & inputParamValues() const
void addInputParam(const std::string ¶mName)
HistoryPlot(const std::string &title, const std::string &yLabel)
std::shared_ptr< PayloadType > fetchPayload(const cond::Hash &payloadHash)