diff --git a/ostap/fitting/dataset.py b/ostap/fitting/dataset.py index feb12837..5fcc40c5 100644 --- a/ostap/fitting/dataset.py +++ b/ostap/fitting/dataset.py @@ -1709,11 +1709,12 @@ def _rds_makeWeighted_ ( dataset , varset = dataset.get() if ( 6, 18 ) <= root_info < ( 6 , 20 ) : print ( 'SPECIAL TRATMENT!' , root_info ) - args = dsID() , dataset.GetTile() , varset, ROOT.RoofitWeightVar ( weightvar ) + args = dsID() , dataset.GetTitle() , varset, ROOT.Roofit.WeightVar ( weightvar ) if cuts : args + ( ROOT.RooFit.Cut ( cuts ) ) result = ROOT.RooDataSet ( *args ) for entry, w in dataset : weight = entry [ weightvar ] + print ( 'add entry' , [ v.name for v in entry ] , weight ) result.add ( entry , float ( weight ) ) return result