to a dataset D(x,cut), where cut is a category encoding a selection, of which the efficiency as function of x should be described by eff(x)
 
 
{
   
   
 
   
 
   
 
   
   
 
   
   RooCategory cut(
"cut", 
"cutr", { {
"accept", 1}, {
"reject", 0} });
 
 
   
   RooEfficiency effPdf(
"effPdf", 
"effPdf", effFunc, cut, 
"accept");
 
 
   
   
 
   
   
 
   
 
   
   
 
   
 
   
   
 
   
 
   
 
   
   TCanvas *ca = 
new TCanvas(
"rf701_efficiency", 
"rf701_efficiency", 800, 400);
 
}
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
 
RooArgList is a container object that can hold multiple RooAbsArg objects.
 
RooArgSet is a container object that can hold multiple RooAbsArg objects.
 
RooCategory is an object to represent discrete states.
 
RooDataSet is a container class to hold unbinned data.
 
RooEfficiency is a PDF helper class to fit efficiencies parameterized by a supplied function F.
 
A RooPlot is a plot frame and a container for graphics objects within that frame.
 
static RooPlot * frame(const RooAbsRealLValue &var, double xmin, double xmax, Int_t nBins)
Create a new frame for a given variable in x.
 
void Draw(Option_t *options=nullptr) override
Draw this plot and all of the elements it contains.
 
RooPolynomial implements a polynomial p.d.f of the form.
 
RooProdPdf is an efficient implementation of a product of PDFs of the form.
 
RooRealVar represents a variable that can be changed from the outside.
 
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title.
 
virtual void SetLeftMargin(Float_t leftmargin)
Set Pad left margin in fraction of the pad width.
 
TVirtualPad * cd(Int_t subpadnumber=0) override
Set current canvas & pad.
 
void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0) override
Automatic pad generation by division.
 
RooCmdArg Conditional(const RooArgSet &pdfSet, const RooArgSet &depSet, bool depsAreCond=false)
 
RooConstVar & RooConst(double val)
 
RooCmdArg Bins(Int_t nbin)
 
RooCmdArg ConditionalObservables(Args_t &&... argsOrArgSet)
Create a RooCmdArg to declare conditional observables.
 
RooCmdArg MarkerColor(Color_t color)
 
RooCmdArg Cut(const char *cutSpec)
 
RooCmdArg Efficiency(const RooCategory &cat)
 
RooCmdArg LineColor(Color_t color)
 
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
 
   
[#1] INFO:Minimization -- RooAbsMinimizerFcn::setOptimizeConst: activating const optimization
[#1] INFO:Minimization -- RooAbsMinimizerFcn::setOptimizeConst: deactivating const optimization
[#1] INFO:Plotting -- RooTreeData::plotOn: plotting 8176 events out of 10000 total events