void RatesPerCell_Removing_noisy_cells_run_5396_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:35:37 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-8836.169,67.5,79525.52); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5396",60,0,60); h_SL2L164->SetBinContent(1,730); h_SL2L164->SetBinContent(2,914.2858); h_SL2L164->SetBinContent(3,968.5715); h_SL2L164->SetBinContent(4,1110); h_SL2L164->SetBinContent(5,1094.286); h_SL2L164->SetBinContent(6,1142.857); h_SL2L164->SetBinContent(7,1182.857); h_SL2L164->SetBinContent(8,1314.286); h_SL2L164->SetBinContent(9,1365.714); h_SL2L164->SetBinContent(10,1532.857); h_SL2L164->SetBinContent(11,1855.714); h_SL2L164->SetBinContent(12,1880); h_SL2L164->SetBinContent(13,1958.572); h_SL2L164->SetBinContent(14,2124.286); h_SL2L164->SetBinContent(15,2268.572); h_SL2L164->SetBinContent(16,2395.714); h_SL2L164->SetBinContent(17,2612.857); h_SL2L164->SetBinContent(18,2800); h_SL2L164->SetBinContent(19,3115.714); h_SL2L164->SetBinContent(20,3188.572); h_SL2L164->SetBinContent(21,3271.429); h_SL2L164->SetBinContent(22,3572.857); h_SL2L164->SetBinContent(23,3864.286); h_SL2L164->SetBinContent(24,4210); h_SL2L164->SetBinContent(25,9214.286); h_SL2L164->SetBinContent(26,29631.43); h_SL2L164->SetBinContent(27,44265.71); h_SL2L164->SetBinContent(28,51487.14); h_SL2L164->SetBinContent(29,53451.43); h_SL2L164->SetBinContent(30,51298.57); h_SL2L164->SetBinContent(31,46961.43); h_SL2L164->SetBinContent(32,47357.14); h_SL2L164->SetBinContent(33,45700); h_SL2L164->SetBinContent(34,26162.86); h_SL2L164->SetBinContent(36,4510); h_SL2L164->SetBinContent(37,3565.714); h_SL2L164->SetBinContent(38,3025.714); h_SL2L164->SetBinContent(39,2772.857); h_SL2L164->SetBinContent(40,2054.286); h_SL2L164->SetBinContent(41,1972.857); h_SL2L164->SetBinContent(42,1907.143); h_SL2L164->SetBinContent(43,1838.572); h_SL2L164->SetBinContent(44,1687.143); h_SL2L164->SetBinContent(45,1572.857); h_SL2L164->SetBinContent(46,1411.429); h_SL2L164->SetBinContent(47,1382.857); h_SL2L164->SetBinContent(48,1240); h_SL2L164->SetBinContent(49,1267.143); h_SL2L164->SetBinContent(50,1072.857); h_SL2L164->SetBinContent(51,1080); h_SL2L164->SetBinContent(52,1024.286); h_SL2L164->SetBinContent(53,1072.857); h_SL2L164->SetBinContent(54,991.4286); h_SL2L164->SetBinContent(55,955.7143); h_SL2L164->SetBinContent(56,868.5715); h_SL2L164->SetBinContent(57,801.4286); h_SL2L164->SetMaximum(70689.35); h_SL2L164->SetEntries(60); h_SL2L164->SetDirectory(0); h_SL2L164->SetStats(0); h_SL2L164->SetLineWidth(2); h_SL2L164->GetXaxis()->SetTitle("Cell"); h_SL2L164->GetXaxis()->SetLabelFont(42); h_SL2L164->GetXaxis()->SetLabelSize(0.035); h_SL2L164->GetXaxis()->SetTitleSize(0.035); h_SL2L164->GetXaxis()->SetTitleFont(42); h_SL2L164->GetYaxis()->SetTitle("Hz"); h_SL2L164->GetYaxis()->SetLabelFont(42); h_SL2L164->GetYaxis()->SetLabelSize(0.035); h_SL2L164->GetYaxis()->SetTitleSize(0.035); h_SL2L164->GetYaxis()->SetTitleOffset(1.45); h_SL2L164->GetYaxis()->SetTitleFont(42); h_SL2L164->GetZaxis()->SetLabelFont(42); h_SL2L164->GetZaxis()->SetLabelSize(0.035); h_SL2L164->GetZaxis()->SetTitleSize(0.035); h_SL2L164->GetZaxis()->SetTitleFont(42); h_SL2L164->Draw(""); TH1D *h_SL2L265 = new TH1D("h_SL2L265","",60,0,60); h_SL2L265->SetBinContent(1,687.1429); h_SL2L265->SetBinContent(2,917.1429); h_SL2L265->SetBinContent(3,907.1429); h_SL2L265->SetBinContent(4,1044.286); h_SL2L265->SetBinContent(5,1111.429); h_SL2L265->SetBinContent(6,1097.143); h_SL2L265->SetBinContent(7,1152.857); h_SL2L265->SetBinContent(8,1147.143); h_SL2L265->SetBinContent(9,1381.429); h_SL2L265->SetBinContent(10,1408.571); h_SL2L265->SetBinContent(11,1592.857); h_SL2L265->SetBinContent(12,1772.857); h_SL2L265->SetBinContent(13,1920); h_SL2L265->SetBinContent(14,2037.143); h_SL2L265->SetBinContent(15,2064.286); h_SL2L265->SetBinContent(16,2280); h_SL2L265->SetBinContent(17,2448.572); h_SL2L265->SetBinContent(18,2585.714); h_SL2L265->SetBinContent(19,2865.714); h_SL2L265->SetBinContent(20,3038.572); h_SL2L265->SetBinContent(21,3112.857); h_SL2L265->SetBinContent(22,3460); h_SL2L265->SetBinContent(23,3498.572); h_SL2L265->SetBinContent(24,3945.714); h_SL2L265->SetBinContent(25,4797.143); h_SL2L265->SetBinContent(26,18837.14); h_SL2L265->SetBinContent(27,38254.29); h_SL2L265->SetBinContent(28,48575.71); h_SL2L265->SetBinContent(29,52722.86); h_SL2L265->SetBinContent(30,52365.71); h_SL2L265->SetBinContent(31,48131.43); h_SL2L265->SetBinContent(32,47080); h_SL2L265->SetBinContent(33,46307.14); h_SL2L265->SetBinContent(34,39195.71); h_SL2L265->SetBinContent(35,14125.71); h_SL2L265->SetBinContent(36,5581.429); h_SL2L265->SetBinContent(37,3921.429); h_SL2L265->SetBinContent(38,3182.857); h_SL2L265->SetBinContent(39,2761.429); h_SL2L265->SetBinContent(40,2512.857); h_SL2L265->SetBinContent(41,2291.429); h_SL2L265->SetBinContent(42,1937.143); h_SL2L265->SetBinContent(43,1817.143); h_SL2L265->SetBinContent(44,1734.286); h_SL2L265->SetBinContent(45,1565.714); h_SL2L265->SetBinContent(46,1410); h_SL2L265->SetBinContent(47,1342.857); h_SL2L265->SetBinContent(48,1287.143); h_SL2L265->SetBinContent(49,1248.571); h_SL2L265->SetBinContent(50,1098.571); h_SL2L265->SetBinContent(51,1124.286); h_SL2L265->SetBinContent(52,1045.714); h_SL2L265->SetBinContent(53,978.5715); h_SL2L265->SetBinContent(54,1014.286); h_SL2L265->SetBinContent(55,994.2858); h_SL2L265->SetBinContent(56,871.4286); h_SL2L265->SetBinContent(57,811.4286); h_SL2L265->SetMaximum(61469.14); h_SL2L265->SetEntries(60); h_SL2L265->SetDirectory(0); h_SL2L265->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL2L265->SetLineColor(ci); h_SL2L265->SetLineWidth(2); h_SL2L265->GetXaxis()->SetTitle("Cell"); h_SL2L265->GetXaxis()->SetLabelFont(42); h_SL2L265->GetXaxis()->SetLabelSize(0.035); h_SL2L265->GetXaxis()->SetTitleSize(0.035); h_SL2L265->GetXaxis()->SetTitleFont(42); h_SL2L265->GetYaxis()->SetTitle("Hz"); h_SL2L265->GetYaxis()->SetLabelFont(42); h_SL2L265->GetYaxis()->SetLabelSize(0.035); h_SL2L265->GetYaxis()->SetTitleSize(0.035); h_SL2L265->GetYaxis()->SetTitleOffset(1.45); h_SL2L265->GetYaxis()->SetTitleFont(42); h_SL2L265->GetZaxis()->SetLabelFont(42); h_SL2L265->GetZaxis()->SetLabelSize(0.035); h_SL2L265->GetZaxis()->SetTitleSize(0.035); h_SL2L265->GetZaxis()->SetTitleFont(42); h_SL2L265->Draw("same"); TH1D *h_SL2L366 = new TH1D("h_SL2L366","",60,0,60); h_SL2L366->SetBinContent(1,751.4286); h_SL2L366->SetBinContent(2,888.5715); h_SL2L366->SetBinContent(3,951.4286); h_SL2L366->SetBinContent(4,1092.857); h_SL2L366->SetBinContent(5,1044.286); h_SL2L366->SetBinContent(6,1068.571); h_SL2L366->SetBinContent(7,1105.714); h_SL2L366->SetBinContent(8,1281.429); h_SL2L366->SetBinContent(9,1304.286); h_SL2L366->SetBinContent(10,1427.143); h_SL2L366->SetBinContent(11,1742.857); h_SL2L366->SetBinContent(12,1802.857); h_SL2L366->SetBinContent(13,1838.572); h_SL2L366->SetBinContent(14,2042.857); h_SL2L366->SetBinContent(15,2152.857); h_SL2L366->SetBinContent(16,2321.429); h_SL2L366->SetBinContent(17,2412.857); h_SL2L366->SetBinContent(18,2702.857); h_SL2L366->SetBinContent(19,2954.286); h_SL2L366->SetBinContent(20,3040); h_SL2L366->SetBinContent(21,3177.143); h_SL2L366->SetBinContent(22,3535.714); h_SL2L366->SetBinContent(23,3657.143); h_SL2L366->SetBinContent(24,4107.143); h_SL2L366->SetBinContent(25,9221.429); h_SL2L366->SetBinContent(26,29451.43); h_SL2L366->SetBinContent(27,43958.57); h_SL2L366->SetBinContent(28,51387.14); h_SL2L366->SetBinContent(29,53168.57); h_SL2L366->SetBinContent(30,50777.14); h_SL2L366->SetBinContent(31,46634.29); h_SL2L366->SetBinContent(32,47020); h_SL2L366->SetBinContent(33,45320); h_SL2L366->SetBinContent(34,26020); h_SL2L366->SetBinContent(35,7828.572); h_SL2L366->SetBinContent(36,4490); h_SL2L366->SetBinContent(37,3380); h_SL2L366->SetBinContent(38,2841.429); h_SL2L366->SetBinContent(39,2587.143); h_SL2L366->SetBinContent(40,2204.286); h_SL2L366->SetBinContent(41,1978.572); h_SL2L366->SetBinContent(42,1780); h_SL2L366->SetBinContent(43,1740); h_SL2L366->SetBinContent(44,1584.286); h_SL2L366->SetBinContent(45,1481.429); h_SL2L366->SetBinContent(46,1330); h_SL2L366->SetBinContent(47,1287.143); h_SL2L366->SetBinContent(48,1210); h_SL2L366->SetBinContent(49,1177.143); h_SL2L366->SetBinContent(50,1065.714); h_SL2L366->SetBinContent(51,1037.143); h_SL2L366->SetBinContent(52,974.2858); h_SL2L366->SetBinContent(53,1007.143); h_SL2L366->SetBinContent(54,952.8572); h_SL2L366->SetBinContent(55,915.7143); h_SL2L366->SetBinContent(56,824.2857); h_SL2L366->SetBinContent(57,812.8572); h_SL2L366->SetMaximum(61469.14); h_SL2L366->SetEntries(60); h_SL2L366->SetDirectory(0); h_SL2L366->SetStats(0); ci = TColor::GetColor("#009900"); h_SL2L366->SetLineColor(ci); h_SL2L366->SetLineWidth(2); h_SL2L366->GetXaxis()->SetTitle("Cell"); h_SL2L366->GetXaxis()->SetLabelFont(42); h_SL2L366->GetXaxis()->SetLabelSize(0.035); h_SL2L366->GetXaxis()->SetTitleSize(0.035); h_SL2L366->GetXaxis()->SetTitleFont(42); h_SL2L366->GetYaxis()->SetTitle("Hz"); h_SL2L366->GetYaxis()->SetLabelFont(42); h_SL2L366->GetYaxis()->SetLabelSize(0.035); h_SL2L366->GetYaxis()->SetTitleSize(0.035); h_SL2L366->GetYaxis()->SetTitleOffset(1.45); h_SL2L366->GetYaxis()->SetTitleFont(42); h_SL2L366->GetZaxis()->SetLabelFont(42); h_SL2L366->GetZaxis()->SetLabelSize(0.035); h_SL2L366->GetZaxis()->SetTitleSize(0.035); h_SL2L366->GetZaxis()->SetTitleFont(42); h_SL2L366->Draw("same"); TH1D *h_SL2L467 = new TH1D("h_SL2L467","",60,0,60); h_SL2L467->SetBinContent(2,845.7143); h_SL2L467->SetBinContent(3,865.7143); h_SL2L467->SetBinContent(4,1037.143); h_SL2L467->SetBinContent(5,1034.286); h_SL2L467->SetBinContent(6,1040); h_SL2L467->SetBinContent(7,1094.286); h_SL2L467->SetBinContent(8,1092.857); h_SL2L467->SetBinContent(9,1304.286); h_SL2L467->SetBinContent(10,1342.857); h_SL2L467->SetBinContent(11,1487.143); h_SL2L467->SetBinContent(12,1652.857); h_SL2L467->SetBinContent(13,1774.286); h_SL2L467->SetBinContent(14,1907.143); h_SL2L467->SetBinContent(15,1962.857); h_SL2L467->SetBinContent(16,2190); h_SL2L467->SetBinContent(17,2287.143); h_SL2L467->SetBinContent(18,2455.714); h_SL2L467->SetBinContent(19,2698.572); h_SL2L467->SetBinContent(20,2914.286); h_SL2L467->SetBinContent(21,2997.143); h_SL2L467->SetBinContent(22,3408.572); h_SL2L467->SetBinContent(23,3431.429); h_SL2L467->SetBinContent(24,3750); h_SL2L467->SetBinContent(25,4630); h_SL2L467->SetBinContent(26,18665.71); h_SL2L467->SetBinContent(27,38311.43); h_SL2L467->SetBinContent(28,48365.71); h_SL2L467->SetBinContent(29,52805.71); h_SL2L467->SetBinContent(30,52634.29); h_SL2L467->SetBinContent(31,48232.86); h_SL2L467->SetBinContent(32,47125.71); h_SL2L467->SetBinContent(33,46424.29); h_SL2L467->SetBinContent(34,39371.43); h_SL2L467->SetBinContent(35,13935.71); h_SL2L467->SetBinContent(36,5454.286); h_SL2L467->SetBinContent(37,3741.429); h_SL2L467->SetBinContent(38,3035.714); h_SL2L467->SetBinContent(39,2681.429); h_SL2L467->SetBinContent(40,2334.286); h_SL2L467->SetBinContent(41,2120); h_SL2L467->SetBinContent(42,1822.857); h_SL2L467->SetBinContent(43,1661.429); h_SL2L467->SetBinContent(44,1604.286); h_SL2L467->SetBinContent(45,1497.143); h_SL2L467->SetBinContent(46,1374.286); h_SL2L467->SetBinContent(47,1298.571); h_SL2L467->SetBinContent(48,1205.714); h_SL2L467->SetBinContent(49,1175.714); h_SL2L467->SetBinContent(50,1025.714); h_SL2L467->SetBinContent(51,1075.714); h_SL2L467->SetBinContent(52,984.2858); h_SL2L467->SetBinContent(53,964.2858); h_SL2L467->SetBinContent(54,980); h_SL2L467->SetBinContent(55,964.2858); h_SL2L467->SetBinContent(56,834.2857); h_SL2L467->SetBinContent(57,800); h_SL2L467->SetMaximum(61469.14); h_SL2L467->SetEntries(60); h_SL2L467->SetDirectory(0); h_SL2L467->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL2L467->SetLineColor(ci); h_SL2L467->SetLineWidth(2); h_SL2L467->GetXaxis()->SetTitle("Cell"); h_SL2L467->GetXaxis()->SetLabelFont(42); h_SL2L467->GetXaxis()->SetLabelSize(0.035); h_SL2L467->GetXaxis()->SetTitleSize(0.035); h_SL2L467->GetXaxis()->SetTitleFont(42); h_SL2L467->GetYaxis()->SetTitle("Hz"); h_SL2L467->GetYaxis()->SetLabelFont(42); h_SL2L467->GetYaxis()->SetLabelSize(0.035); h_SL2L467->GetYaxis()->SetTitleSize(0.035); h_SL2L467->GetYaxis()->SetTitleOffset(1.45); h_SL2L467->GetYaxis()->SetTitleFont(42); h_SL2L467->GetZaxis()->SetLabelFont(42); h_SL2L467->GetZaxis()->SetLabelSize(0.035); h_SL2L467->GetZaxis()->SetTitleSize(0.035); h_SL2L467->GetZaxis()->SetTitleFont(42); h_SL2L467->Draw("same"); TLegend *leg = new TLegend(0.1,0.83,0.9,0.9,NULL,"brNDC"); leg->SetBorderSize(1); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("h_SL2L1","Layer 1","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("h_SL2L2","Layer 2","l"); ci = TColor::GetColor("#cc0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("h_SL2L3","Layer 3","l"); ci = TColor::GetColor("#009900"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("h_SL2L4","Layer 4","l"); ci = TColor::GetColor("#0000cc"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); TPaveText *pt = new TPaveText(0.3719095,0.9362587,0.6280905,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("SL2, run 5396"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }