Skip to content

Commit b31345f

Browse files
committed
fix prompt dataMC and ttbar bSF CI
1 parent 1060e91 commit b31345f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/BTVNanoCommissioning/utils/histogramming/histogrammer.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,15 @@ def histo_writter(pruned_ev, output, weights, systematics, isSyst, SF_map):
151151
and "btag" not in histname
152152
and histname in pruned_ev.SelJet.fields
153153
):
154+
temp_weights = flatten(
155+
ak.broadcast_arrays(
156+
weights.partial_weight(exclude=exclude_btv),
157+
pruned_ev.SelJet["pt"],
158+
)[0]
159+
)
160+
temp_syst = np.full(len(temp_weights), syst[0])
154161
h.fill(
155-
syst,
162+
temp_syst,
156163
flatten(genflavor),
157164
flatten(pruned_ev.SelJet[histname]),
158165
weight=flatten(

0 commit comments

Comments
 (0)