Skip to content

Commit

Permalink
fix ?
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaBelyaev committed Aug 10, 2024
1 parent 150d0a3 commit 35ae2a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ostap/fitting/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 35ae2a9

Please sign in to comment.