801 auto tag = cond::payloadInspector::PlotBase::getTag<0>();
802 auto iov =
tag.iovs.front();
804 gStyle->SetOptStat(
"emr");
808 TCanvas
canvas(
"Canv",
"Canv", 1400, 800);
812 float minimum(9999.);
813 float maximum(-9999.);
817 maximum =
payload->getGainHigh();
818 minimum =
payload->getGainLow();
821 maximum =
payload->getPedHigh();
822 minimum =
payload->getPedLow();
829 auto hBPix = std::make_shared<TH1F>(Form(
"%s BPIX",
TypeName[myType]),
830 Form(
"SiPixel Gain Calibration %s BPIx -%s;per %s %s (BPix);# %ss",
840 auto hFPix = std::make_shared<TH1F>(Form(
"%s FPIX",
TypeName[myType]),
841 Form(
"SiPixel Gain Calibration %s FPix -%s;per %s %s (FPix);# %ss",
851 for (
unsigned int i : {1, 2}) {
861 hBPix->GetYaxis()->SetRangeUser(0.1, hBPix->GetMaximum() * 10);
862 hBPix->SetFillColor(kBlue);
863 hBPix->SetMarkerStyle(20);
864 hBPix->SetMarkerSize(1);
868 hBPix->SetStats(
true);
872 hFPix->GetYaxis()->SetRangeUser(0.1, hFPix->GetMaximum() * 10);
873 hFPix->SetFillColor(kBlue);
874 hFPix->SetMarkerStyle(20);
875 hFPix->SetMarkerSize(1);
879 hFPix->SetStats(
true);
883 TLegend
legend = TLegend(0.32, 0.92, 0.97, 0.95);
884 legend.SetHeader((
"Payload hash: #bf{" + (std::get<1>(iov)) +
"}").c_str(),
888 legend.SetTextSize(0.025);
895 TPaveStats* st1 = (TPaveStats*)hBPix->FindObject(
"stats");
896 st1->SetTextSize(0.03);
900 TPaveStats* st2 = (TPaveStats*)hFPix->FindObject(
"stats");
901 st2->SetTextSize(0.03);
907 ltx.SetTextSize(0.045);
908 ltx.SetTextAlign(11);
910 ltx.DrawLatexNDC(gPad->GetLeftMargin() + 0.01,
911 1 - gPad->GetTopMargin() + 0.01,
912 (
"SiPixel Gain Calibration IOV:" + std::to_string(std::get<0>(iov))).c_str());
915 ltx.DrawLatexNDC(gPad->GetLeftMargin() + 0.01,
916 1 - gPad->GetTopMargin() + 0.01,
917 (
"SiPixel Gain Calibration IOV:" + std::to_string(std::get<0>(iov))).c_str());