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