@@ -63,7 +63,13 @@ def event_weights_to_normalize(self: Producer, events: ak.Array, results: Select
63
63
64
64
if not has_tag ("skip_btag_weights" , self .config_inst , self .dataset_inst , operator = any ):
65
65
# 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
+ )
67
73
68
74
# skip scale/pdf weights for some datasets (missing columns)
69
75
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:
246
252
247
253
if not has_tag ("skip_btag_weights" , self .config_inst , self .dataset_inst , operator = any ):
248
254
# 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
+ )
250
261
events = self [normalized_btag_weights ](events , ** kwargs )
251
262
252
263
# compute electron and muon SF weights
0 commit comments