Skip to content

Commit 47ed281

Browse files
committed
reduce logging from btag_weights producer
1 parent 2ab8ec5 commit 47ed281

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

hbw/production/weights.py

+13-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,13 @@ def event_weights_to_normalize(self: Producer, events: ak.Array, results: Select
6363

6464
if not has_tag("skip_btag_weights", self.config_inst, self.dataset_inst, operator=any):
6565
# compute btag SF weights (for renormalization tasks)
66-
events = self[btag_weights](events, jet_mask=results.aux["jet_mask"], **kwargs)
66+
events = self[btag_weights](
67+
events,
68+
jet_mask=results.aux["jet_mask"],
69+
negative_b_score_action="ignore",
70+
negative_b_score_log_mode="debug",
71+
**kwargs,
72+
)
6773

6874
# skip scale/pdf weights for some datasets (missing columns)
6975
if not has_tag("skip_scale", self.config_inst, self.dataset_inst, operator=any):
@@ -246,7 +252,12 @@ def event_weights(self: Producer, events: ak.Array, **kwargs) -> ak.Array:
246252

247253
if not has_tag("skip_btag_weights", self.config_inst, self.dataset_inst, operator=any):
248254
# compute and normalize btag SF weights
249-
events = self[btag_weights](events, **kwargs)
255+
events = self[btag_weights](
256+
events,
257+
negative_b_score_action="ignore",
258+
negative_b_score_log_mode="debug",
259+
**kwargs,
260+
)
250261
events = self[normalized_btag_weights](events, **kwargs)
251262

252263
# compute electron and muon SF weights

0 commit comments

Comments
 (0)