27 using namespace RooFit;
28 using namespace RooStats;
66 TGraphErrors* gr1 = myInverterPlot.
MakePlot();
72 std::cout <<
"The computed upper limit is: " << upperLimit << std::endl;
73 std::cout <<
"an estimated error on this upper limit is: " << ulError << std::endl;
void rs801_HypoTestInverterOriginal()
virtual HypoTestInverterResult * GetInterval() const
Main interface to get a ConfInterval, pure virtual.
bool RunAutoScan(double xMin, double xMax, double target, double epsilon=0.005, unsigned int numAlgorithm=0)
HybridCalculatorOriginal class.
void SetNumberOfToys(unsigned int ntoys)
RooConstVar represent a constant real-valued object.
virtual void SetTestSize(Double_t size)
set the size of the test (rate of Type I error) ( e.g. 0.05 for a 95% Confidence Interval) ...
RooRealVar represents a fundamental (non-derived) real valued object.
virtual Double_t Size() const
Get the size of the test (eg. rate of Type I error)
TGraphErrors * MakePlot(Option_t *opt="")
return a TGraphErrors with the obtained observed p-values resultinf from the scan By default (Option ...
void UseNuisance(bool on=true)
void UseCLs(bool on=true)
RooDataSet is a container class to hold unbinned data.
This class is now depratcated and to be replaced by the HypoTestInverter.
HypoTestInverterResult class: holds the array of hypothesis test results and compute a confidence int...
Class to plot an HypoTestInverterResult, result of the HypoTestInverter calculator.
Double_t UpperLimitEstimatedError()
Estimate of lower limit error function evaluates only a rought error on the lower limit...
RooConstVar & RooConst(Double_t val)
RooDataSet * generate(const RooArgSet &whatVars, Int_t nEvents, const RooCmdArg &arg1, const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none())
Generate a new dataset containing the specified variables with events sampled from our distribution...
RooPolynomial implements a polynomial p.d.f of the form By default coefficient a_0 is chosen to be 1...
void SetTestStatistic(int index)
set the desired test statistics: index=1 : 2 * log( L_sb / L_b ) (DEFAULT) index=2 : number of genera...