1198 bool fill()
override {
1199 gStyle->SetOptStat(
"emr");
1200 TGaxis::SetExponentOffset(-0.1, 0.01,
"y");
1201 TH1F::SetDefaultSumw2(
true);
1206 auto theIOVs = cond::payloadInspector::PlotBase::getTag<0>().iovs;
1207 auto f_tagname = cond::payloadInspector::PlotBase::getTag<0>().name;
1209 auto firstiov = theIOVs.front();
1210 std::tuple<cond::Time_t, cond::Hash> lastiov;
1216 auto tag2iovs = cond::payloadInspector::PlotBase::getTag<1>().iovs;
1217 l_tagname = cond::payloadInspector::PlotBase::getTag<1>().name;
1218 lastiov = tag2iovs.front();
1220 lastiov = theIOVs.back();
1223 std::shared_ptr<PayloadType> last_payload = this->
fetchPayload(std::get<1>(lastiov));
1224 std::shared_ptr<PayloadType> first_payload = this->
fetchPayload(std::get<1>(firstiov));
1226 std::string lastIOVsince = std::to_string(std::get<0>(lastiov));
1227 std::string firstIOVsince = std::to_string(std::get<0>(firstiov));
1229 TCanvas
canvas(
"Canv",
"Canv", 1300, 800);
1239 array[0]->SetTitle(Form(
"SiPixel Gain Calibration %s - %s;per %s %s ratio;# %ss",
1246 array[1]->SetTitle(Form(
"SiPixel Gain Calibration %s - %s;per %s %s difference;# %ss",
1254 array[0]->SetTitle(
"");
1255 array[0]->SetLineColor(kBlack);
1256 array[0]->SetFillColor(kRed);
1257 array[0]->SetBarWidth(0.90);
1258 array[0]->SetMaximum(
array[0]->GetMaximum() * 10);
1259 array[0]->Draw(
"bar");
1261 array[0]->SetStats(
true);
1264 array[1]->SetTitle(
"");
1265 array[1]->SetLineColor(kBlack);
1266 array[1]->SetFillColor(kBlue);
1267 array[1]->SetBarWidth(0.90);
1268 array[1]->SetMaximum(
array[1]->GetMaximum() * 10);
1269 array[1]->Draw(
"bar");
1271 array[1]->SetStats(
true);
1277 latex.SetTextSize(0.024);
1278 latex.SetTextAlign(13);
1282 fmt::sprintf(
"#scale[1.2]{SiPixelGainCalibration%s Ratio}", (
isForHLT_ ?
"ForHLT" :
"Offline")).c_str());
1285 .41, .91, (
"#splitline{#font[12]{" + f_tagname +
"}}{ / #font[12]{" + l_tagname +
"}}").c_str());
1287 latex.DrawLatexNDC(.41, .91, (firstIOVsince +
" / " + lastIOVsince).c_str());
1292 latex2.SetTextSize(0.024);
1293 latex2.SetTextAlign(13);
1294 latex2.DrawLatexNDC(
1297 fmt::sprintf(
"#scale[1.2]{SiPixelGainCalibration%s Diff}", (
isForHLT_ ?
"ForHLT" :
"Offline")).c_str());
1299 latex2.DrawLatexNDC(
1300 .41, .91, (
"#splitline{#font[12]{" + f_tagname +
"}}{ - #font[12]{" + l_tagname +
"}}").c_str());
1302 latex2.DrawLatexNDC(.41, .91, (firstIOVsince +
" - " + lastIOVsince).c_str());
1305 TPaveStats* st1 = (TPaveStats*)
array[0]->FindObject(
"stats");
1306 st1->SetTextSize(0.027);
1307 st1->SetLineColor(kRed);
1308 st1->SetTextColor(kRed);
1311 TPaveStats* st2 = (TPaveStats*)
array[1]->FindObject(
"stats");
1312 st2->SetTextSize(0.027);
1313 st2->SetLineColor(kBlue);
1314 st2->SetTextColor(kBlue);
1317 auto ltx = TLatex();
1318 ltx.SetTextFont(62);
1320 ltx.SetTextSize(0.040);
1321 ltx.SetTextAlign(11);
1324 gPad->GetLeftMargin(),
1325 1 - gPad->GetTopMargin() + 0.01,
1326 fmt::sprintf(
"SiPixel %s Ratio, IOV %s / %s",
TypeName[myType], firstIOVsince, lastIOVsince).c_str());
1330 gPad->GetLeftMargin(),
1331 1 - gPad->GetTopMargin() + 0.01,
1332 fmt::sprintf(
"SiPixel %s Diff, IOV %s - %s",
TypeName[myType], firstIOVsince, lastIOVsince).c_str());