diff --git a/ReleaseNotes/release_notes.md b/ReleaseNotes/release_notes.md index 3a3e7410..82a2d7b5 100644 --- a/ReleaseNotes/release_notes.md +++ b/ReleaseNotes/release_notes.md @@ -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: diff --git a/ostap/fitting/pdfbasic.py b/ostap/fitting/pdfbasic.py index 70c43bc0..5a8dc2fb 100644 --- a/ostap/fitting/pdfbasic.py +++ b/ostap/fitting/pdfbasic.py @@ -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 ()