{ //=========Macro generated from canvas: resCnv/Fit slices results //========= (Wed Aug 05 12:49:30 2009) by ROOT version5.24/00 TCanvas *resCnv = new TCanvas("resCnv", "Fit slices results",452,76,800,700); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); gROOT->SetEditHistograms(); resCnv->ToggleEventStatus(); resCnv->Range(-1.007849,-0.8873239,6.489796,7.873239); resCnv->SetFillColor(0); resCnv->SetBorderMode(0); resCnv->SetBorderSize(2); resCnv->SetLeftMargin(0.1344221); resCnv->SetRightMargin(0.06532663); resCnv->SetFrameFillColor(19); resCnv->SetFrameBorderMode(0); resCnv->SetFrameBorderMode(0); TH1 *el_tagE_gl = new TH1D("el_tagE_gl","Energy resolution vs. energy. Glass region.",60,0,6); el_tagE_gl->SetBinContent(12,5.407002); el_tagE_gl->SetBinContent(13,5.189465); el_tagE_gl->SetBinContent(14,5.105259); el_tagE_gl->SetBinContent(15,5.00182); el_tagE_gl->SetBinContent(16,4.930766); el_tagE_gl->SetBinContent(17,4.812707); el_tagE_gl->SetBinContent(23,4.43998); el_tagE_gl->SetBinContent(24,4.344861); el_tagE_gl->SetBinContent(25,4.352987); el_tagE_gl->SetBinContent(26,4.259939); el_tagE_gl->SetBinContent(27,4.183025); el_tagE_gl->SetBinContent(28,4.139364); el_tagE_gl->SetBinContent(29,4.111958); el_tagE_gl->SetBinContent(30,4.106225); el_tagE_gl->SetBinContent(31,4.07052); el_tagE_gl->SetBinContent(32,4.042446); el_tagE_gl->SetBinContent(40,3.802019); el_tagE_gl->SetBinContent(41,3.819662); el_tagE_gl->SetBinContent(42,3.790658); el_tagE_gl->SetBinContent(43,3.775366); el_tagE_gl->SetBinContent(44,3.729642); el_tagE_gl->SetBinContent(45,3.742009); el_tagE_gl->SetBinContent(46,3.774953); el_tagE_gl->SetBinContent(47,3.723103); el_tagE_gl->SetBinContent(48,3.70615); el_tagE_gl->SetBinContent(49,3.738007); el_tagE_gl->SetBinContent(50,3.705758); el_tagE_gl->SetBinContent(51,3.701798); el_tagE_gl->SetBinContent(52,3.701211); el_tagE_gl->SetBinContent(53,3.699185); el_tagE_gl->SetBinContent(54,3.636405); el_tagE_gl->SetBinContent(55,3.673351); el_tagE_gl->SetBinError(12,0.03305743); el_tagE_gl->SetBinError(13,0.02728789); el_tagE_gl->SetBinError(14,0.02492379); el_tagE_gl->SetBinError(15,0.02131649); el_tagE_gl->SetBinError(16,0.02344191); el_tagE_gl->SetBinError(17,0.02670014); el_tagE_gl->SetBinError(23,0.01949757); el_tagE_gl->SetBinError(24,0.01842541); el_tagE_gl->SetBinError(25,0.02777866); el_tagE_gl->SetBinError(26,0.02268782); el_tagE_gl->SetBinError(27,0.02260199); el_tagE_gl->SetBinError(28,0.02915553); el_tagE_gl->SetBinError(29,0.01883538); el_tagE_gl->SetBinError(30,0.04458947); el_tagE_gl->SetBinError(31,0.01764538); el_tagE_gl->SetBinError(32,0.02660925); el_tagE_gl->SetBinError(40,0.018628); el_tagE_gl->SetBinError(41,0.01793283); el_tagE_gl->SetBinError(42,0.0182814); el_tagE_gl->SetBinError(43,0.01816514); el_tagE_gl->SetBinError(44,0.01825241); el_tagE_gl->SetBinError(45,0.01875792); el_tagE_gl->SetBinError(46,0.0180477); el_tagE_gl->SetBinError(47,0.0181324); el_tagE_gl->SetBinError(48,0.01964898); el_tagE_gl->SetBinError(49,0.01885817); el_tagE_gl->SetBinError(50,0.01927846); el_tagE_gl->SetBinError(51,0.01975987); el_tagE_gl->SetBinError(52,0.01970545); el_tagE_gl->SetBinError(53,0.0186622); el_tagE_gl->SetBinError(54,0.01958627); el_tagE_gl->SetBinError(55,0.02066964); el_tagE_gl->SetMinimum(0); el_tagE_gl->SetMaximum(7); el_tagE_gl->SetEntries(41); el_tagE_gl->SetStats(0); TF1 *fel_tagE_gl = new TF1("fel_tagE_gl","sqrt((sq([0])+sq([1]/sqrt(x)))+sq([2]/x))",1,5.5); fel_tagE_gl->SetFillColor(19); fel_tagE_gl->SetFillStyle(0); fel_tagE_gl->SetLineColor(2); fel_tagE_gl->SetLineWidth(1); fel_tagE_gl->SetLineStyle(7); fel_tagE_gl->SetChisquare(57.81206); fel_tagE_gl->SetNDF(29); fel_tagE_gl->SetParameter(0,2.996711); fel_tagE_gl->SetParError(0,0.01108888); fel_tagE_gl->SetParLimits(0,0,0); fel_tagE_gl->SetParameter(1,4.807362); fel_tagE_gl->SetParError(1,0.02128111); fel_tagE_gl->SetParLimits(1,0,0); fel_tagE_gl->SetParameter(2,8.955839e-006); fel_tagE_gl->SetParError(2,1.401793); fel_tagE_gl->SetParLimits(2,0,0); el_tagE_gl->GetListOfFunctions()->Add(fel_tagE_gl); el_tagE_gl->SetMarkerStyle(20); el_tagE_gl->GetXaxis()->SetTitle("E, GeV"); el_tagE_gl->GetYaxis()->SetTitle("#sigma_{E} /E, %"); el_tagE_gl->GetYaxis()->CenterTitle(true); el_tagE_gl->GetYaxis()->SetTitleOffset(1.2); el_tagE_gl->Draw(""); TLatex * tex = new TLatex(1.10204,2.42013,"f(E) = p_{0} #oplus #frac{p_{1}}{#sqrt{E}} #oplus #frac{p_{2}}{E}"); tex->SetTextSize(0.02797203); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(1.120879,1.899344,"p_{0} = 2.99 #pm 0.01"); tex->SetTextSize(0.02797203); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(1.130298,1.562363,"p_{1} = 4.81 #pm 0.02"); tex->SetTextSize(0.02797203); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(1.130298,1.194748,"p_{2} = 0"); tex->SetTextSize(0.02797203); tex->SetLineWidth(2); tex->Draw(); resCnv->Modified(); resCnv->cd(); resCnv->SetSelected(resCnv); resCnv->ToggleToolBar(); }