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