'SPECIAL PDFS' RooFit tutorial macro #702
Unbinned maximum likelihood fit of an efficiency eff(x) function to a dataset D(x,cut), where cut is a category encoding a selection whose
Processing /mnt/build/workspace/root-makedoc-v610/rootspi/rdoc/src/v6-10-00-patches/tutorials/roofit/rf702_efficiencyfit_2D.C...
{
RooFormulaVar effFunc(
"effFunc",
"((1-ax)+ax*cos((x-cx)/bx))*((1-ay)+ay*cos((y-cy)/by))",
RooArgList(ax,bx,cx,x,ay,by,cy,y)) ;
cut.defineType("accept",1) ;
cut.defineType("reject",0) ;
TCanvas* ca =
new TCanvas(
"rf702_efficiency_2D",
"rf702_efficiency_2D",1200,400) ;
return ;
}
- Author
- //
Definition in file rf702_efficiencyfit_2D.C.