{ //=========Macro generated from canvas: c1/c1 //========= (Fri Jul 31 21:47:23 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 *elast = new TH1F("elast","(clE/0.993)/tagE {meanXCut&&meanYCut&&tagE>5&&tagE<5.2}",200,0.7,1.3); elast->SetBinContent(0,1636); elast->SetBinContent(1,11); elast->SetBinContent(2,9); elast->SetBinContent(3,17); elast->SetBinContent(4,10); elast->SetBinContent(5,7); elast->SetBinContent(6,16); elast->SetBinContent(7,10); elast->SetBinContent(8,9); elast->SetBinContent(9,18); elast->SetBinContent(10,9); elast->SetBinContent(11,19); elast->SetBinContent(12,20); elast->SetBinContent(13,16); elast->SetBinContent(14,10); elast->SetBinContent(15,11); elast->SetBinContent(16,16); elast->SetBinContent(17,15); elast->SetBinContent(18,16); elast->SetBinContent(19,7); elast->SetBinContent(20,12); elast->SetBinContent(21,14); elast->SetBinContent(22,20); elast->SetBinContent(23,21); elast->SetBinContent(24,16); elast->SetBinContent(25,14); elast->SetBinContent(26,16); elast->SetBinContent(27,17); elast->SetBinContent(28,18); elast->SetBinContent(29,11); elast->SetBinContent(30,14); elast->SetBinContent(31,20); elast->SetBinContent(32,17); elast->SetBinContent(33,23); elast->SetBinContent(34,25); elast->SetBinContent(35,14); elast->SetBinContent(36,25); elast->SetBinContent(37,27); elast->SetBinContent(38,21); elast->SetBinContent(39,21); elast->SetBinContent(40,19); elast->SetBinContent(41,22); elast->SetBinContent(42,42); elast->SetBinContent(43,18); elast->SetBinContent(44,25); elast->SetBinContent(45,18); elast->SetBinContent(46,28); elast->SetBinContent(47,16); elast->SetBinContent(48,32); elast->SetBinContent(49,34); elast->SetBinContent(50,21); elast->SetBinContent(51,36); elast->SetBinContent(52,43); elast->SetBinContent(53,30); elast->SetBinContent(54,33); elast->SetBinContent(55,35); elast->SetBinContent(56,39); elast->SetBinContent(57,41); elast->SetBinContent(58,46); elast->SetBinContent(59,39); elast->SetBinContent(60,38); elast->SetBinContent(61,43); elast->SetBinContent(62,55); elast->SetBinContent(63,50); elast->SetBinContent(64,51); elast->SetBinContent(65,60); elast->SetBinContent(66,51); elast->SetBinContent(67,69); elast->SetBinContent(68,68); elast->SetBinContent(69,69); elast->SetBinContent(70,73); elast->SetBinContent(71,82); elast->SetBinContent(72,82); elast->SetBinContent(73,86); elast->SetBinContent(74,107); elast->SetBinContent(75,106); elast->SetBinContent(76,117); elast->SetBinContent(77,128); elast->SetBinContent(78,138); elast->SetBinContent(79,175); elast->SetBinContent(80,206); elast->SetBinContent(81,210); elast->SetBinContent(82,243); elast->SetBinContent(83,253); elast->SetBinContent(84,295); elast->SetBinContent(85,315); elast->SetBinContent(86,366); elast->SetBinContent(87,426); elast->SetBinContent(88,523); elast->SetBinContent(89,590); elast->SetBinContent(90,690); elast->SetBinContent(91,870); elast->SetBinContent(92,1009); elast->SetBinContent(93,1238); elast->SetBinContent(94,1433); elast->SetBinContent(95,1910); elast->SetBinContent(96,2215); elast->SetBinContent(97,2639); elast->SetBinContent(98,3134); elast->SetBinContent(99,3654); elast->SetBinContent(100,3940); elast->SetBinContent(101,4333); elast->SetBinContent(102,4334); elast->SetBinContent(103,4395); elast->SetBinContent(104,4256); elast->SetBinContent(105,3980); elast->SetBinContent(106,3213); elast->SetBinContent(107,2857); elast->SetBinContent(108,2316); elast->SetBinContent(109,1838); elast->SetBinContent(110,1361); elast->SetBinContent(111,1035); elast->SetBinContent(112,711); elast->SetBinContent(113,480); elast->SetBinContent(114,306); elast->SetBinContent(115,223); elast->SetBinContent(116,171); elast->SetBinContent(117,106); elast->SetBinContent(118,71); elast->SetBinContent(119,51); elast->SetBinContent(120,26); elast->SetBinContent(121,16); elast->SetBinContent(122,15); elast->SetBinContent(123,15); elast->SetBinContent(124,12); elast->SetBinContent(125,4); elast->SetBinContent(126,9); elast->SetBinContent(127,6); elast->SetBinContent(128,3); elast->SetBinContent(129,4); elast->SetBinContent(130,5); elast->SetBinContent(131,6); elast->SetBinContent(132,2); elast->SetBinContent(133,8); elast->SetBinContent(134,5); elast->SetBinContent(135,5); elast->SetBinContent(136,7); elast->SetBinContent(137,6); elast->SetBinContent(138,4); elast->SetBinContent(139,2); elast->SetBinContent(140,2); elast->SetBinContent(141,7); elast->SetBinContent(142,3); elast->SetBinContent(143,5); elast->SetBinContent(144,1); elast->SetBinContent(145,2); elast->SetBinContent(146,1); elast->SetBinContent(147,5); elast->SetBinContent(148,5); elast->SetBinContent(149,3); elast->SetBinContent(151,1); elast->SetBinContent(152,1); elast->SetBinContent(153,2); elast->SetBinContent(154,2); elast->SetBinContent(155,1); elast->SetBinContent(156,1); elast->SetBinContent(157,2); elast->SetBinContent(158,3); elast->SetBinContent(161,5); elast->SetBinContent(163,1); elast->SetBinContent(165,1); elast->SetBinContent(166,3); elast->SetBinContent(167,1); elast->SetBinContent(168,2); elast->SetBinContent(169,1); elast->SetBinContent(171,3); elast->SetBinContent(172,1); elast->SetBinContent(173,2); elast->SetBinContent(175,3); elast->SetBinContent(177,1); elast->SetBinContent(182,2); elast->SetBinContent(184,2); elast->SetBinContent(187,1); elast->SetBinContent(188,1); elast->SetBinContent(189,2); elast->SetBinContent(193,1); elast->SetBinContent(195,2); elast->SetBinContent(196,2); elast->SetBinContent(198,1); elast->SetBinContent(201,44); elast->SetEntries(66998); elast->SetFillColor(15); elast->SetFillStyle(3004); elast->SetMarkerStyle(7); elast->GetXaxis()->SetTitle("E_{reconstructed} / E_{incident}"); elast->GetXaxis()->SetRange(34,167); elast->GetYaxis()->SetTitle("Number of events"); elast->GetYaxis()->CenterTitle(true); elast->GetYaxis()->SetTitleOffset(1.4); elast->Draw("E1BAR"); resCnv->Modified(); resCnv->cd(); resCnv->SetSelected(c1); }