{ //=========Macro generated from canvas: c1/c1 //========= (Sat Sep 29 20:56:32 2012) by ROOT version5.34/01 TCanvas *c1 = new TCanvas("c1", "c1",0,23,1366,705); c1->Range(-8.594595,-16.86076,7.621622,13.51899); 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 *eDepth2RawVsCorrectedTime__14 = new TH2D("eDepth2RawVsCorrectedTime__14","2D Plot of Raw vs Corrected Time with 1580SetBinContent(773,3); eDepth2RawVsCorrectedTime__14->SetBinContent(777,1); eDepth2RawVsCorrectedTime__14->SetBinContent(816,2); eDepth2RawVsCorrectedTime__14->SetBinContent(817,21); eDepth2RawVsCorrectedTime__14->SetBinContent(818,5); eDepth2RawVsCorrectedTime__14->SetBinContent(857,8); eDepth2RawVsCorrectedTime__14->SetBinContent(858,182); eDepth2RawVsCorrectedTime__14->SetBinContent(859,7419); eDepth2RawVsCorrectedTime__14->SetBinContent(860,16949); eDepth2RawVsCorrectedTime__14->SetBinContent(861,2728); eDepth2RawVsCorrectedTime__14->SetBinContent(862,13); eDepth2RawVsCorrectedTime__14->SetBinContent(899,3); eDepth2RawVsCorrectedTime__14->SetBinContent(900,14); eDepth2RawVsCorrectedTime__14->SetBinContent(901,3754); eDepth2RawVsCorrectedTime__14->SetBinContent(902,30213); eDepth2RawVsCorrectedTime__14->SetBinContent(903,21915); eDepth2RawVsCorrectedTime__14->SetBinContent(904,1697); eDepth2RawVsCorrectedTime__14->SetBinContent(905,13); eDepth2RawVsCorrectedTime__14->SetBinContent(906,2); eDepth2RawVsCorrectedTime__14->SetBinContent(943,5); eDepth2RawVsCorrectedTime__14->SetBinContent(944,305); eDepth2RawVsCorrectedTime__14->SetBinContent(945,1502); eDepth2RawVsCorrectedTime__14->SetBinContent(946,907); eDepth2RawVsCorrectedTime__14->SetBinContent(947,38); eDepth2RawVsCorrectedTime__14->SetBinContent(948,2); eDepth2RawVsCorrectedTime__14->SetBinContent(949,1); eDepth2RawVsCorrectedTime__14->SetBinContent(986,1); eDepth2RawVsCorrectedTime__14->SetBinContent(987,4); eDepth2RawVsCorrectedTime__14->SetBinContent(988,16); eDepth2RawVsCorrectedTime__14->SetBinContent(989,14); eDepth2RawVsCorrectedTime__14->SetBinContent(990,2); eDepth2RawVsCorrectedTime__14->SetEntries(87739); eDepth2RawVsCorrectedTime__14->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 = 87739 "); text = ptstats->AddText("Mean x = -0.272"); text = ptstats->AddText("Mean y = 0.2204"); text = ptstats->AddText("RMS x = 0.7157"); text = ptstats->AddText("RMS y = 0.5175"); ptstats->SetOptStat(1110); ptstats->SetOptFit(0); ptstats->Draw(); eDepth2RawVsCorrectedTime__14->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(eDepth2RawVsCorrectedTime__14); eDepth2RawVsCorrectedTime__14->SetLineWidth(2); eDepth2RawVsCorrectedTime__14->SetMarkerStyle(20); eDepth2RawVsCorrectedTime__14->SetMarkerSize(1.2); eDepth2RawVsCorrectedTime__14->GetXaxis()->SetTitle("Raw Time [ns]"); eDepth2RawVsCorrectedTime__14->GetXaxis()->SetRange(15,26); eDepth2RawVsCorrectedTime__14->GetXaxis()->SetLabelFont(42); eDepth2RawVsCorrectedTime__14->GetXaxis()->SetLabelSize(0.05); eDepth2RawVsCorrectedTime__14->GetXaxis()->SetTitleSize(0.05); eDepth2RawVsCorrectedTime__14->GetXaxis()->SetTitleFont(42); eDepth2RawVsCorrectedTime__14->GetYaxis()->SetTitle("Corrected Time [ns]"); eDepth2RawVsCorrectedTime__14->GetYaxis()->SetRange(9,32); eDepth2RawVsCorrectedTime__14->GetYaxis()->SetLabelFont(42); eDepth2RawVsCorrectedTime__14->GetYaxis()->SetLabelSize(0.05); eDepth2RawVsCorrectedTime__14->GetYaxis()->SetTitleSize(0.05); eDepth2RawVsCorrectedTime__14->GetYaxis()->SetTitleFont(42); eDepth2RawVsCorrectedTime__14->GetZaxis()->SetLabelFont(42); eDepth2RawVsCorrectedTime__14->GetZaxis()->SetLabelSize(0.05); eDepth2RawVsCorrectedTime__14->GetZaxis()->SetTitleSize(0.05); eDepth2RawVsCorrectedTime__14->GetZaxis()->SetTitleFont(42); eDepth2RawVsCorrectedTime__14->Draw(""); TPaveText *pt = new TPaveText(0.160793,0.9425626,0.7966226,0.9970545,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); text = pt->AddText("2D Plot of Raw vs Corrected Time with 1580Draw(); c1->Modified(); c1->cd(); c1->SetSelected(c1); }