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") ;
RooCmdArg LineColor(Color_t color)
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
RooCmdArg Range(const char *rangeName, Bool_t adjustNorm=kTRUE)
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.
virtual void SetLineColor(Color_t lcolor)
RooCmdArg Name(const char *name)
RooCmdArg YVar(const RooAbsRealLValue &var, const RooCmdArg &arg=RooCmdArg::none())
RooConstVar & RooConst(Double_t val)
RooCmdArg Bins(Int_t nbin)
RooCmdArg Binning(const RooAbsBinning &binning)