{ //=========Macro generated from canvas: c1/c1 //========= (Mon Dec 22 14:59:10 2014) by ROOT version5.34/19 TCanvas *c1 = new TCanvas("c1", "c1",2293,106,864,765); gStyle->SetOptStat(0); c1->Range(-21.79487,-15.6,106.4103,88.4); c1->SetFillColor(0); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetLeftMargin(0.17); c1->SetRightMargin(0.05); c1->SetBottomMargin(0.15); c1->SetFrameBorderMode(0); c1->SetFrameBorderMode(0); TH1F *hist03 = new TH1F("hist03","Ch=37,13,05",100,0,100); hist03->SetBinContent(1,1); hist03->SetBinContent(2,4); hist03->SetBinContent(4,2); hist03->SetBinContent(5,5); hist03->SetBinContent(6,3); hist03->SetBinContent(7,3); hist03->SetBinContent(8,4); hist03->SetBinContent(9,4); hist03->SetBinContent(10,3); hist03->SetBinContent(11,4); hist03->SetBinContent(12,4); hist03->SetBinContent(13,5); hist03->SetBinContent(14,4); hist03->SetBinContent(15,4); hist03->SetBinContent(16,3); hist03->SetBinContent(17,5); hist03->SetBinContent(18,1); hist03->SetBinContent(19,4); hist03->SetBinContent(20,5); hist03->SetBinContent(21,5); hist03->SetBinContent(22,4); hist03->SetBinContent(23,5); hist03->SetBinContent(24,3); hist03->SetBinContent(25,3); hist03->SetBinContent(26,1); hist03->SetBinContent(27,1); hist03->SetBinContent(28,2); hist03->SetBinContent(29,7); hist03->SetBinContent(30,3); hist03->SetBinContent(31,5); hist03->SetBinContent(32,3); hist03->SetBinContent(33,2); hist03->SetBinContent(34,4); hist03->SetBinContent(35,3); hist03->SetBinContent(36,9); hist03->SetBinContent(37,14); hist03->SetBinContent(38,16); hist03->SetBinContent(39,16); hist03->SetBinContent(40,17); hist03->SetBinContent(41,16); hist03->SetBinContent(42,18); hist03->SetBinContent(43,15); hist03->SetBinContent(44,15); hist03->SetBinContent(45,14); hist03->SetBinContent(46,13); hist03->SetBinContent(47,13); hist03->SetBinContent(48,11); hist03->SetBinContent(49,9); hist03->SetBinContent(50,9); hist03->SetBinContent(51,10); hist03->SetBinContent(52,10); hist03->SetBinContent(53,10); hist03->SetBinContent(54,8); hist03->SetBinContent(55,10); hist03->SetBinContent(56,9); hist03->SetBinContent(57,10); hist03->SetBinContent(58,8); hist03->SetBinContent(59,8); hist03->SetBinContent(60,10); hist03->SetBinContent(61,8); hist03->SetBinContent(62,7); hist03->SetBinContent(63,7); hist03->SetBinContent(64,8); hist03->SetBinContent(65,6); hist03->SetBinContent(66,5); hist03->SetBinContent(67,5); hist03->SetBinContent(68,7); hist03->SetBinContent(69,8); hist03->SetBinContent(70,7); hist03->SetBinContent(71,5); hist03->SetBinContent(72,6); hist03->SetBinContent(73,5); hist03->SetBinContent(74,5); hist03->SetBinContent(75,5); hist03->SetBinContent(76,4); hist03->SetBinContent(77,5); hist03->SetBinContent(78,4); hist03->SetBinContent(79,5); hist03->SetBinContent(80,5); hist03->SetBinContent(81,4); hist03->SetBinContent(82,5); hist03->SetBinContent(83,5); hist03->SetBinContent(84,5); hist03->SetBinContent(85,4); hist03->SetBinContent(86,4); hist03->SetBinContent(87,4); hist03->SetBinContent(88,4); hist03->SetBinContent(89,5); hist03->SetBinContent(90,5); hist03->SetBinContent(91,4); hist03->SetBinContent(92,4); hist03->SetBinContent(93,4); hist03->SetBinContent(94,3); hist03->SetBinContent(95,4); hist03->SetBinContent(96,6); hist03->SetBinContent(97,6); hist03->SetBinContent(98,3); hist03->SetBinContent(99,4); hist03->SetBinContent(100,5); hist03->SetMaximum(78); hist03->SetEntries(300); hist03->SetStats(0); hist03->SetLineColor(2); hist03->GetXaxis()->SetTitle("sample (4 ns)"); hist03->GetXaxis()->SetNdivisions(505); hist03->GetXaxis()->SetLabelFont(42); hist03->GetXaxis()->SetLabelSize(0.07); hist03->GetXaxis()->SetTitleSize(0.07); hist03->GetXaxis()->SetTitleFont(42); hist03->GetYaxis()->SetTitle("ADC value"); hist03->GetYaxis()->SetNdivisions(505); hist03->GetYaxis()->SetLabelFont(42); hist03->GetYaxis()->SetLabelSize(0.07); hist03->GetYaxis()->SetTitleSize(0.07); hist03->GetYaxis()->SetTitleOffset(1.2); hist03->GetYaxis()->SetTitleFont(42); hist03->GetZaxis()->SetLabelFont(42); hist03->GetZaxis()->SetLabelSize(0.07); hist03->GetZaxis()->SetTitleSize(0.07); hist03->GetZaxis()->SetTitleFont(42); hist03->Draw(""); TPaveText *pt = new TPaveText(0,0.9021913,0.4293023,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *text = pt->AddText("Ch=37,13,05"); pt->Draw(); c1->Modified(); c1->cd(); c1->SetSelected(c1); }