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