{ //=========Macro generated from canvas: c1/c1 //========= (Thu Jun 7 15:53:00 2012) by ROOT version5.32/03 TCanvas *c1 = new TCanvas("c1", "c1",66,52,700,500); gStyle->SetOptTitle(0); c1->Range(-358.1081,-1.948101,317.5676,2.102532); c1->SetFillColor(0); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetTickx(1); c1->SetTicky(1); c1->SetLeftMargin(0.16); c1->SetTopMargin(0.05); c1->SetBottomMargin(0.16); c1->SetFrameBorderMode(0); c1->SetFrameBorderMode(0); TProfile *cellTimeFlightPathProf__1 = new TProfile("cellTimeFlightPathProf","Cell time vs difference in flight path",100,-250,250,""); cellTimeFlightPathProf__1->SetBinEntries(9,3); cellTimeFlightPathProf__1->SetBinEntries(10,5); cellTimeFlightPathProf__1->SetBinEntries(11,6); cellTimeFlightPathProf__1->SetBinEntries(12,12); cellTimeFlightPathProf__1->SetBinEntries(13,12); cellTimeFlightPathProf__1->SetBinEntries(14,29); cellTimeFlightPathProf__1->SetBinEntries(15,32); cellTimeFlightPathProf__1->SetBinEntries(16,45); cellTimeFlightPathProf__1->SetBinEntries(17,83); cellTimeFlightPathProf__1->SetBinEntries(18,128); cellTimeFlightPathProf__1->SetBinEntries(19,214); cellTimeFlightPathProf__1->SetBinEntries(20,296); cellTimeFlightPathProf__1->SetBinEntries(21,493); cellTimeFlightPathProf__1->SetBinEntries(22,751); cellTimeFlightPathProf__1->SetBinEntries(23,1111); cellTimeFlightPathProf__1->SetBinEntries(24,1555); cellTimeFlightPathProf__1->SetBinEntries(25,2273); cellTimeFlightPathProf__1->SetBinEntries(26,3056); cellTimeFlightPathProf__1->SetBinEntries(27,4367); cellTimeFlightPathProf__1->SetBinEntries(28,5790); cellTimeFlightPathProf__1->SetBinEntries(29,7892); cellTimeFlightPathProf__1->SetBinEntries(30,10462); cellTimeFlightPathProf__1->SetBinEntries(31,13591); cellTimeFlightPathProf__1->SetBinEntries(32,17727); cellTimeFlightPathProf__1->SetBinEntries(33,22551); cellTimeFlightPathProf__1->SetBinEntries(34,29017); cellTimeFlightPathProf__1->SetBinEntries(35,36118); cellTimeFlightPathProf__1->SetBinEntries(36,44952); cellTimeFlightPathProf__1->SetBinEntries(37,55484); cellTimeFlightPathProf__1->SetBinEntries(38,68156); cellTimeFlightPathProf__1->SetBinEntries(39,81459); cellTimeFlightPathProf__1->SetBinEntries(40,97554); cellTimeFlightPathProf__1->SetBinEntries(41,116228); cellTimeFlightPathProf__1->SetBinEntries(42,136037); cellTimeFlightPathProf__1->SetBinEntries(43,159836); cellTimeFlightPathProf__1->SetBinEntries(44,185023); cellTimeFlightPathProf__1->SetBinEntries(45,213070); cellTimeFlightPathProf__1->SetBinEntries(46,244691); cellTimeFlightPathProf__1->SetBinEntries(47,282822); cellTimeFlightPathProf__1->SetBinEntries(48,326749); cellTimeFlightPathProf__1->SetBinEntries(49,389221); cellTimeFlightPathProf__1->SetBinEntries(50,538743); cellTimeFlightPathProf__1->SetBinEntries(51,543145); cellTimeFlightPathProf__1->SetBinEntries(52,388165); cellTimeFlightPathProf__1->SetBinEntries(53,325086); cellTimeFlightPathProf__1->SetBinEntries(54,276802); cellTimeFlightPathProf__1->SetBinEntries(55,239232); cellTimeFlightPathProf__1->SetBinEntries(56,206283); cellTimeFlightPathProf__1->SetBinEntries(57,177507); cellTimeFlightPathProf__1->SetBinEntries(58,151357); cellTimeFlightPathProf__1->SetBinEntries(59,129412); cellTimeFlightPathProf__1->SetBinEntries(60,108342); cellTimeFlightPathProf__1->SetBinEntries(61,90739); cellTimeFlightPathProf__1->SetBinEntries(62,76081); cellTimeFlightPathProf__1->SetBinEntries(63,62255); cellTimeFlightPathProf__1->SetBinEntries(64,51433); cellTimeFlightPathProf__1->SetBinEntries(65,41406); cellTimeFlightPathProf__1->SetBinEntries(66,33024); cellTimeFlightPathProf__1->SetBinEntries(67,26321); cellTimeFlightPathProf__1->SetBinEntries(68,20407); cellTimeFlightPathProf__1->SetBinEntries(69,15691); cellTimeFlightPathProf__1->SetBinEntries(70,12148); cellTimeFlightPathProf__1->SetBinEntries(71,9216); cellTimeFlightPathProf__1->SetBinEntries(72,6754); cellTimeFlightPathProf__1->SetBinEntries(73,5113); cellTimeFlightPathProf__1->SetBinEntries(74,3625); cellTimeFlightPathProf__1->SetBinEntries(75,2534); cellTimeFlightPathProf__1->SetBinEntries(76,1734); cellTimeFlightPathProf__1->SetBinEntries(77,1312); cellTimeFlightPathProf__1->SetBinEntries(78,786); cellTimeFlightPathProf__1->SetBinEntries(79,596); cellTimeFlightPathProf__1->SetBinEntries(80,350); cellTimeFlightPathProf__1->SetBinEntries(81,254); cellTimeFlightPathProf__1->SetBinEntries(82,166); cellTimeFlightPathProf__1->SetBinEntries(83,90); cellTimeFlightPathProf__1->SetBinEntries(84,54); cellTimeFlightPathProf__1->SetBinEntries(85,34); cellTimeFlightPathProf__1->SetBinEntries(86,30); cellTimeFlightPathProf__1->SetBinEntries(87,10); cellTimeFlightPathProf__1->SetBinEntries(88,6); cellTimeFlightPathProf__1->SetBinEntries(89,4); cellTimeFlightPathProf__1->SetBinEntries(90,3); cellTimeFlightPathProf__1->SetBinEntries(91,2); cellTimeFlightPathProf__1->SetBinContent(9,2.686305); cellTimeFlightPathProf__1->SetBinContent(10,2.99796); cellTimeFlightPathProf__1->SetBinContent(11,3.64074); cellTimeFlightPathProf__1->SetBinContent(12,6.547123); cellTimeFlightPathProf__1->SetBinContent(13,8.484334); cellTimeFlightPathProf__1->SetBinContent(14,15.11719); cellTimeFlightPathProf__1->SetBinContent(15,18.14002); cellTimeFlightPathProf__1->SetBinContent(16,25.02213); cellTimeFlightPathProf__1->SetBinContent(17,45.46422); cellTimeFlightPathProf__1->SetBinContent(18,62.21482); cellTimeFlightPathProf__1->SetBinContent(19,106.9263); cellTimeFlightPathProf__1->SetBinContent(20,152.1626); cellTimeFlightPathProf__1->SetBinContent(21,241.0029); cellTimeFlightPathProf__1->SetBinContent(22,345.406); cellTimeFlightPathProf__1->SetBinContent(23,489.6964); cellTimeFlightPathProf__1->SetBinContent(24,671.3268); cellTimeFlightPathProf__1->SetBinContent(25,963.239); cellTimeFlightPathProf__1->SetBinContent(26,1216.359); cellTimeFlightPathProf__1->SetBinContent(27,1643.792); cellTimeFlightPathProf__1->SetBinContent(28,2042.489); cellTimeFlightPathProf__1->SetBinContent(29,2649.459); cellTimeFlightPathProf__1->SetBinContent(30,3392.164); cellTimeFlightPathProf__1->SetBinContent(31,4197.768); cellTimeFlightPathProf__1->SetBinContent(32,5103.053); cellTimeFlightPathProf__1->SetBinContent(33,6152.956); cellTimeFlightPathProf__1->SetBinContent(34,7366.26); cellTimeFlightPathProf__1->SetBinContent(35,8544.34); cellTimeFlightPathProf__1->SetBinContent(36,10098.12); cellTimeFlightPathProf__1->SetBinContent(37,11692.26); cellTimeFlightPathProf__1->SetBinContent(38,13110.55); cellTimeFlightPathProf__1->SetBinContent(39,14109.99); cellTimeFlightPathProf__1->SetBinContent(40,15576.19); cellTimeFlightPathProf__1->SetBinContent(41,16690.6); cellTimeFlightPathProf__1->SetBinContent(42,17375.45); cellTimeFlightPathProf__1->SetBinContent(43,17984.88); cellTimeFlightPathProf__1->SetBinContent(44,18128.48); cellTimeFlightPathProf__1->SetBinContent(45,17333.59); cellTimeFlightPathProf__1->SetBinContent(46,16224.8); cellTimeFlightPathProf__1->SetBinContent(47,14416.48); cellTimeFlightPathProf__1->SetBinContent(48,11709.51); cellTimeFlightPathProf__1->SetBinContent(49,7899.391); cellTimeFlightPathProf__1->SetBinContent(50,1285.819); cellTimeFlightPathProf__1->SetBinContent(51,-5860.518); cellTimeFlightPathProf__1->SetBinContent(52,-10807.25); cellTimeFlightPathProf__1->SetBinContent(53,-14028.89); cellTimeFlightPathProf__1->SetBinContent(54,-16180.53); cellTimeFlightPathProf__1->SetBinContent(55,-17525.01); cellTimeFlightPathProf__1->SetBinContent(56,-18913.6); cellTimeFlightPathProf__1->SetBinContent(57,-18941.09); cellTimeFlightPathProf__1->SetBinContent(58,-18778.96); cellTimeFlightPathProf__1->SetBinContent(59,-17966.37); cellTimeFlightPathProf__1->SetBinContent(60,-16855.15); cellTimeFlightPathProf__1->SetBinContent(61,-15369.13); cellTimeFlightPathProf__1->SetBinContent(62,-14392.29); cellTimeFlightPathProf__1->SetBinContent(63,-12685.73); cellTimeFlightPathProf__1->SetBinContent(64,-11175.11); cellTimeFlightPathProf__1->SetBinContent(65,-9690.623); cellTimeFlightPathProf__1->SetBinContent(66,-8366.467); cellTimeFlightPathProf__1->SetBinContent(67,-7012.127); cellTimeFlightPathProf__1->SetBinContent(68,-5685.157); cellTimeFlightPathProf__1->SetBinContent(69,-4626.311); cellTimeFlightPathProf__1->SetBinContent(70,-3806.623); cellTimeFlightPathProf__1->SetBinContent(71,-3039.087); cellTimeFlightPathProf__1->SetBinContent(72,-2295.299); cellTimeFlightPathProf__1->SetBinContent(73,-1855.645); cellTimeFlightPathProf__1->SetBinContent(74,-1372.548); cellTimeFlightPathProf__1->SetBinContent(75,-1005.981); cellTimeFlightPathProf__1->SetBinContent(76,-713.2918); cellTimeFlightPathProf__1->SetBinContent(77,-536.3541); cellTimeFlightPathProf__1->SetBinContent(78,-326.7126); cellTimeFlightPathProf__1->SetBinContent(79,-279.2731); cellTimeFlightPathProf__1->SetBinContent(80,-165.4702); cellTimeFlightPathProf__1->SetBinContent(81,-125.5557); cellTimeFlightPathProf__1->SetBinContent(82,-85.40237); cellTimeFlightPathProf__1->SetBinContent(83,-46.99762); cellTimeFlightPathProf__1->SetBinContent(84,-30.00126); cellTimeFlightPathProf__1->SetBinContent(85,-19.72666); cellTimeFlightPathProf__1->SetBinContent(86,-20.49338); cellTimeFlightPathProf__1->SetBinContent(87,-7.342224); cellTimeFlightPathProf__1->SetBinContent(88,-3.418139); cellTimeFlightPathProf__1->SetBinContent(89,-3.495524); cellTimeFlightPathProf__1->SetBinContent(90,-1.302328); cellTimeFlightPathProf__1->SetBinContent(91,-0.09241898); cellTimeFlightPathProf__1->SetBinError(9,1.554235); cellTimeFlightPathProf__1->SetBinError(10,1.419758); cellTimeFlightPathProf__1->SetBinError(11,1.588183); cellTimeFlightPathProf__1->SetBinError(12,2.077025); cellTimeFlightPathProf__1->SetBinError(13,2.827153); cellTimeFlightPathProf__1->SetBinError(14,3.463266); cellTimeFlightPathProf__1->SetBinError(15,3.641681); cellTimeFlightPathProf__1->SetBinError(16,4.047423); cellTimeFlightPathProf__1->SetBinError(17,5.49295); cellTimeFlightPathProf__1->SetBinError(18,6.453559); cellTimeFlightPathProf__1->SetBinError(19,8.292093); cellTimeFlightPathProf__1->SetBinError(20,10.61462); cellTimeFlightPathProf__1->SetBinError(21,12.59547); cellTimeFlightPathProf__1->SetBinError(22,15.00293); cellTimeFlightPathProf__1->SetBinError(23,17.35486); cellTimeFlightPathProf__1->SetBinError(24,20.15578); cellTimeFlightPathProf__1->SetBinError(25,23.96935); cellTimeFlightPathProf__1->SetBinError(26,26.95061); cellTimeFlightPathProf__1->SetBinError(27,31.44101); cellTimeFlightPathProf__1->SetBinError(28,34.08456); cellTimeFlightPathProf__1->SetBinError(29,39.28027); cellTimeFlightPathProf__1->SetBinError(30,44.35408); cellTimeFlightPathProf__1->SetBinError(31,49.8073); cellTimeFlightPathProf__1->SetBinError(32,54.95516); cellTimeFlightPathProf__1->SetBinError(33,60.60048); cellTimeFlightPathProf__1->SetBinError(34,68.56975); cellTimeFlightPathProf__1->SetBinError(35,72.84412); cellTimeFlightPathProf__1->SetBinError(36,80.34288); cellTimeFlightPathProf__1->SetBinError(37,87.82623); cellTimeFlightPathProf__1->SetBinError(38,96.00456); cellTimeFlightPathProf__1->SetBinError(39,102.7843); cellTimeFlightPathProf__1->SetBinError(40,110.7444); cellTimeFlightPathProf__1->SetBinError(41,119.8073); cellTimeFlightPathProf__1->SetBinError(42,127.7227); cellTimeFlightPathProf__1->SetBinError(43,138.7772); cellTimeFlightPathProf__1->SetBinError(44,147.2414); cellTimeFlightPathProf__1->SetBinError(45,156.1927); cellTimeFlightPathProf__1->SetBinError(46,167.6722); cellTimeFlightPathProf__1->SetBinError(47,179.4184); cellTimeFlightPathProf__1->SetBinError(48,191.7248); cellTimeFlightPathProf__1->SetBinError(49,209.3466); cellTimeFlightPathProf__1->SetBinError(50,245.5477); cellTimeFlightPathProf__1->SetBinError(51,246.3537); cellTimeFlightPathProf__1->SetBinError(52,209.103); cellTimeFlightPathProf__1->SetBinError(53,191.9197); cellTimeFlightPathProf__1->SetBinError(54,178.633); cellTimeFlightPathProf__1->SetBinError(55,166.9918); cellTimeFlightPathProf__1->SetBinError(56,156.4282); cellTimeFlightPathProf__1->SetBinError(57,147.5415); cellTimeFlightPathProf__1->SetBinError(58,137.3125); cellTimeFlightPathProf__1->SetBinError(59,127.4361); cellTimeFlightPathProf__1->SetBinError(60,118.9463); cellTimeFlightPathProf__1->SetBinError(61,108.7433); cellTimeFlightPathProf__1->SetBinError(62,102.4042); cellTimeFlightPathProf__1->SetBinError(63,93.86686); cellTimeFlightPathProf__1->SetBinError(64,86.53166); cellTimeFlightPathProf__1->SetBinError(65,79.18964); cellTimeFlightPathProf__1->SetBinError(66,73.67804); cellTimeFlightPathProf__1->SetBinError(67,65.5622); cellTimeFlightPathProf__1->SetBinError(68,58.57553); cellTimeFlightPathProf__1->SetBinError(69,52.55107); cellTimeFlightPathProf__1->SetBinError(70,48.0135); cellTimeFlightPathProf__1->SetBinError(71,42.48944); cellTimeFlightPathProf__1->SetBinError(72,36.75193); cellTimeFlightPathProf__1->SetBinError(73,34.51339); cellTimeFlightPathProf__1->SetBinError(74,28.6207); cellTimeFlightPathProf__1->SetBinError(75,24.5715); cellTimeFlightPathProf__1->SetBinError(76,20.90281); cellTimeFlightPathProf__1->SetBinError(77,17.99131); cellTimeFlightPathProf__1->SetBinError(78,14.36912); cellTimeFlightPathProf__1->SetBinError(79,13.18676); cellTimeFlightPathProf__1->SetBinError(80,10.33403); cellTimeFlightPathProf__1->SetBinError(81,9.191624); cellTimeFlightPathProf__1->SetBinError(82,7.704359); cellTimeFlightPathProf__1->SetBinError(83,5.399403); cellTimeFlightPathProf__1->SetBinError(84,4.817379); cellTimeFlightPathProf__1->SetBinError(85,3.87452); cellTimeFlightPathProf__1->SetBinError(86,3.961302); cellTimeFlightPathProf__1->SetBinError(87,2.442138); cellTimeFlightPathProf__1->SetBinError(88,1.450627); cellTimeFlightPathProf__1->SetBinError(89,1.758196); cellTimeFlightPathProf__1->SetBinError(90,0.9536659); cellTimeFlightPathProf__1->SetBinError(91,0.5246352); cellTimeFlightPathProf__1->SetMinimum(-1.3); cellTimeFlightPathProf__1->SetMaximum(1.9); cellTimeFlightPathProf__1->SetEntries(6105153); cellTimeFlightPathProf__1->SetDirectory(0); TPaveStats *ptstats = new TPaveStats(0.78,0.795,0.98,0.995,"brNDC"); ptstats->SetName("stats"); ptstats->SetBorderSize(1); ptstats->SetFillColor(0); ptstats->SetFillStyle(1); ptstats->SetTextAlign(12); TText *text = ptstats->AddText("Entries = 6105153"); text = ptstats->AddText("Mean = -0.8033"); text = ptstats->AddText("Mean y = -0.001883"); text = ptstats->AddText("RMS = 35.66"); text = ptstats->AddText("RMS y = 0.3476"); ptstats->SetOptStat(1110); ptstats->SetOptFit(0); ptstats->Draw(); cellTimeFlightPathProf__1->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(cellTimeFlightPathProf__1); cellTimeFlightPathProf__1->SetLineWidth(2); cellTimeFlightPathProf__1->SetMarkerStyle(20); cellTimeFlightPathProf__1->SetMarkerSize(1.2); cellTimeFlightPathProf__1->GetXaxis()->SetTitle("Difference in flight path [mm]"); cellTimeFlightPathProf__1->GetXaxis()->SetLabelFont(42); cellTimeFlightPathProf__1->GetXaxis()->SetLabelSize(0.05); cellTimeFlightPathProf__1->GetXaxis()->SetTitleSize(0.05); cellTimeFlightPathProf__1->GetXaxis()->SetTitleFont(42); cellTimeFlightPathProf__1->GetYaxis()->SetTitle("Time [ns]"); cellTimeFlightPathProf__1->GetYaxis()->SetLabelFont(42); cellTimeFlightPathProf__1->GetYaxis()->SetLabelSize(0.05); cellTimeFlightPathProf__1->GetYaxis()->SetTitleSize(0.05); cellTimeFlightPathProf__1->GetYaxis()->SetTitleFont(42); cellTimeFlightPathProf__1->GetZaxis()->SetLabelFont(42); cellTimeFlightPathProf__1->GetZaxis()->SetLabelSize(0.05); cellTimeFlightPathProf__1->GetZaxis()->SetTitleSize(0.05); cellTimeFlightPathProf__1->GetZaxis()->SetTitleFont(42); cellTimeFlightPathProf__1->Draw(""); c1->Modified(); c1->cd(); c1->SetSelected(c1); }