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