Skip to content

Commit

Permalink
remove preliminary
Browse files Browse the repository at this point in the history
  • Loading branch information
rkansal47 committed Jun 5, 2024
1 parent bb4effd commit 7d7d50c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
11 changes: 10 additions & 1 deletion src/HHbbVV/postprocessing/PlotFits.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions src/HHbbVV/postprocessing/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 7d7d50c

Please sign in to comment.