50void rs101_limitexample()
 
   63   wspace.
factory(
"Poisson::countingModel(obs[150,0,300], " 
   64                   "sum(s[50,0,120]*ratioSigEff[1.,0,3.],b[100]*ratioBkgEff[1.,0.,3.]))"); 
 
   67   wspace.factory(
"Gaussian::sigConstraint(gSigEff[1,0,3],ratioSigEff,0.05)"); 
 
   68   wspace.factory(
"Gaussian::bkgConstraint(gSigBkg[1,0,3],ratioBkgEff,0.2)");  
 
   69   wspace.factory(
"PROD::modelWithConstraints(countingModel,sigConstraint,bkgConstraint)"); 
 
  120   plc.SetTestSize(.05);
 
  129   plotInt.SetTitle(
"Profile Likelihood Ratio and Posterior for S");
 
  134   fc.UseAdaptiveSampling(
true);
 
  135   fc.FluctuateNumDataEntries(
false); 
 
  147   ph.SetVariables((
RooArgSet &)fit->floatParsFinal());
 
  148   ph.SetCovMatrix(fit->covarianceMatrix());
 
  149   ph.SetUpdateProposalParameters(
true);
 
  150   ph.SetCacheSize(100);
 
  154   mc.SetNumIters(20000);    
 
  156   mc.SetNumBurnInSteps(40); 
 
  158   mc.SetLeftSideTailFraction(0.5);                        
 
  162   std::cout << 
"Profile lower limit on s = " << 
lrinterval->LowerLimit(*s) << std::endl;
 
  163   std::cout << 
"Profile upper limit on s = " << 
lrinterval->UpperLimit(*s) << std::endl;
 
  169      std::cout << 
"FC lower limit on s = " << 
fcll << std::endl;
 
  170      std::cout << 
"FC upper limit on s = " << 
fcul << std::endl;
 
  188   std::cout << 
"MCMC lower limit on s = " << 
mcll << std::endl;
 
  189   std::cout << 
"MCMC upper limit on s = " << 
mcul << std::endl;
 
  190   std::cout << 
"MCMC Actual confidence level: " << 
mcInt->GetActualConfidenceLevel() << std::endl;
 
  195   std::unique_ptr<RooDataSet> 
chainData{
mcInt->GetChainAsDataSet()};
 
  198   std::cout << 
"plotting the chain data - nentries = " << 
chainData->numEntries() << std::endl;
 
  201   chain->SetMarkerStyle(6);
 
  204   chain->Draw(
"s:ratioSigEff:ratioBkgEff", 
"nll_MarkovChain_local_", 
"box"); 
 
  209   std::cout << 
"plotting the scanned points used in the frequentist construction - npoints = " 
  218      double x = 
evt->getRealValue(
"ratioBkgEff");
 
  219      double y = 
evt->getRealValue(
"ratioSigEff");
 
  220      double z = 
evt->getRealValue(
"s");
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Abstract interface for all probability density functions.
void setConstant(bool value=true)
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Container class to hold unbinned data.
Variable that can be changed from the outside.
void setVal(double value) override
Set value of variable to 'value'.
The FeldmanCousins class (like the Feldman-Cousins technique) is essentially a specific configuration...
This class provides simple and straightforward utilities to plot a LikelihoodInterval object.
LikelihoodInterval is a concrete implementation of the RooStats::ConfInterval interface.
Bayesian Calculator estimating an interval or a credible region using the Markov-Chain Monte Carlo me...
This class provides simple and straightforward utilities to plot a MCMCInterval object.
MCMCInterval is a concrete implementation of the RooStats::ConfInterval interface.
ModelConfig is a simple class that holds configuration information specifying how a model should be u...
PointSetInterval is a concrete implementation of the ConfInterval interface.
The ProfileLikelihoodCalculator is a concrete implementation of CombinedCalculator (the interface cla...
ProposalFunction is an interface for all proposal functions that would be used with a Markov Chain Mo...
Persistable container for RooFit projects.
RooFactoryWSTool & factory()
Return instance to factory tool.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
Graphics object made of three arrays X, Y and Z with the same number of points each.
virtual void SetPoint(Int_t i, Double_t x, Double_t y)
Set x and y values for point number i.
void Draw(Option_t *chopt="") override
Draw this graph with its current attributes.
Use the TLine constructor to create a simple line.
void Print(Option_t *option="") const override
Print TNamed name and title.
void Start(Bool_t reset=kTRUE)
Start the stopwatch.
void Stop()
Stop the stopwatch.
void Print(Option_t *option="") const override
Print the real and cpu time passed between the start and stop events.
A TTree represents a columnar dataset.
RooCmdArg Constrain(const RooArgSet ¶ms)
RooCmdArg Save(bool flag=true)
RooCmdArg PrintLevel(Int_t code)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
Namespace for the RooStats classes.
TTree * GetAsTTree(TString name, TString desc, const RooDataSet &data)
Create a TTree with the given name and description. All RooRealVars in the RooDataSet are represented...