Special pdf's: unbinned maximum likelihood fit of an efficiency eff(x) function 
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)
 
  
 
void rf701_efficiencyfit()
{
   
   
 
   
 
   
 
   
   
 
   
   RooCategory cut(
"cut", 
"cutr", { {
"accept", 1}, {
"reject", 0} });
 
 
   
 
   
   
 
   
   
 
   
   std::unique_ptr<RooDataSet> 
data{model.generate({
x, cut}, 10000)};
 
 
   
   
 
   
 
   
   
 
   
 
   
 
   
   gPad->SetLeftMargin(0.15);
 
   frame1->GetYaxis()->SetTitleOffset(1.6);
 
   gPad->SetLeftMargin(0.15);
 
   frame2->GetYaxis()->SetTitleOffset(1.4);
 
}
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
 
RooArgList is a container object that can hold multiple RooAbsArg objects.
 
Object to represent discrete states.
 
A PDF helper class to fit efficiencies parameterized by a supplied function F.
 
Plot frame and a container for graphics objects within that frame.
 
RooPolynomial implements a polynomial p.d.f of the form.
 
Efficient implementation of a product of PDFs of the form.
 
Variable that can be changed from the outside.
 
RooCmdArg Conditional(const RooArgSet &pdfSet, const RooArgSet &depSet, bool depsAreCond=false)
 
RooConstVar & RooConst(double val)
 
RooCmdArg Bins(Int_t nbin)
 
RooCmdArg PrintLevel(Int_t code)
 
RooCmdArg ConditionalObservables(Args_t &&... argsOrArgSet)
Create a RooCmdArg to declare conditional observables.
 
RooCmdArg LineColor(TColorNumber color)
 
RooCmdArg MarkerColor(TColorNumber color)
 
RooCmdArg Cut(const char *cutSpec)
 
RooCmdArg Efficiency(const RooCategory &cat)
 
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
 
   
[#1] INFO:Fitting -- RooAbsPdf::fitTo(effPdf_over_effPdf_Int[cut]) fixing normalization set for coefficient determination to observables in data
[#1] INFO:Fitting -- using generic CPU library compiled with no vectorizations
[#1] INFO:Fitting -- Creation of NLL object took 661.061 μs
[#1] INFO:Fitting -- RooAddition::defaultErrorLevel(nll_effPdf_over_effPdf_Int[cut]_modelData) Summation contains a RooNLLVar, using its error level
[#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
- Date
 - July 2008 
 
- Author
 - Wouter Verkerke 
 
Definition in file rf701_efficiencyfit.C.