diff --git a/src/HHbbVV/postprocessing/PlotFits.ipynb b/src/HHbbVV/postprocessing/PlotFits.ipynb index 9ac3dca5..c7cd5ed5 100644 --- a/src/HHbbVV/postprocessing/PlotFits.ipynb +++ b/src/HHbbVV/postprocessing/PlotFits.ipynb @@ -49,7 +49,7 @@ "k2v0sig = False\n", "unblinded = True\n", "\n", - "plot_dir = MAIN_DIR / f\"plots/PostFit/24May30QCDTF\"\n", + "plot_dir = MAIN_DIR / f\"plots/PostFit/24Jun5\"\n", "# plot_dir = (\n", "# MAIN_DIR\n", "# / \"plots/PostFit/24Apr9ggFScan/nTF1/ggf_txbb_MP_ggf_bdt_0.9965_vbf_txbb_HP_vbf_bdt_0.999_lepton_veto_Hbb\"\n", @@ -211,6 +211,15 @@ " utils.blindBins(h, [100, 150], data_key, axis=0)" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "plot_dir" + ] + }, { "cell_type": "code", "execution_count": null, diff --git a/src/HHbbVV/postprocessing/plotting.py b/src/HHbbVV/postprocessing/plotting.py index 52b8b7db..c82449aa 100644 --- a/src/HHbbVV/postprocessing/plotting.py +++ b/src/HHbbVV/postprocessing/plotting.py @@ -211,17 +211,17 @@ def _asimov_significance(s, b): return np.sqrt(2 * ((s + b) * np.log(1 + (s / b)) - s)) -def add_cms_label(ax, year): +def add_cms_label(ax, year, label=None): if year == "all": hep.cms.label( - "Preliminary", + label, data=True, lumi=f"{np.sum(list(LUMI.values())) / 1e3:.0f}", year=None, ax=ax, ) else: - hep.cms.label("Preliminary", data=True, lumi=f"{LUMI[year] / 1e3:.0f}", year=year, ax=ax) + hep.cms.label(label, data=True, lumi=f"{LUMI[year] / 1e3:.0f}", year=year, ax=ax) def ratioHistPlot(