Subversion Repositories f9daq

Compare Revisions

Ignore whitespace Rev 269 → Rev 270

/belle2/masterclass/th1fit.cc
34,8 → 34,6
TH1F *h = new TH1F(name,title,xbins, xmin,xmax);
for (int i=0;i<xbins+2;i++) h->SetBinContent(i,data[i]);
 
gStyle->SetOptFit(1111);
TF1 *f = new TF1("f",func,min,max);
 
char *s = (char *)pars;
65,7 → 63,6
 
 
h->Fit(f,"RQ");
h->Draw();
 
send_message(1,TBufferJSON::ConvertToJSON(h),0 );
return 0;