{ //=========Macro generated from canvas: c1/c1 //========= (Sun Jul 18 16:08:11 2010) by ROOT version5.14/00h TCanvas *c1 = new TCanvas("c1", "c1",11,49,699,499); c1->Range(-33.75,-2311.97,33.75,20807.7); c1->SetBorderSize(2); c1->SetFrameFillColor(0); TH1 *htemp = new TH1F("htemp","globalPosX",100,-27,27); htemp->SetBinContent(9,12); htemp->SetBinContent(10,8); htemp->SetBinContent(11,10); htemp->SetBinContent(12,7); htemp->SetBinContent(13,2); htemp->SetBinContent(14,6); htemp->SetBinContent(15,6); htemp->SetBinContent(16,15); htemp->SetBinContent(17,2); htemp->SetBinContent(18,9); htemp->SetBinContent(19,10); htemp->SetBinContent(20,11); htemp->SetBinContent(21,7); htemp->SetBinContent(22,11); htemp->SetBinContent(23,13); htemp->SetBinContent(24,9); htemp->SetBinContent(25,9); htemp->SetBinContent(26,7); htemp->SetBinContent(27,9); htemp->SetBinContent(28,8); htemp->SetBinContent(29,15); htemp->SetBinContent(30,14); htemp->SetBinContent(31,13); htemp->SetBinContent(32,16); htemp->SetBinContent(33,10); htemp->SetBinContent(34,16); htemp->SetBinContent(35,12); htemp->SetBinContent(36,20); htemp->SetBinContent(37,14); htemp->SetBinContent(38,20); htemp->SetBinContent(39,30); htemp->SetBinContent(40,31); htemp->SetBinContent(41,42); htemp->SetBinContent(42,48); htemp->SetBinContent(43,128); htemp->SetBinContent(44,86); htemp->SetBinContent(45,212); htemp->SetBinContent(46,2815); htemp->SetBinContent(47,4184); htemp->SetBinContent(48,487); htemp->SetBinContent(49,17573); htemp->SetBinContent(50,10203); htemp->SetBinContent(51,10167); htemp->SetBinContent(52,17615); htemp->SetBinContent(53,508); htemp->SetBinContent(54,4234); htemp->SetBinContent(55,2752); htemp->SetBinContent(56,200); htemp->SetBinContent(57,70); htemp->SetBinContent(58,118); htemp->SetBinContent(59,56); htemp->SetBinContent(60,37); htemp->SetBinContent(61,43); htemp->SetBinContent(62,29); htemp->SetBinContent(63,31); htemp->SetBinContent(64,19); htemp->SetBinContent(65,22); htemp->SetBinContent(66,10); htemp->SetBinContent(67,24); htemp->SetBinContent(68,9); htemp->SetBinContent(69,18); htemp->SetBinContent(70,12); htemp->SetBinContent(71,14); htemp->SetBinContent(72,13); htemp->SetBinContent(73,8); htemp->SetBinContent(74,11); htemp->SetBinContent(75,8); htemp->SetBinContent(76,11); htemp->SetBinContent(77,5); htemp->SetBinContent(78,11); htemp->SetBinContent(79,4); htemp->SetBinContent(80,9); htemp->SetBinContent(81,9); htemp->SetBinContent(82,3); htemp->SetBinContent(83,12); htemp->SetBinContent(84,2); htemp->SetBinContent(85,13); htemp->SetBinContent(86,5); htemp->SetBinContent(87,14); htemp->SetBinContent(88,4); htemp->SetBinContent(89,6); htemp->SetBinContent(90,7); htemp->SetBinContent(91,5); htemp->SetBinContent(92,5); htemp->SetBinContent(93,1); htemp->SetEntries(72314); htemp->SetDirectory(0); TPaveStats *ptstats = new TPaveStats(0.78,0.835,0.98,0.995,"brNDC"); ptstats->SetName("stats"); ptstats->SetBorderSize(2); ptstats->SetFillColor(19); ptstats->SetTextAlign(12); TText *text = ptstats->AddText("htemp"); text->SetTextSize(0.0368); text = ptstats->AddText("Entries = 72314 "); text = ptstats->AddText("Mean = -0.003846"); text = ptstats->AddText("RMS = 1.795"); ptstats->SetOptStat(1111); ptstats->SetOptFit(0); ptstats->Draw(); htemp->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(htemp->GetListOfFunctions()); htemp->GetXaxis()->SetTitle("globalPosX"); htemp->Draw(""); TPaveText *pt = new TPaveText(0.01,0.939371,0.198122,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(2); pt->SetFillColor(19); text = pt->AddText("globalPosX"); pt->Draw(); c1->Modified(); c1->cd(); c1->SetSelected(c1); }