Skip to content

Commit

Permalink
tiny tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaBelyaev committed Aug 5, 2024
1 parent 3e4bf67 commit 531e5f6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ostap/histos/histos.py
Original file line number Diff line number Diff line change
Expand Up @@ -4288,14 +4288,16 @@ def _my_eff_ ( a , r , c ) :

return 1.0 / ( 1.0 + d )

N = len ( h1 )
N = len ( h1 )
sumi = VE ( 0 , 0 )
for i in h1 :

c = h1 [ i ]

rest = VE ( 0 , 0 )
for j in range ( i + 1 , N + 1 ) : rest += h1 [ j ]
for j in reversed ( h1 ) :
if i < j : rest += h1 [ j ]
else : break

a = sumi
r = rest
Expand Down

0 comments on commit 531e5f6

Please sign in to comment.