1199 bool fill()
override {
1200 gStyle->SetOptStat(
"emr");
1201 TGaxis::SetExponentOffset(-0.1, 0.01,
"y");
1202 TH1F::SetDefaultSumw2(
true);
1207 auto theIOVs = cond::payloadInspector::PlotBase::getTag<0>().iovs;
1208 auto f_tagname = cond::payloadInspector::PlotBase::getTag<0>().name;
1210 auto firstiov = theIOVs.front();
1211 std::tuple<cond::Time_t, cond::Hash> lastiov;
1217 auto tag2iovs = cond::payloadInspector::PlotBase::getTag<1>().iovs;
1218 l_tagname = cond::payloadInspector::PlotBase::getTag<1>().name;
1219 lastiov = tag2iovs.front();
1221 lastiov = theIOVs.back();
1224 std::shared_ptr<PayloadType> last_payload = this->
fetchPayload(std::get<1>(lastiov));
1225 std::shared_ptr<PayloadType> first_payload = this->
fetchPayload(std::get<1>(firstiov));
1227 std::string lastIOVsince = std::to_string(std::get<0>(lastiov));
1228 std::string firstIOVsince = std::to_string(std::get<0>(firstiov));
1230 TCanvas
canvas(
"Canv",
"Canv", 1300, 800);
1240 array[0]->SetTitle(Form(
"SiPixel Gain Calibration %s - %s;per %s %s ratio;# %ss",
1247 array[1]->SetTitle(Form(
"SiPixel Gain Calibration %s - %s;per %s %s difference;# %ss",
1255 array[0]->SetTitle(
"");
1256 array[0]->SetLineColor(kBlack);
1257 array[0]->SetFillColor(kRed);
1258 array[0]->SetBarWidth(0.90);
1259 array[0]->SetMaximum(
array[0]->GetMaximum() * 10);
1260 array[0]->Draw(
"bar");
1262 array[0]->SetStats(
true);
1265 array[1]->SetTitle(
"");
1266 array[1]->SetLineColor(kBlack);
1267 array[1]->SetFillColor(kBlue);
1268 array[1]->SetBarWidth(0.90);
1269 array[1]->SetMaximum(
array[1]->GetMaximum() * 10);
1270 array[1]->Draw(
"bar");
1272 array[1]->SetStats(
true);
1278 latex.SetTextSize(0.024);
1279 latex.SetTextAlign(13);
1283 fmt::sprintf(
"#scale[1.2]{SiPixelGainCalibration%s Ratio}", (
isForHLT_ ?
"ForHLT" :
"Offline")).c_str());
1286 .41, .91, (
"#splitline{#font[12]{" + f_tagname +
"}}{ / #font[12]{" + l_tagname +
"}}").c_str());
1288 latex.DrawLatexNDC(.41, .91, (firstIOVsince +
" / " + lastIOVsince).c_str());
1293 latex2.SetTextSize(0.024);
1294 latex2.SetTextAlign(13);
1295 latex2.DrawLatexNDC(
1298 fmt::sprintf(
"#scale[1.2]{SiPixelGainCalibration%s Diff}", (
isForHLT_ ?
"ForHLT" :
"Offline")).c_str());
1300 latex2.DrawLatexNDC(
1301 .41, .91, (
"#splitline{#font[12]{" + f_tagname +
"}}{ - #font[12]{" + l_tagname +
"}}").c_str());
1303 latex2.DrawLatexNDC(.41, .91, (firstIOVsince +
" - " + lastIOVsince).c_str());
1306 TPaveStats* st1 = (TPaveStats*)
array[0]->FindObject(
"stats");
1307 st1->SetTextSize(0.027);
1308 st1->SetLineColor(kRed);
1309 st1->SetTextColor(kRed);
1312 TPaveStats* st2 = (TPaveStats*)
array[1]->FindObject(
"stats");
1313 st2->SetTextSize(0.027);
1314 st2->SetLineColor(kBlue);
1315 st2->SetTextColor(kBlue);
1318 auto ltx = TLatex();
1319 ltx.SetTextFont(62);
1321 ltx.SetTextSize(0.040);
1322 ltx.SetTextAlign(11);
1325 gPad->GetLeftMargin(),
1326 1 - gPad->GetTopMargin() + 0.01,
1327 fmt::sprintf(
"SiPixel %s Ratio, IOV %s / %s",
TypeName[myType], firstIOVsince, lastIOVsince).c_str());
1331 gPad->GetLeftMargin(),
1332 1 - gPad->GetTopMargin() + 0.01,
1333 fmt::sprintf(
"SiPixel %s Diff, IOV %s - %s",
TypeName[myType], firstIOVsince, lastIOVsince).c_str());