885 auto tag = cond::payloadInspector::PlotBase::getTag<0>();
886 auto iov =
tag.iovs.front();
888 gStyle->SetOptStat(
"emr");
892 TCanvas
canvas(
"Canv",
"Canv", 1400, 800);
896 float minimum(9999.);
897 float maximum(-9999.);
901 maximum =
payload->getGainHigh();
902 minimum =
payload->getGainLow();
905 maximum =
payload->getPedHigh();
906 minimum =
payload->getPedLow();
913 auto hBPix = std::make_shared<TH1F>(Form(
"%s BPIX",
TypeName[myType]),
914 Form(
"SiPixel Gain Calibration %s BPIx -%s;per %s %s (BPix);# %ss",
924 auto hFPix = std::make_shared<TH1F>(Form(
"%s FPIX",
TypeName[myType]),
925 Form(
"SiPixel Gain Calibration %s FPix -%s;per %s %s (FPix);# %ss",
935 for (
unsigned int i : {1, 2}) {
945 hBPix->GetYaxis()->SetRangeUser(0.1, hBPix->GetMaximum() * 10);
946 hBPix->SetFillColor(kBlue);
947 hBPix->SetMarkerStyle(20);
948 hBPix->SetMarkerSize(1);
952 hBPix->SetStats(
true);
956 hFPix->GetYaxis()->SetRangeUser(0.1, hFPix->GetMaximum() * 10);
957 hFPix->SetFillColor(kBlue);
958 hFPix->SetMarkerStyle(20);
959 hFPix->SetMarkerSize(1);
963 hFPix->SetStats(
true);
967 TLegend
legend = TLegend(0.32, 0.92, 0.97, 0.95);
968 legend.SetHeader((
"Payload hash: #bf{" + (std::get<1>(iov)) +
"}").c_str(),
972 legend.SetTextSize(0.025);
979 TPaveStats* st1 = (TPaveStats*)hBPix->FindObject(
"stats");
980 st1->SetTextSize(0.03);
984 TPaveStats* st2 = (TPaveStats*)hFPix->FindObject(
"stats");
985 st2->SetTextSize(0.03);
991 ltx.SetTextSize(0.045);
992 ltx.SetTextAlign(11);
994 ltx.DrawLatexNDC(gPad->GetLeftMargin() + 0.01,
995 1 - gPad->GetTopMargin() + 0.01,
996 (
"SiPixel Gain Calibration IOV:" + std::to_string(std::get<0>(iov))).c_str());
999 ltx.DrawLatexNDC(gPad->GetLeftMargin() + 0.01,
1000 1 - gPad->GetTopMargin() + 0.01,
1001 (
"SiPixel Gain Calibration IOV:" + std::to_string(std::get<0>(iov))).c_str());