diff --git a/configs/V33nano/objects/jets.yaml b/configs/V33nano/objects/jets.yaml index 087e1c87..d7bb0010 100644 --- a/configs/V33nano/objects/jets.yaml +++ b/configs/V33nano/objects/jets.yaml @@ -84,4 +84,9 @@ L1TrackJet: barrel: [0, 1.5] endcap: [1.5, 2.4] ids: - default + default: + cuts: + inclusive: + - "abs({eta}) < 7" + + diff --git a/configs/V33nano/rate_plots/.backups/.test.yml~ b/configs/V33nano/rate_plots/.backups/.test.yml~ new file mode 100644 index 00000000..9e724bbd --- /dev/null +++ b/configs/V33nano/rate_plots/.backups/.test.yml~ @@ -0,0 +1,12 @@ +JetSC8Rates_byRegion: + sample: MinBias + version: V33nano + test_objects: + # - L1puppiJetSC4:default + - L1puppiJetSC8:default + - L1puppiJetSC8:default:barrel + - L1puppiJetSC8:default:endcap + binning: + min: 40 + max: 420 + step: 20 diff --git a/configs/V33nano/rate_plots/test.yml b/configs/V33nano/rate_plots/test.yml new file mode 100644 index 00000000..f66faf7e --- /dev/null +++ b/configs/V33nano/rate_plots/test.yml @@ -0,0 +1,13 @@ +JetSC8Rates_byRegion2: + sample: MinBias + version: V33nano + test_objects: + # - L1puppiJetSC4:default + - L1puppiJetSC8:default + - L1puppiJetSC8:default:inclusive + - L1puppiJetSC8:default:barrel + #- L1puppiJetSC8:default:endcap + binning: + min: 40 + max: 420 + step: 20 diff --git a/menu_tools/utils/objects.py b/menu_tools/utils/objects.py index 840d76d5..5c263c2f 100644 --- a/menu_tools/utils/objects.py +++ b/menu_tools/utils/objects.py @@ -173,7 +173,7 @@ def compute_selection_mask_for_object_cuts(obj: Object, ak_array: ak.Array) -> a return sel ## add fake eta - if "eta" not in ak_array["eta"].fields: + if "eta" not in ak_array.fields: ak_array["eta"] = 0 for range_i, range_cuts in obj.cuts.items():