884 auto tag = cond::payloadInspector::PlotBase::getTag<0>();
885 auto iov =
tag.iovs.front();
887 gStyle->SetOptStat(
"emr");
891 TCanvas
canvas(
"Canv",
"Canv", 1400, 800);
895 float minimum(9999.);
896 float maximum(-9999.);
900 maximum =
payload->getGainHigh();
901 minimum =
payload->getGainLow();
904 maximum =
payload->getPedHigh();
905 minimum =
payload->getPedLow();
912 auto hBPix = std::make_shared<TH1F>(Form(
"%s BPIX",
TypeName[myType]),
913 Form(
"SiPixel Gain Calibration %s BPIx -%s;per %s %s (BPix);# %ss",
923 auto hFPix = std::make_shared<TH1F>(Form(
"%s FPIX",
TypeName[myType]),
924 Form(
"SiPixel Gain Calibration %s FPix -%s;per %s %s (FPix);# %ss",
934 for (
unsigned int i : {1, 2}) {
944 hBPix->GetYaxis()->SetRangeUser(0.1, hBPix->GetMaximum() * 10);
945 hBPix->SetFillColor(kBlue);
946 hBPix->SetMarkerStyle(20);
947 hBPix->SetMarkerSize(1);
951 hBPix->SetStats(
true);
955 hFPix->GetYaxis()->SetRangeUser(0.1, hFPix->GetMaximum() * 10);
956 hFPix->SetFillColor(kBlue);
957 hFPix->SetMarkerStyle(20);
958 hFPix->SetMarkerSize(1);
962 hFPix->SetStats(
true);
966 TLegend
legend = TLegend(0.32, 0.92, 0.97, 0.95);
967 legend.SetHeader((
"Payload hash: #bf{" + (std::get<1>(iov)) +
"}").c_str(),
971 legend.SetTextSize(0.025);
978 TPaveStats* st1 = (TPaveStats*)hBPix->FindObject(
"stats");
979 st1->SetTextSize(0.03);
983 TPaveStats* st2 = (TPaveStats*)hFPix->FindObject(
"stats");
984 st2->SetTextSize(0.03);
990 ltx.SetTextSize(0.045);
991 ltx.SetTextAlign(11);
993 ltx.DrawLatexNDC(gPad->GetLeftMargin() + 0.01,
994 1 - gPad->GetTopMargin() + 0.01,
995 (
"SiPixel Gain Calibration IOV:" + std::to_string(std::get<0>(iov))).c_str());
998 ltx.DrawLatexNDC(gPad->GetLeftMargin() + 0.01,
999 1 - gPad->GetTopMargin() + 0.01,
1000 (
"SiPixel Gain Calibration IOV:" + std::to_string(std::get<0>(iov))).c_str());