Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaBelyaev committed Jul 17, 2024
1 parent df49901 commit 778875c
Show file tree
Hide file tree
Showing 5 changed files with 280 additions and 1,198 deletions.
10 changes: 6 additions & 4 deletions ostap/frames/frames.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,11 +441,13 @@ def _fr_the_moment_ ( frame , N , expression , cuts = '' ) :
cname = vn

if cname :
TT = ROOT.Detail.RDF.WMoment_(N)
return current.Book( ROOT.std.move ( TT () ) , CNT ( [ vname , cname ] ) )
## TT = Ostap.Actions.WMoment_(N)
TT = ROOT.Detail.RDF.WStatAction ( Ostap.Math.WMoment_(N) )
return current.Book ( ROOT.std.move ( TT () ) , CNT ( [ vname , cname ] ) )
else :
TT = ROOT.Detail.RDF.Moment_(N)
return current.Book( ROOT.std.move ( TT () ) , CNT ( 1 , vname ) )
## TT = Ostap.Actions.Moment_(N)
TT = ROOT.Detail.RDF.StatAction ( Ostap.Math.Moment_(N) )
return current.Book ( ROOT.std.move ( TT () ) , CNT ( 1 , vname ) )

return results

Expand Down
12 changes: 6 additions & 6 deletions ostap/frames/tests/test_frames_frames.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,12 +335,12 @@ def test_frame8 () :
## test_frame0 ()
## test_frame1 ()
test_frame2 ()
## test_frame3 ()
## test_frame4 ()
## test_frame5 ()
## test_frame6 ()
## test_frame7 ()
## test_frame8 ()
test_frame3 ()
test_frame4 ()
test_frame5 ()
test_frame6 ()
test_frame7 ()
test_frame8 ()

else :

Expand Down
Loading

0 comments on commit 778875c

Please sign in to comment.