Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix eta overwrite bug #67

Merged
merged 2 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading