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