Skip to content

Commit

Permalink
add ht to rate plot config
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhundhausen committed Jan 31, 2024
1 parent 8a87145 commit 81a9784
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
12 changes: 12 additions & 0 deletions configs/V29/rate_plots/all_rate_plots.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
HTRates:
sample: MinBias
version: V29
test_objects:
- phase1PuppiHT:default
# - seededConePuppiHT:default
# - trackerJet:default
binning:
min: 40
max: 420
step: 20

JetDefaultRates:
sample: MinBias
version: V29
Expand Down
3 changes: 0 additions & 3 deletions menu_tools/utils/scalings.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,10 @@ def load_scaling_params(obj: Object, eta_range: str) -> tuple[float, float]:

def get_pt_branch(arr: ak.Array) -> ak.Array:
if "pt" in arr.fields:
print("pt branch selected for offline")
pt_orig = arr.pt
elif "et" in arr.fields:
print("et branch selected for offline")
pt_orig = arr.et
elif "" in arr.fields:
print("'' branch selected for offline")
pt_orig = arr[""][:, 0]
else:
raise RuntimeError("Unknown pt branch!")
Expand Down

0 comments on commit 81a9784

Please sign in to comment.