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