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