'BASIC FUNCTIONALITY' RooFit tutorial macro #102
Importing data from ROOT TTrees and THx histograms
#ifndef __CINT__
#endif
using namespace RooFit ;
void rf102_dataimport()
{
RooPlot* frame =
x.frame(
Title(
"Imported TH1 with Poisson error bars")) ;
dh.plotOn(frame) ;
gauss.fitTo(dh) ;
gauss.plotOn(frame) ;
RooPlot* frame2 =
x.frame(
Title(
"Imported TH1 with internal errors")) ;
gauss.plotOn(frame2) ;
ds.Print() ;
RooPlot* frame3 =
y.frame(
Title(
"Unbinned data shown in default frame binning")) ;
ds.plotOn(frame3) ;
RooPlot* frame4 =
y.frame(
Title(
"Unbinned data shown with custom binning")) ;
TCanvas* c = new TCanvas("rf102_dataimport","rf102_dataimport",800,800) ;
c->Divide(2,2) ;
}
{
TH1D* hh =
new TH1D(
"hh",
"hh",25,-10,10) ;
for (int i=0 ; i<100 ; i++) {
}
return hh ;
}
{
for (int i=0 ; i<100 ; i++) {
}
}
- Author
- 07/2008 - Wouter Verkerke
Definition in file rf102_dataimport.C.