{ //=========Macro generated from canvas: c1_n2/c1_n2 //========= (Fri Jul 31 21:56:08 2009) by ROOT version5.22/00 TCanvas *resCnv = new TCanvas("resCnv", "Fit slices results",0,0,800,600); gROOT->SetEditHistograms(); resCnv->ToggleEventStatus(); resCnv->Range(-1.016129,-0.03787376,6.483871,0.3373754); resCnv->SetFillColor(0); resCnv->SetBorderMode(0); resCnv->SetBorderSize(2); resCnv->SetLeftMargin(0.1354839); resCnv->SetRightMargin(0.06451613); resCnv->SetFrameFillColor(19); resCnv->SetFrameBorderMode(0); TH1 *clE_tagE_1_cr = new TH1D("clE_tagE_1_cr","Cluster energy reconstruction linearity",100,0,6); clE_tagE_1_cr->SetBinContent(20,1.163942); clE_tagE_1_cr->SetBinContent(21,1.245611); clE_tagE_1_cr->SetBinContent(22,1.284146); clE_tagE_1_cr->SetBinContent(23,1.334582); clE_tagE_1_cr->SetBinContent(24,1.416119); clE_tagE_1_cr->SetBinContent(25,1.454736); clE_tagE_1_cr->SetBinContent(26,1.51381); clE_tagE_1_cr->SetBinContent(27,1.595237); clE_tagE_1_cr->SetBinContent(28,1.619136); clE_tagE_1_cr->SetBinContent(37,2.207254); clE_tagE_1_cr->SetBinContent(38,2.254282); clE_tagE_1_cr->SetBinContent(39,2.300908); clE_tagE_1_cr->SetBinContent(40,2.352138); clE_tagE_1_cr->SetBinContent(41,2.427451); clE_tagE_1_cr->SetBinContent(42,2.481364); clE_tagE_1_cr->SetBinContent(43,2.522456); clE_tagE_1_cr->SetBinContent(44,2.629717); clE_tagE_1_cr->SetBinContent(45,2.658814); clE_tagE_1_cr->SetBinContent(46,2.704394); clE_tagE_1_cr->SetBinContent(47,2.802054); clE_tagE_1_cr->SetBinContent(48,2.833167); clE_tagE_1_cr->SetBinContent(49,2.881968); clE_tagE_1_cr->SetBinContent(51,3.023028); clE_tagE_1_cr->SetBinContent(52,3.070497); clE_tagE_1_cr->SetBinContent(53,3.114449); clE_tagE_1_cr->SetBinContent(65,3.865458); clE_tagE_1_cr->SetBinContent(66,3.904599); clE_tagE_1_cr->SetBinContent(67,3.959599); clE_tagE_1_cr->SetBinContent(68,4.020367); clE_tagE_1_cr->SetBinContent(69,4.08423); clE_tagE_1_cr->SetBinContent(70,4.144405); clE_tagE_1_cr->SetBinContent(71,4.201877); clE_tagE_1_cr->SetBinContent(72,4.261963); clE_tagE_1_cr->SetBinContent(73,4.321167); clE_tagE_1_cr->SetBinContent(74,4.384391); clE_tagE_1_cr->SetBinContent(75,4.444226); clE_tagE_1_cr->SetBinContent(76,4.477764); clE_tagE_1_cr->SetBinContent(77,4.566321); clE_tagE_1_cr->SetBinContent(78,4.62436); clE_tagE_1_cr->SetBinContent(79,4.684993); clE_tagE_1_cr->SetBinContent(80,4.746338); clE_tagE_1_cr->SetBinContent(81,4.804546); clE_tagE_1_cr->SetBinContent(82,4.868408); clE_tagE_1_cr->SetBinContent(83,4.934295); clE_tagE_1_cr->SetBinContent(84,4.984673); clE_tagE_1_cr->SetBinContent(85,5.057794); clE_tagE_1_cr->SetBinContent(86,5.105822); clE_tagE_1_cr->SetBinContent(87,5.153607); clE_tagE_1_cr->SetBinContent(88,5.257842); clE_tagE_1_cr->SetBinContent(89,5.295573); clE_tagE_1_cr->SetBinContent(90,5.358298); clE_tagE_1_cr->SetBinContent(91,5.397956); clE_tagE_1_cr->SetBinContent(92,5.474711); clE_tagE_1_cr->SetBinError(20,0.000163203); clE_tagE_1_cr->SetBinError(21,0.0002007967); clE_tagE_1_cr->SetBinError(22,0.0002397232); clE_tagE_1_cr->SetBinError(23,0.0001783362); clE_tagE_1_cr->SetBinError(24,0.0001755245); clE_tagE_1_cr->SetBinError(25,0.0002979543); clE_tagE_1_cr->SetBinError(26,0.0001858933); clE_tagE_1_cr->SetBinError(27,0.0002106459); clE_tagE_1_cr->SetBinError(28,0.0003392517); clE_tagE_1_cr->SetBinError(37,0.01698298); clE_tagE_1_cr->SetBinError(38,0.000306544); clE_tagE_1_cr->SetBinError(39,0.0002649689); clE_tagE_1_cr->SetBinError(40,0.0002966067); clE_tagE_1_cr->SetBinError(41,0.02); clE_tagE_1_cr->SetBinError(42,0.0002909034); clE_tagE_1_cr->SetBinError(43,0.0003845836); clE_tagE_1_cr->SetBinError(44,0.001152525); clE_tagE_1_cr->SetBinError(45,0.0003256654); clE_tagE_1_cr->SetBinError(46,0.0003972807); clE_tagE_1_cr->SetBinError(47,0.001957286); clE_tagE_1_cr->SetBinError(48,0.000340151); clE_tagE_1_cr->SetBinError(49,0.0004002269); clE_tagE_1_cr->SetBinError(51,0.0004486225); clE_tagE_1_cr->SetBinError(52,0.0003718637); clE_tagE_1_cr->SetBinError(53,0.0005238908); clE_tagE_1_cr->SetBinError(65,0.02); clE_tagE_1_cr->SetBinError(66,0.0005089307); clE_tagE_1_cr->SetBinError(67,0.0005309584); clE_tagE_1_cr->SetBinError(68,0.0005205115); clE_tagE_1_cr->SetBinError(69,0.0005405724); clE_tagE_1_cr->SetBinError(70,0.0005483653); clE_tagE_1_cr->SetBinError(71,0.0005485975); clE_tagE_1_cr->SetBinError(72,0.0005525783); clE_tagE_1_cr->SetBinError(73,0.0005817997); clE_tagE_1_cr->SetBinError(74,0.0006138519); clE_tagE_1_cr->SetBinError(75,0.0005911234); clE_tagE_1_cr->SetBinError(76,0.0006079864); clE_tagE_1_cr->SetBinError(77,0.0006343539); clE_tagE_1_cr->SetBinError(78,0.0006217717); clE_tagE_1_cr->SetBinError(79,0.0006241697); clE_tagE_1_cr->SetBinError(80,0.0006548195); clE_tagE_1_cr->SetBinError(81,0.0006752632); clE_tagE_1_cr->SetBinError(82,0.0007000454); clE_tagE_1_cr->SetBinError(83,0.0006812834); clE_tagE_1_cr->SetBinError(84,0.0007202568); clE_tagE_1_cr->SetBinError(85,0.0006988186); clE_tagE_1_cr->SetBinError(86,0.0007172455); clE_tagE_1_cr->SetBinError(87,0.0007190101); clE_tagE_1_cr->SetBinError(88,0.06980962); clE_tagE_1_cr->SetBinError(89,0.0007791924); clE_tagE_1_cr->SetBinError(90,0.0007650798); clE_tagE_1_cr->SetBinError(91,0.02); clE_tagE_1_cr->SetBinError(92,0.001041876); clE_tagE_1_cr->SetEntries(66); clE_tagE_1_cr->SetStats(0); TF1 *llastFitFunc = new TF1("llastFitFunc","[0]*x",0,6); llastFitFunc->SetFillColor(19); llastFitFunc->SetFillStyle(0); llastFitFunc->SetLineColor(4); llastFitFunc->SetLineWidth(1); llastFitFunc->SetLineStyle(2); llastFitFunc->SetChisquare(54417.71); llastFitFunc->SetNDF(52); llastFitFunc->SetParameter(0,0.997); llastFitFunc->SetParError(0,9.668093e-08); llastFitFunc->SetParLimits(0,0.997,1); clE_tagE_1_cr->GetListOfFunctions()->Add(llastFitFunc); clE_tagE_1_cr->SetMarkerStyle(20); clE_tagE_1_cr->GetXaxis()->SetTitle("E_{incedint}, GeV"); clE_tagE_1_cr->GetYaxis()->SetTitle("E_{reconstructed}, GeV"); clE_tagE_1_cr->GetYaxis()->CenterTitle(true); clE_tagE_1_cr->Draw(""); TLatex * tex = new TLatex(0.419493,0.736829,"f(x) = a#upointx; a = 0.998 #pm 0.002"); tex->SetTextSize(0.02068127); tex->SetTextAngle(37.9835); tex->SetLineWidth(2); tex->Draw(); resCnv->Modified(); resCnv->cd(); resCnv->SetSelected(c1_n2); resCnv->ToggleToolBar(); }