{ //=========Macro generated from canvas: c1/c1 //========= (Sat Sep 29 21:07:59 2012) by ROOT version5.34/01 TCanvas *c1 = new TCanvas("c1", "c1",0,23,1366,705); c1->Range(-23.37297,-22.48101,17.70811,18.02532); c1->SetFillColor(0); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetGridx(); c1->SetGridy(); c1->SetTickx(1); c1->SetTicky(1); c1->SetLeftMargin(0.16); c1->SetTopMargin(0.05); c1->SetBottomMargin(0.16); c1->SetFrameBorderMode(0); c1->SetFrameBorderMode(0); TH2D *eDepth1RawVsCorrectedTime__16 = new TH2D("eDepth1RawVsCorrectedTime__16","2D Plot of Raw vs Corrected Time with eDepth<=1580",25,-20,20,20,-20,20); eDepth1RawVsCorrectedTime__16->SetBinContent(9,1); eDepth1RawVsCorrectedTime__16->SetBinContent(10,2); eDepth1RawVsCorrectedTime__16->SetBinContent(11,236); eDepth1RawVsCorrectedTime__16->SetBinContent(12,9808); eDepth1RawVsCorrectedTime__16->SetBinContent(13,27809); eDepth1RawVsCorrectedTime__16->SetBinContent(14,3997); eDepth1RawVsCorrectedTime__16->SetBinContent(15,29); eDepth1RawVsCorrectedTime__16->SetBinContent(85,1); eDepth1RawVsCorrectedTime__16->SetBinContent(113,1); eDepth1RawVsCorrectedTime__16->SetBinContent(141,3); eDepth1RawVsCorrectedTime__16->SetBinContent(142,1); eDepth1RawVsCorrectedTime__16->SetBinContent(169,4); eDepth1RawVsCorrectedTime__16->SetBinContent(170,3); eDepth1RawVsCorrectedTime__16->SetBinContent(196,1); eDepth1RawVsCorrectedTime__16->SetBinContent(197,7); eDepth1RawVsCorrectedTime__16->SetBinContent(198,28); eDepth1RawVsCorrectedTime__16->SetBinContent(199,3); eDepth1RawVsCorrectedTime__16->SetBinContent(224,7); eDepth1RawVsCorrectedTime__16->SetBinContent(225,97); eDepth1RawVsCorrectedTime__16->SetBinContent(226,200); eDepth1RawVsCorrectedTime__16->SetBinContent(227,20); eDepth1RawVsCorrectedTime__16->SetBinContent(228,83); eDepth1RawVsCorrectedTime__16->SetBinContent(229,3); eDepth1RawVsCorrectedTime__16->SetBinContent(251,2); eDepth1RawVsCorrectedTime__16->SetBinContent(252,241); eDepth1RawVsCorrectedTime__16->SetBinContent(253,3185); eDepth1RawVsCorrectedTime__16->SetBinContent(254,2970); eDepth1RawVsCorrectedTime__16->SetBinContent(255,537); eDepth1RawVsCorrectedTime__16->SetBinContent(256,151); eDepth1RawVsCorrectedTime__16->SetBinContent(278,13); eDepth1RawVsCorrectedTime__16->SetBinContent(279,371); eDepth1RawVsCorrectedTime__16->SetBinContent(280,551); eDepth1RawVsCorrectedTime__16->SetBinContent(281,66866); eDepth1RawVsCorrectedTime__16->SetBinContent(282,4101494); eDepth1RawVsCorrectedTime__16->SetBinContent(283,4397629); eDepth1RawVsCorrectedTime__16->SetBinContent(284,30144); eDepth1RawVsCorrectedTime__16->SetBinContent(285,216); eDepth1RawVsCorrectedTime__16->SetBinContent(307,151); eDepth1RawVsCorrectedTime__16->SetBinContent(308,13366); eDepth1RawVsCorrectedTime__16->SetBinContent(309,2141006); eDepth1RawVsCorrectedTime__16->SetBinContent(310,9490802); eDepth1RawVsCorrectedTime__16->SetBinContent(311,714204); eDepth1RawVsCorrectedTime__16->SetBinContent(312,4754); eDepth1RawVsCorrectedTime__16->SetBinContent(313,247); eDepth1RawVsCorrectedTime__16->SetBinContent(335,3); eDepth1RawVsCorrectedTime__16->SetBinContent(336,214); eDepth1RawVsCorrectedTime__16->SetBinContent(337,2027); eDepth1RawVsCorrectedTime__16->SetBinContent(338,5026); eDepth1RawVsCorrectedTime__16->SetBinContent(339,1779); eDepth1RawVsCorrectedTime__16->SetBinContent(340,75); eDepth1RawVsCorrectedTime__16->SetBinContent(341,18); eDepth1RawVsCorrectedTime__16->SetBinContent(363,3); eDepth1RawVsCorrectedTime__16->SetBinContent(364,92); eDepth1RawVsCorrectedTime__16->SetBinContent(365,56); eDepth1RawVsCorrectedTime__16->SetBinContent(366,191); eDepth1RawVsCorrectedTime__16->SetBinContent(367,163); eDepth1RawVsCorrectedTime__16->SetBinContent(368,32); eDepth1RawVsCorrectedTime__16->SetBinContent(369,1); eDepth1RawVsCorrectedTime__16->SetBinContent(391,3); eDepth1RawVsCorrectedTime__16->SetBinContent(392,4); eDepth1RawVsCorrectedTime__16->SetBinContent(394,10); eDepth1RawVsCorrectedTime__16->SetBinContent(395,23); eDepth1RawVsCorrectedTime__16->SetBinContent(396,6); eDepth1RawVsCorrectedTime__16->SetBinContent(422,7); eDepth1RawVsCorrectedTime__16->SetBinContent(423,18); eDepth1RawVsCorrectedTime__16->SetBinContent(424,5); eDepth1RawVsCorrectedTime__16->SetBinContent(425,1); eDepth1RawVsCorrectedTime__16->SetBinContent(452,1); eDepth1RawVsCorrectedTime__16->SetEntries(2.1021e+07); eDepth1RawVsCorrectedTime__16->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 = 2.1021e+07"); text = ptstats->AddText("Mean x = -0.4317"); text = ptstats->AddText("Mean y = 0.1799"); text = ptstats->AddText("RMS x = 0.8473"); text = ptstats->AddText("RMS y = 0.9876"); ptstats->SetOptStat(1110); ptstats->SetOptFit(0); ptstats->Draw(); eDepth1RawVsCorrectedTime__16->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(eDepth1RawVsCorrectedTime__16); eDepth1RawVsCorrectedTime__16->SetLineWidth(2); eDepth1RawVsCorrectedTime__16->SetMarkerStyle(20); eDepth1RawVsCorrectedTime__16->SetMarkerSize(1.2); eDepth1RawVsCorrectedTime__16->GetXaxis()->SetTitle("Raw Time [ns]"); eDepth1RawVsCorrectedTime__16->GetXaxis()->SetRange(3,21); eDepth1RawVsCorrectedTime__16->GetXaxis()->SetLabelFont(42); eDepth1RawVsCorrectedTime__16->GetXaxis()->SetLabelSize(0.05); eDepth1RawVsCorrectedTime__16->GetXaxis()->SetTitleSize(0.05); eDepth1RawVsCorrectedTime__16->GetXaxis()->SetTitleFont(42); eDepth1RawVsCorrectedTime__16->GetYaxis()->SetTitle("Corrected Time [ns]"); eDepth1RawVsCorrectedTime__16->GetYaxis()->SetRange(3,18); eDepth1RawVsCorrectedTime__16->GetYaxis()->SetLabelFont(42); eDepth1RawVsCorrectedTime__16->GetYaxis()->SetLabelSize(0.05); eDepth1RawVsCorrectedTime__16->GetYaxis()->SetTitleSize(0.05); eDepth1RawVsCorrectedTime__16->GetYaxis()->SetTitleFont(42); eDepth1RawVsCorrectedTime__16->GetZaxis()->SetLabelFont(42); eDepth1RawVsCorrectedTime__16->GetZaxis()->SetLabelSize(0.05); eDepth1RawVsCorrectedTime__16->GetZaxis()->SetTitleSize(0.05); eDepth1RawVsCorrectedTime__16->GetZaxis()->SetTitleFont(42); eDepth1RawVsCorrectedTime__16->Draw(""); TPaveText *pt = new TPaveText(0.1637298,0.9499264,0.7709251,0.9970545,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); text = pt->AddText("2D Plot of Raw vs Corrected Time with eDepth<=1580"); pt->Draw(); c1->Modified(); c1->cd(); c1->SetSelected(c1); }