Skip to content

Commit

Permalink
1. use 'RoMinimizer' instead of RooMinuit for fresh version of ROOT
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaBelyaev committed Sep 7, 2023
1 parent 94f5eac commit 2fc658c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ReleaseNotes/release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
1, add the methods `min` & `max` to histogram objects
1. make use for `ROOT::TDirectory::TContext` for `ROOTCWD`
1. imporve functions/pdf for Benini distribution allowing terms upto power 10

1. use 'RoMinimizer' instead of `RooMinuit` for fresh version of ROOT

## Backward incompatible:

## Bug fixes:
Expand Down
5 changes: 4 additions & 1 deletion ostap/fitting/pdfbasic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,10 @@ def chi2fitTo ( self ,
args_ = tuple ( lst2 + lst1 )
#
chi2 = ROOT.RooChi2Var ( rootID ( "chi2_" ) , "chi2(%s)" % self.name , self.pdf , hdataset , *args_ )
m = ROOT.RooMinuit ( chi2 )
##
if root_info < ( 6 , 28 ) : m = ROOT.RooMinuit ( chi2 )
else : m = ROOT.RooMinimizer ( chi2 )
##
m.migrad ()
m.hesse ()
result = m.save ()
Expand Down

0 comments on commit 2fc658c

Please sign in to comment.