{ //=========Macro generated from canvas: c1/c1 //========= (Sat Sep 29 21:03:55 2012) by ROOT version5.34/01 TCanvas *c1 = new TCanvas("c1", "c1",0,23,1366,705); c1->Range(-6.075676,-7.868354,6.897297,6.308861); 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 *eDepth3RawVsCorrectedTime__15 = new TH2D("eDepth3RawVsCorrectedTime__15","2D Plot of Raw vs Corrected Time with eDepth>=1630",25,-20,20,25,-20,20); eDepth3RawVsCorrectedTime__15->SetBinContent(308,1); eDepth3RawVsCorrectedTime__15->SetBinContent(335,2); eDepth3RawVsCorrectedTime__15->SetBinContent(336,2); eDepth3RawVsCorrectedTime__15->SetBinContent(363,239); eDepth3RawVsCorrectedTime__15->SetBinContent(364,1444); eDepth3RawVsCorrectedTime__15->SetBinContent(365,132); eDepth3RawVsCorrectedTime__15->SetBinContent(390,47); eDepth3RawVsCorrectedTime__15->SetBinContent(391,2668); eDepth3RawVsCorrectedTime__15->SetBinContent(392,2081); eDepth3RawVsCorrectedTime__15->SetBinContent(393,24); eDepth3RawVsCorrectedTime__15->SetBinContent(394,1); eDepth3RawVsCorrectedTime__15->SetBinContent(419,15); eDepth3RawVsCorrectedTime__15->SetBinContent(420,12); eDepth3RawVsCorrectedTime__15->SetBinContent(474,1); eDepth3RawVsCorrectedTime__15->SetEntries(6669); eDepth3RawVsCorrectedTime__15->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 = 6669 "); text = ptstats->AddText("Mean x = 0.4821"); text = ptstats->AddText("Mean y = 1.168"); text = ptstats->AddText("RMS x = 0.8927"); text = ptstats->AddText("RMS y = 0.7283"); ptstats->SetOptStat(1110); ptstats->SetOptFit(0); ptstats->Draw(); eDepth3RawVsCorrectedTime__15->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(eDepth3RawVsCorrectedTime__15); eDepth3RawVsCorrectedTime__15->SetLineWidth(2); eDepth3RawVsCorrectedTime__15->SetMarkerStyle(20); eDepth3RawVsCorrectedTime__15->SetMarkerSize(1.2); eDepth3RawVsCorrectedTime__15->GetXaxis()->SetTitle("Raw Time [ns]"); eDepth3RawVsCorrectedTime__15->GetXaxis()->SetRange(11,16); eDepth3RawVsCorrectedTime__15->GetXaxis()->SetLabelFont(42); eDepth3RawVsCorrectedTime__15->GetXaxis()->SetLabelSize(0.05); eDepth3RawVsCorrectedTime__15->GetXaxis()->SetTitleSize(0.05); eDepth3RawVsCorrectedTime__15->GetXaxis()->SetTitleFont(42); eDepth3RawVsCorrectedTime__15->GetYaxis()->SetTitle("Corrected Time [ns]"); eDepth3RawVsCorrectedTime__15->GetYaxis()->SetRange(10,16); eDepth3RawVsCorrectedTime__15->GetYaxis()->SetLabelFont(42); eDepth3RawVsCorrectedTime__15->GetYaxis()->SetLabelSize(0.05); eDepth3RawVsCorrectedTime__15->GetYaxis()->SetTitleSize(0.05); eDepth3RawVsCorrectedTime__15->GetYaxis()->SetTitleFont(42); eDepth3RawVsCorrectedTime__15->GetZaxis()->SetLabelFont(42); eDepth3RawVsCorrectedTime__15->GetZaxis()->SetLabelSize(0.05); eDepth3RawVsCorrectedTime__15->GetZaxis()->SetTitleSize(0.05); eDepth3RawVsCorrectedTime__15->GetZaxis()->SetTitleFont(42); eDepth3RawVsCorrectedTime__15->Draw(""); TPaveText *pt = new TPaveText(0.164464,0.9425626,0.7474302,0.9970545,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); text = pt->AddText("2D Plot of Raw vs Corrected Time with eDepth>=1630"); pt->Draw(); c1->Modified(); c1->cd(); c1->SetSelected(c1); }