Skip to content

Commit

Permalink
Merge pull request #67 from artlbv/fix_rate_eta
Browse files Browse the repository at this point in the history
Fix eta overwrite bug
  • Loading branch information
artlbv authored Mar 13, 2024
2 parents 4b9a686 + 969ef2c commit eb64ee2
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
7 changes: 6 additions & 1 deletion configs/V33nano/objects/jets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,9 @@ L1TrackJet:
barrel: [0, 1.5]
endcap: [1.5, 2.4]
ids:
default
default:
cuts:
inclusive:
- "abs({eta}) < 7"


12 changes: 12 additions & 0 deletions configs/V33nano/rate_plots/.backups/.test.yml~
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions configs/V33nano/rate_plots/test.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion menu_tools/utils/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit eb64ee2

Please sign in to comment.