Skip to content

Commit

Permalink
fix bug in logic of added cut on :region in Object class
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhundhausen committed Jan 30, 2024
1 parent 193e5a1 commit a89f9f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion menu_tools/utils/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a89f9f9

Please sign in to comment.