20 #include "RooLinearMorph.h" 29 class TestBasic705 :
public RooFitTestUnit
35 TestBasic705(TFile* refFile,
Bool_t writeRef,
Int_t verbose) : RooFitTestUnit(
"Linear morph operator p.d.f.",refFile,writeRef,verbose) {} ;
60 x.setBins(1000,
"cache") ;
61 alpha.setBins(50,
"cache") ;
65 RooLinearMorph lmorph(
"lmorph",
"lmorph",g1,g2,
x,alpha) ;
113 lmorph.setCacheAlpha(
kTRUE) ;
114 lmorph.fitTo(*data) ;
119 lmorph.plotOn(frame2) ;
129 RooNLLVar nll(
"nll",
"nll",lmorph,*data) ;
132 lmorph.setCacheAlpha(
kFALSE) ;
135 regPlot(frame1,
"rf705_plot1") ;
136 regPlot(frame2,
"rf705_plot2") ;
137 regPlot(frame3,
"rf705_plot3") ;
138 regTH(hh,
"rf705_hh") ;
virtual RooPlot * plotOn(RooPlot *frame, const RooCmdArg &arg1=RooCmdArg::none(), const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none(), const RooCmdArg &arg7=RooCmdArg::none(), const RooCmdArg &arg8=RooCmdArg::none()) const
Plot dataset on specified frame.
RooCmdArg LineColor(Color_t color)
RooCmdArg Range(const char *rangeName, Bool_t adjustNorm=kTRUE)
RooRealVar represents a fundamental (non-derived) real valued object.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
Class RooNLLVar implements a a -log(likelihood) calculation from a dataset and a PDF.
RooCmdArg Name(const char *name)
RooDataSet is a container class to hold unbinned data.
A RooPlot is a plot frame and a container for graphics objects within that frame. ...
RooCmdArg YVar(const RooAbsRealLValue &var, const RooCmdArg &arg=RooCmdArg::none())
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
RooConstVar & RooConst(Double_t val)
RooCmdArg Bins(Int_t nbin)
RooPolynomial implements a polynomial p.d.f of the form By default coefficient a_0 is chosen to be 1...
RooCmdArg Binning(const RooAbsBinning &binning)