diff --git a/menu_tools/utils/objects.py b/menu_tools/utils/objects.py index 5a3d06d7..1b281bf3 100644 --- a/menu_tools/utils/objects.py +++ b/menu_tools/utils/objects.py @@ -142,7 +142,7 @@ def cuts(self) -> Optional[dict[str, list[str]]]: # if a region other than inclusive is specified an eta cut eta_min = self.eta_ranges[self.eta_range][0] eta_max = self.eta_ranges[self.eta_range][1] - global_eta_cut = f"abs({{eta}}) > {eta_min} & abs({{eta}}) < {eta_max}" + global_eta_cut = f"((abs({{eta}}) > {eta_min}) & (abs({{eta}}) < {eta_max}))" try: _cuts["inclusive"].append(global_eta_cut) except KeyError: