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 381af8f commit 150d0a3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
18 changes: 15 additions & 3 deletions ostap/fitting/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1704,9 +1704,21 @@ def _rds_makeWeighted_ ( dataset ,
dataset.addVar ( wname , weightwar )
weightvar = wname

print ( 'MAKE EI"GHOTED/4' )

varset = dataset.get()
print ( 'MAKE EI"GHOTED/4' , [ v.name for v in dataset.get() ] )

varset = dataset.get()
if ( 6, 18 ) <= root_info < ( 6 , 20 ) :
print ( 'SPECIAL TRATMENT!' , root_info )
args = dsID() , dataset.GetTile() , varset, ROOT.RoofitWeightVar ( weightvar )
if cuts : args + ( ROOT.RooFit.Cut ( cuts ) )
result = ROOT.RooDataSet ( *args )
for entry, w in dataset :
weight = entry [ weightvar ]
result.add ( entry , float ( weight ) )
return result

print ( 'MAKE EI"GHOTED/5' )

## make weighted dataset
result = ROOT.RooDataSet ( dsID() ,
dataset.GetTitle() ,
Expand Down
5 changes: 2 additions & 3 deletions ostap/plotting/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,11 @@ def OstapStyle ( name ,
s , c , n = key.partition(':')
if not c : continue
n1 = n.strip() if c else s.strip()

if n1 == n2 :
config = CONFIG.config[key]
logger.info ( 'Use existing configuration style %s' % name )
logger.debug ( 'Use existing configuration style %s' % name )
break

import ostap.plotting.makestyles as MS
style = MS.make_ostap_style ( name = name ,
description = description ,
Expand Down

0 comments on commit 150d0a3

Please sign in to comment.