Skip to content

Commit

Permalink
bug fix: cut: handle - evaltemp and hname correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
goi42 committed Aug 30, 2019
1 parent a8a7f7d commit 6fcfd69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/myROOTtypes/cut.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ def __sub__(self, another):
newcut = '!(' + ancut + ')'
if not self.name.strip():
newname = '!(' + anname + ')'
newevaltemp = 'not (' + newevaltemp + ')'
newhname = 'not_' + newhname
return cut(
newcut, newname,
weight=newweight, hname=newhname, evaltemp=newevaltemp,
Expand Down

0 comments on commit 6fcfd69

Please sign in to comment.