297 auto tag = PlotBase::getTag<0>();
298 auto iov =
tag.iovs.front();
300 unsigned int run = std::get<0>(iov);
304 if (!
payload->getRecords().empty() &&
305 payload->getDefinition().getFormulaString().compare(
"") != 0)
309 if (!
record.getBinsRange().empty() &&
payload->getDefinition().getBinName(0) ==
"JetEta" &&
310 record.getParametersValues().size() == 3) {
312 for (
size_t it = 0; it <=
NBIN_ETA; it++) {
314 if (
record.getBinsRange()[0].is_inside(x_axis)) {
315 sf_eta_norm->SetBinContent(it + 1,
record.getParametersValues()[0]);
316 sf_eta_down->SetBinContent(it + 1,
record.getParametersValues()[1]);
317 sf_eta_up->SetBinContent(it + 1,
record.getParametersValues()[2]);
323 gStyle->SetOptStat(0);
324 gStyle->SetLabelFont(42,
"XYZ");
325 gStyle->SetLabelSize(0.05,
"XYZ");
326 gStyle->SetFrameLineWidth(3);
329 TCanvas
canvas(
"Jet ScaleFactor Summary",
title.c_str(), 800, 600);
332 sf_eta_up->SetTitle(
tagname.c_str());
333 sf_eta_up->SetXTitle(
"#eta");
334 sf_eta_up->SetYTitle(
"Scale Factor");
335 sf_eta_up->SetLineStyle(7);
336 sf_eta_up->SetLineWidth(3);
337 sf_eta_up->SetFillColorAlpha(kGray, 0.5);
338 sf_eta_up->SetMinimum(0.);
339 sf_eta_up->Draw(
"][");
341 sf_eta_down->SetLineStyle(7);
342 sf_eta_down->SetLineWidth(3);
343 sf_eta_down->SetFillColorAlpha(kWhite, 1);
344 sf_eta_down->Draw(
"][ same");
346 sf_eta_norm->SetLineStyle(1);
347 sf_eta_norm->SetLineWidth(5);
348 sf_eta_norm->SetFillColor(0);
349 sf_eta_norm->Draw(
"][ same");
350 sf_eta_norm->Draw(
"axis same");
std::string m_imageFileName
std::string title() const
std::shared_ptr< JetResolutionObject > fetchPayload(const cond::Hash &payloadHash)