Hi,
I’m trying to set a limit on a parameter using a simultaneous pdf and I have issues running the FrequentistCalculator. When I try to scan the range [0-600] of my POI the toy generation fails at POI=0:
[#1] INFO:InputArguments -- HypoTestInverter ---- Input models:
using as S+B (null) model : sbModel
using as B (alternate) model : sbModel_with_poi_0
Doing a fixed scan in interval: [0:600]
[#1] INFO:Eval -- HypoTestInverter::GetInterval - run a fixed scan
[#1] INFO:ObjectHandling -- RooWorkspace::saveSnaphot(ws) replacing previous snapshot with name sbModel__snapshot
[#0] PROGRESS:Eval -- Running for Signal = 0
=== Using the following for sbModel ===
Observables: RooArgSet:: = (x)
Parameters of Interest: RooArgSet:: = (Signal)
Nuisance Parameters: RooArgSet:: = (bkgRatio_11,bkgRatio_12,bkgRatio_15,bkgRatio_16,bkgRatio_17,bkgRatio_18)
Global Observables: RooArgSet:: = (Cst_cont_frac,frac_11,frac_12,frac_15,frac_16,frac_17,frac_18)
PDF: RooSimultaneous::model[ indexCat=category 2011=PDF_11 2012=PDF_12 2015=PDF_15 2016=PDF_16 2017=PDF_17 2018=PDF_18 ] = 505.437
Snapshot:
1) 0x521ef90 RooRealVar:: Signal = 0 +/- (-148.468,149.442) L(-700 - 700) "Total signal yield"
=== Using the following for sbModel_with_poi_0 ===
Observables: RooArgSet:: = (x)
Parameters of Interest: RooArgSet:: = (Signal)
Nuisance Parameters: RooArgSet:: = (bkgRatio_11,bkgRatio_12,bkgRatio_15,bkgRatio_16,bkgRatio_17,bkgRatio_18)
Global Observables: RooArgSet:: = (Cst_cont_frac,frac_11,frac_12,frac_15,frac_16,frac_17,frac_18)
PDF: RooSimultaneous::model[ indexCat=category 2011=PDF_11 2012=PDF_12 2015=PDF_15 2016=PDF_16 2017=PDF_17 2018=PDF_18 ] = 505.437
Snapshot:
1) 0x521e720 RooRealVar:: Signal = 0 +/- (-148.468,149.442) L(-700 - 700) "Total signal yield"
[#0] PROGRESS:Generation -- Test Statistic on data: 0
[#1] INFO:InputArguments -- Profiling conditional MLEs for Null.
[#1] INFO:InputArguments -- Using a ToyMCSampler. Now configuring for Null.
*** Break *** segmentation violation
If I try to perform the scan in [100-600] I get this output:
[#1] INFO:InputArguments -- HypoTestInverter ---- Input models:
using as S+B (null) model : sbModel
using as B (alternate) model : sbModel_with_poi_0
Doing a fixed scan in interval: [100:600]
[#1] INFO:Eval -- HypoTestInverter::GetInterval - run a fixed scan
[#1] INFO:ObjectHandling -- RooWorkspace::saveSnaphot(ws) replacing previous snapshot with name sbModel__snapshot
[#0] PROGRESS:Eval -- Running for Signal = 100
=== Using the following for sbModel ===
Observables: RooArgSet:: = (x)
Parameters of Interest: RooArgSet:: = (Signal)
Nuisance Parameters: RooArgSet:: = (bkgRatio_11,bkgRatio_12,bkgRatio_15,bkgRatio_16,bkgRatio_17,bkgRatio_18)
Global Observables: RooArgSet:: = (Cst_cont_frac,frac_11,frac_12,frac_15,frac_16,frac_17,frac_18)
PDF: RooSimultaneous::model[ indexCat=category 2011=PDF_11 2012=PDF_12 2015=PDF_15 2016=PDF_16 2017=PDF_17 2018=PDF_18 ] = 507.572
Snapshot:
1) 0x5d59f80 RooRealVar:: Signal = 100 +/- (-148.468,149.442) L(-700 - 700) "Total signal yield"
=== Using the following for sbModel_with_poi_0 ===
Observables: RooArgSet:: = (x)
Parameters of Interest: RooArgSet:: = (Signal)
Nuisance Parameters: RooArgSet:: = (bkgRatio_11,bkgRatio_12,bkgRatio_15,bkgRatio_16,bkgRatio_17,bkgRatio_18)
Global Observables: RooArgSet:: = (Cst_cont_frac,frac_11,frac_12,frac_15,frac_16,frac_17,frac_18)
PDF: RooSimultaneous::model[ indexCat=category 2011=PDF_11 2012=PDF_12 2015=PDF_15 2016=PDF_16 2017=PDF_17 2018=PDF_18 ] = 507.572
Snapshot:
1) 0x5d59710 RooRealVar:: Signal = 0 +/- (-148.468,149.442) L(-700 - 700) "Total signal yield"
[#0] PROGRESS:Generation -- Test Statistic on data: 0
[#1] INFO:InputArguments -- Profiling conditional MLEs for Null.
[#1] INFO:InputArguments -- Using a ToyMCSampler. Now configuring for Null.
[#0] ERROR:InputArguments -- ToyMCSampler: Error : pdf is not extended and number of events per toy is zero
*** Break *** segmentation violation
In the last but one line it seems that my pdf is not extended, however I do set the extended term in the likelihood.
I attach the workspace and a small script to reproduce the problem.
Cheers,
Jacopo
test_CLs_method.py (3.1 KB) ws.root (23.9 KB)