Skip to content

Commit

Permalink
add ftatVar as th efirst option (if/when available)
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaBelyaev committed Apr 26, 2024
1 parent 90ad844 commit 50f1a7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ostap/trees/trees.py
Original file line number Diff line number Diff line change
Expand Up @@ -1266,10 +1266,10 @@ def _rt_table_0_ ( tree ,
## collect information
_vars = []

print ( 'RT_TABLE' , cuts , args )
if hasattr ( tree , 'fstatVar' ) : s0 = tree.fstatVar ( '1' , cuts , *args )
elif hasattr ( tree , 'pstatVar' ) : s0 = tree.pstatVar ( '1' , cuts , *args )
else : s0 = tree. statVar ( '1' , cuts , *args )

if hasattr ( tree , 'pstatVar' ) : s0 = tree.pstatVar ( '1' , cuts , *args )
else : s0 = tree. statVar ( '1' , cuts , *args )
n0 = s0.nEntries ()

## no entries passed the cuts
Expand Down

0 comments on commit 50f1a7d

Please sign in to comment.