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