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