'Hypothesis Test Inversion' RooStats tutorial macro #801
This tutorial shows an example of using the HypoTestInverterOriginal class
Processing /mnt/build/workspace/root-makedoc-v614/rootspi/rdoc/src/v6-14-00-patches/tutorials/roostats/rs801_HypoTestInverterOriginal.C...
[1mRooFit v3.60 -- Developed by Wouter Verkerke and David Kirkby[0m
Copyright (C) 2000-2013 NIKHEF, University of California & Stanford University
All rights reserved, please read http://roofit.sourceforge.net/license.txt
Target matches upper limit: de-activate interpolation in HypoTestInverterResult
Running for r = 3
Test statistics has been evaluated for data
HybridCalculatorOriginal: run 1000 toy-MC experiments
with test statistics index: 2
....... toy number 0 / 1000
....... toy number 500 / 1000
computed: 0.34252
Running for r = 5
Test statistics has been evaluated for data
HybridCalculatorOriginal: run 1000 toy-MC experiments
with test statistics index: 2
....... toy number 0 / 1000
....... toy number 500 / 1000
computed: 0.0669145
The confidence level at both boundaries are both too large ( 0.34252 and 0.0669145
Run again with other boundaries or larger toy-MC statistics
The computed upper limit is: 5
an estimated error on this upper limit is: 0
void rs801_HypoTestInverterOriginal()
{
myhc.SetTestStatistic(2);
myhc.SetNumberOfToys(1000);
myhc.UseNuisance(false);
myInverter.SetTestSize(0.10);
myInverter.UseCLs(true);
myInverter.RunAutoScan(3.,5,myInverter.Size()/2,0.005);
std::cout << "The computed upper limit is: " << upperLimit << std::endl;
std::cout << "an estimated error on this upper limit is: " << ulError << std::endl;
}
rs801_HypoTestInverterOriginal();
}
- Author
- Gregory Schott
Definition in file rs801_HypoTestInverterOriginal.C.