From f6bd6b998a8e3d7dce546bf20a08ef8edd117b0f Mon Sep 17 00:00:00 2001 From: Ana A Date: Thu, 25 Jul 2024 10:17:47 +0200 Subject: [PATCH] bug in fill_hist --- hbt/config/hist_hooks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hbt/config/hist_hooks.py b/hbt/config/hist_hooks.py index fd174cb..737a351 100644 --- a/hbt/config/hist_hooks.py +++ b/hbt/config/hist_hooks.py @@ -99,8 +99,10 @@ def ana_ABCD(task, hists): quit() # add QCD histogram to hists + # for cat_parent="incl": + # Bshape = rate_int_dic[cat_parent]["Bshape"] # TODO: BUG in fill_hist function (ValueError: got multi-dimensional hist but only one dimensional data) - # hists[cfg.processes.n.qcd] = fill_hist(qcd_hist, rate) * scale_factor["incl"] + # hists[cfg.processes.n.qcd] = fill_hist(qcd_hist, Bshape) * scale_factor[cat_parent] return hists