{ //=========Macro generated from canvas: c1/c1 //========= (Wed Aug 5 14:54:37 2009) by ROOT version5.22/00 TCanvas *c1 = new TCanvas("c1", "c1",330,127,839,874); gStyle->SetOptStat(0); gROOT->SetEditHistograms(); c1->ToggleEventStatus(); c1->Range(-0.745509,-0.7535322,6.754491,6.744113); c1->SetFillColor(0); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetFrameFillColor(19); c1->SetFrameBorderMode(0); c1->SetFrameBorderMode(0); TH1 *clE_tagE_gl_1 = new TH1D("clE_tagE_gl_1","Energy linearity. Lead glass.",100,0,6); clE_tagE_gl_1->SetBinContent(20,1.170553); clE_tagE_gl_1->SetBinContent(21,1.252885); clE_tagE_gl_1->SetBinContent(22,1.289804); clE_tagE_gl_1->SetBinContent(23,1.339385); clE_tagE_gl_1->SetBinContent(24,1.42026); clE_tagE_gl_1->SetBinContent(25,1.459157); clE_tagE_gl_1->SetBinContent(26,1.518768); clE_tagE_gl_1->SetBinContent(27,1.600178); clE_tagE_gl_1->SetBinContent(28,1.669624); clE_tagE_gl_1->SetBinContent(38,2.263439); clE_tagE_gl_1->SetBinContent(39,2.311107); clE_tagE_gl_1->SetBinContent(40,2.360598); clE_tagE_gl_1->SetBinContent(41,2.450421); clE_tagE_gl_1->SetBinContent(42,2.489355); clE_tagE_gl_1->SetBinContent(43,2.531042); clE_tagE_gl_1->SetBinContent(44,2.637322); clE_tagE_gl_1->SetBinContent(45,2.667773); clE_tagE_gl_1->SetBinContent(46,2.714161); clE_tagE_gl_1->SetBinContent(47,2.808179); clE_tagE_gl_1->SetBinContent(48,2.840174); clE_tagE_gl_1->SetBinContent(49,2.887772); clE_tagE_gl_1->SetBinContent(51,3.02997); clE_tagE_gl_1->SetBinContent(52,3.07657); clE_tagE_gl_1->SetBinContent(53,3.15906); clE_tagE_gl_1->SetBinContent(65,3.834915); clE_tagE_gl_1->SetBinContent(66,3.912059); clE_tagE_gl_1->SetBinContent(67,3.968536); clE_tagE_gl_1->SetBinContent(68,4.026385); clE_tagE_gl_1->SetBinContent(69,4.091594); clE_tagE_gl_1->SetBinContent(70,4.152764); clE_tagE_gl_1->SetBinContent(71,4.209781); clE_tagE_gl_1->SetBinContent(72,4.270212); clE_tagE_gl_1->SetBinContent(73,4.32815); clE_tagE_gl_1->SetBinContent(74,4.39621); clE_tagE_gl_1->SetBinContent(75,4.45577); clE_tagE_gl_1->SetBinContent(76,4.515299); clE_tagE_gl_1->SetBinContent(77,4.576474); clE_tagE_gl_1->SetBinContent(78,4.661063); clE_tagE_gl_1->SetBinContent(79,4.694185); clE_tagE_gl_1->SetBinContent(80,4.75185); clE_tagE_gl_1->SetBinContent(81,4.812041); clE_tagE_gl_1->SetBinContent(82,4.877283); clE_tagE_gl_1->SetBinContent(83,4.953811); clE_tagE_gl_1->SetBinContent(84,4.992474); clE_tagE_gl_1->SetBinContent(85,5.080866); clE_tagE_gl_1->SetBinContent(86,5.113262); clE_tagE_gl_1->SetBinContent(87,5.169965); clE_tagE_gl_1->SetBinContent(88,5.229121); clE_tagE_gl_1->SetBinContent(89,5.311848); clE_tagE_gl_1->SetBinContent(90,5.373012); clE_tagE_gl_1->SetBinContent(91,5.440685); clE_tagE_gl_1->SetBinContent(92,5.483659); clE_tagE_gl_1->SetBinError(20,0.0003459192); clE_tagE_gl_1->SetBinError(21,0.0004363573); clE_tagE_gl_1->SetBinError(22,0.0004606076); clE_tagE_gl_1->SetBinError(23,0.0003824349); clE_tagE_gl_1->SetBinError(24,0.000374352); clE_tagE_gl_1->SetBinError(25,0.0006114378); clE_tagE_gl_1->SetBinError(26,0.0003952755); clE_tagE_gl_1->SetBinError(27,0.0004462038); clE_tagE_gl_1->SetBinError(28,0.0007387647); clE_tagE_gl_1->SetBinError(38,0.0006484056); clE_tagE_gl_1->SetBinError(39,0.0005630529); clE_tagE_gl_1->SetBinError(40,0.0006334578); clE_tagE_gl_1->SetBinError(41,0.01288646); clE_tagE_gl_1->SetBinError(42,0.0006189787); clE_tagE_gl_1->SetBinError(43,0.0008199703); clE_tagE_gl_1->SetBinError(44,0.002429986); clE_tagE_gl_1->SetBinError(45,0.000673206); clE_tagE_gl_1->SetBinError(46,0.0008557869); clE_tagE_gl_1->SetBinError(47,0.004003165); clE_tagE_gl_1->SetBinError(48,0.0006988969); clE_tagE_gl_1->SetBinError(49,0.0008426898); clE_tagE_gl_1->SetBinError(51,0.0009486489); clE_tagE_gl_1->SetBinError(52,0.0007847542); clE_tagE_gl_1->SetBinError(53,0.001107887); clE_tagE_gl_1->SetBinError(65,0.02); clE_tagE_gl_1->SetBinError(66,0.001036796); clE_tagE_gl_1->SetBinError(67,0.001048741); clE_tagE_gl_1->SetBinError(68,0.001048034); clE_tagE_gl_1->SetBinError(69,0.001044988); clE_tagE_gl_1->SetBinError(70,0.001137743); clE_tagE_gl_1->SetBinError(71,0.001113706); clE_tagE_gl_1->SetBinError(72,0.001107433); clE_tagE_gl_1->SetBinError(73,0.001177197); clE_tagE_gl_1->SetBinError(74,0.001204612); clE_tagE_gl_1->SetBinError(75,0.001175268); clE_tagE_gl_1->SetBinError(76,0.00118446); clE_tagE_gl_1->SetBinError(77,0.001273214); clE_tagE_gl_1->SetBinError(78,0.001218957); clE_tagE_gl_1->SetBinError(79,0.001258307); clE_tagE_gl_1->SetBinError(80,0.001353383); clE_tagE_gl_1->SetBinError(81,0.001311398); clE_tagE_gl_1->SetBinError(82,0.001379502); clE_tagE_gl_1->SetBinError(83,0.001337509); clE_tagE_gl_1->SetBinError(84,0.00141453); clE_tagE_gl_1->SetBinError(85,0.001371103); clE_tagE_gl_1->SetBinError(86,0.001391288); clE_tagE_gl_1->SetBinError(87,0.001417964); clE_tagE_gl_1->SetBinError(88,0.001476683); clE_tagE_gl_1->SetBinError(89,0.001503534); clE_tagE_gl_1->SetBinError(90,0.001476786); clE_tagE_gl_1->SetBinError(91,0.001463118); clE_tagE_gl_1->SetBinError(92,0.0020669); clE_tagE_gl_1->SetMinimum(0); clE_tagE_gl_1->SetMaximum(6); clE_tagE_gl_1->SetEntries(59); clE_tagE_gl_1->SetStats(0); TF1 *lastFitFunc = new TF1("lastFitFunc","[0]*x",0,6); lastFitFunc->SetFillColor(19); lastFitFunc->SetFillStyle(0); lastFitFunc->SetLineColor(4); lastFitFunc->SetLineWidth(1); lastFitFunc->SetLineStyle(7); lastFitFunc->SetChisquare(12052.91); lastFitFunc->SetNDF(51); lastFitFunc->SetParameter(0,0.9975998); lastFitFunc->SetParError(0,4.030896e-05); lastFitFunc->SetParLimits(0,0,0); clE_tagE_gl_1->GetListOfFunctions()->Add(lastFitFunc); clE_tagE_gl_1->SetMarkerStyle(20); clE_tagE_gl_1->GetXaxis()->SetTitle("E_{incident}, GeV"); clE_tagE_gl_1->GetYaxis()->SetTitle("E_{reconstructed}, GeV"); clE_tagE_gl_1->GetYaxis()->CenterTitle(true); clE_tagE_gl_1->Draw(""); TLatex * tex = new TLatex(0.669162,4.21649,"f(x) = a#upointx + b; "); tex->SetTextSize(0.02298851); tex->SetTextAngle(359.7272); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.6781437,3.784182,"b < 10^{-5}"); tex->SetTextSize(0.02144772); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.6601796,4.015416,"a = 0.997 #pm 0.002"); tex->SetTextSize(0.02144772); tex->SetLineWidth(2); tex->Draw(); c1->Modified(); c1->cd(); c1->SetSelected(c1); c1->ToggleToolBar(); }