'MULTIDIMENSIONAL MODELS' RooFit tutorial macro #307
Complete example with use of full p.d.f. with per-event errors
void rf307_fullpereventerrors()
{
RooRealVar dterr(
"dterr",
"per-event error on dt",0.01,10) ;
RooGaussModel gm(
"gm1",
"gauss model scaled bt per-event error",dt,bias,sigma,dterr) ;
RooDataSet* expDataDterr = pdfDtErr.generate(dterr,10000) ;
RooHistPdf pdfErr(
"pdfErr",
"pdfErr",dterr,*expHistDterr) ;
model.fitTo(*data) ;
RooPlot* frame = dt.frame(
Title(
"Projection of model(dt|dterr) on dt")) ;
model.plotOn(frame) ;
TCanvas* c =
new TCanvas(
"rf307_fullpereventerrors",
"rf307_fullperventerrors",800, 400);
}
- Author
- 07/2008 - Wouter Verkerke
Definition in file rf307_fullpereventerrors.C.