From 81a97846d4e2db5503af95643d272b6232910b82 Mon Sep 17 00:00:00 2001 From: Daniel Hundhausen Date: Wed, 31 Jan 2024 22:57:02 +0100 Subject: [PATCH] add ht to rate plot config --- configs/V29/rate_plots/all_rate_plots.yaml | 12 ++++++++++++ menu_tools/utils/scalings.py | 3 --- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/configs/V29/rate_plots/all_rate_plots.yaml b/configs/V29/rate_plots/all_rate_plots.yaml index 054eef04..d2aa5401 100644 --- a/configs/V29/rate_plots/all_rate_plots.yaml +++ b/configs/V29/rate_plots/all_rate_plots.yaml @@ -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 diff --git a/menu_tools/utils/scalings.py b/menu_tools/utils/scalings.py index 3b239ca4..65bbf00f 100644 --- a/menu_tools/utils/scalings.py +++ b/menu_tools/utils/scalings.py @@ -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!")