From 35ae2a9b2587c59eccbe38073f0904f98a5b0005 Mon Sep 17 00:00:00 2001 From: Vanya Belyaev Date: Sat, 10 Aug 2024 15:06:03 +0200 Subject: [PATCH] fix ? --- ostap/fitting/dataset.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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