Skip to content

Commit

Permalink
handle mc bkg with no events in regions
Browse files Browse the repository at this point in the history
  • Loading branch information
andresnava1000 committed Apr 5, 2024
1 parent 58e3b15 commit d83d516
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/HHbbVV/postprocessing/CreateDatacard.py
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,11 @@ def get_systematics_abcd(channels, channels_dict, channels_summed, rates_dict):
vals = []
for channel in channels:
for _, key in enumerate(all_processes):
if key == qcd_data_key or skey not in channel_systs_dict[channel][key]:
if (
key == qcd_data_key
or key not in channel_systs_dict[channel]
or skey not in channel_systs_dict[channel][key]
):
vals.append("-")
else:
val, val_down = channel_systs_dict[channel][key][skey]
Expand Down

0 comments on commit d83d516

Please sign in to comment.