Skip to content

Commit

Permalink
?
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaBelyaev committed Jan 16, 2025
1 parent e1cf6d4 commit 5e29f09
Show file tree
Hide file tree
Showing 3 changed files with 497 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .aux/test_with_lcg
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ CMTCONFIG=$2
source /cvmfs/sft.cern.ch/lcg/views/${LCG}/${CMTCONFIG}/setup.sh
source build/INSTALL/thisostap.sh
cd build
ctest -N && cmake .. -DCMAKE_INSTALL_PREFIX=./INSTALL/ && ctest -j2 --output-on-failure --test-output-size-failed 5000000
ctest -N && cmake .. -DCMAKE_INSTALL_PREFIX=./INSTALL/ && ctest -j2 -R roostat --output-on-failure --test-output-size-failed 5000000
5 changes: 2 additions & 3 deletions ostap/fitting/roostats.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def __init__ ( self ,
raise TypeError ( "Unknown constraint:%s" % typename ( c ) )

## ADD CONSTRAINTS TO PDF
final_pdf = self.add_constraints ( raw_pdf , *cnts )
## final_pdf = self.add_constraints ( raw_pdf , *cnts )

## attention, redefine/update
constraints = cnts
Expand Down Expand Up @@ -238,7 +238,7 @@ def __init__ ( self ,
self.__global_observables = global_observables

## nuisancee = all_parameters - poi - global_observables
nuisance = final_pdf.getParameters ( dataset ) - poi ## - global_observables
nuisance = final_pdf.getParameters ( dataset ) - poi - global_observables
## (9) Nuisance parameters

mc.SetNuisanceParameters ( nuisance )
Expand Down Expand Up @@ -455,7 +455,6 @@ def pdf_param ( self , param , dataset = None ) :
## already parameter ?
if isinstance ( param , par_types ) and param in params : return param
## loop by name
print ( 'PDFPARAM', param, typename ( param ) , param.name , isinstance ( param , string_types ) , params )
if isinstance ( param , string_types ) :
for p in params :
if p.name == param : return p
Expand Down
Loading

0 comments on commit 5e29f09

Please sign in to comment.