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