void RatesPerCell_Removing_noisy_cells_run_5357_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:35:54 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-12189.43,67.5,109704.8); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5357",60,0,60); h_SL1L160->SetBinContent(1,457.1429); h_SL1L160->SetBinContent(2,472.8571); h_SL1L160->SetBinContent(3,10384.29); h_SL1L160->SetBinContent(4,562.8572); h_SL1L160->SetBinContent(5,544.2857); h_SL1L160->SetBinContent(6,657.1429); h_SL1L160->SetBinContent(7,530); h_SL1L160->SetBinContent(8,630); h_SL1L160->SetBinContent(9,627.1429); h_SL1L160->SetBinContent(10,818.5715); h_SL1L160->SetBinContent(11,830); h_SL1L160->SetBinContent(12,995.7143); h_SL1L160->SetBinContent(13,1032.857); h_SL1L160->SetBinContent(14,1138.571); h_SL1L160->SetBinContent(15,1015.714); h_SL1L160->SetBinContent(16,1098.571); h_SL1L160->SetBinContent(17,1237.143); h_SL1L160->SetBinContent(18,1514.286); h_SL1L160->SetBinContent(19,1554.286); h_SL1L160->SetBinContent(20,1830); h_SL1L160->SetBinContent(21,2070); h_SL1L160->SetBinContent(22,2260); h_SL1L160->SetBinContent(23,2537.143); h_SL1L160->SetBinContent(24,2830); h_SL1L160->SetBinContent(25,3110); h_SL1L160->SetBinContent(26,3338.572); h_SL1L160->SetBinContent(27,3517.143); h_SL1L160->SetBinContent(28,4561.429); h_SL1L160->SetBinContent(29,4880); h_SL1L160->SetBinContent(30,5381.429); h_SL1L160->SetBinContent(31,7632.857); h_SL1L160->SetBinContent(32,14561.43); h_SL1L160->SetBinContent(33,68528.57); h_SL1L160->SetBinContent(34,68640); h_SL1L160->SetBinContent(35,64251.43); h_SL1L160->SetBinContent(36,62627.14); h_SL1L160->SetBinContent(37,56781.43); h_SL1L160->SetBinContent(38,44885.71); h_SL1L160->SetBinContent(39,26761.43); h_SL1L160->SetBinContent(40,7311.429); h_SL1L160->SetBinContent(41,4761.429); h_SL1L160->SetBinContent(42,4151.429); h_SL1L160->SetBinContent(43,3725.714); h_SL1L160->SetBinContent(44,3425.714); h_SL1L160->SetBinContent(45,3241.429); h_SL1L160->SetBinContent(46,3012.857); h_SL1L160->SetBinContent(47,2661.429); h_SL1L160->SetBinContent(48,2534.286); h_SL1L160->SetBinContent(49,2485.714); h_SL1L160->SetBinContent(50,2330); h_SL1L160->SetBinContent(51,2147.143); h_SL1L160->SetBinContent(52,2042.857); h_SL1L160->SetBinContent(53,1874.286); h_SL1L160->SetBinContent(54,1824.286); h_SL1L160->SetBinContent(55,1727.143); h_SL1L160->SetBinContent(56,1611.429); h_SL1L160->SetBinContent(57,1670); h_SL1L160->SetBinContent(58,1531.429); h_SL1L160->SetBinContent(59,1545.714); h_SL1L160->SetMaximum(97515.4); h_SL1L160->SetEntries(60); h_SL1L160->SetDirectory(0); h_SL1L160->SetStats(0); h_SL1L160->SetLineWidth(2); h_SL1L160->GetXaxis()->SetTitle("Cell"); h_SL1L160->GetXaxis()->SetLabelFont(42); h_SL1L160->GetXaxis()->SetLabelSize(0.035); h_SL1L160->GetXaxis()->SetTitleSize(0.035); h_SL1L160->GetXaxis()->SetTitleFont(42); h_SL1L160->GetYaxis()->SetTitle("Hz"); h_SL1L160->GetYaxis()->SetLabelFont(42); h_SL1L160->GetYaxis()->SetLabelSize(0.035); h_SL1L160->GetYaxis()->SetTitleSize(0.035); h_SL1L160->GetYaxis()->SetTitleOffset(1.45); h_SL1L160->GetYaxis()->SetTitleFont(42); h_SL1L160->GetZaxis()->SetLabelFont(42); h_SL1L160->GetZaxis()->SetLabelSize(0.035); h_SL1L160->GetZaxis()->SetTitleSize(0.035); h_SL1L160->GetZaxis()->SetTitleFont(42); h_SL1L160->Draw(""); TH1D *h_SL1L261 = new TH1D("h_SL1L261","",60,0,60); h_SL1L261->SetBinContent(1,410); h_SL1L261->SetBinContent(2,440); h_SL1L261->SetBinContent(3,401.4286); h_SL1L261->SetBinContent(4,487.1429); h_SL1L261->SetBinContent(5,514.2857); h_SL1L261->SetBinContent(6,511.4286); h_SL1L261->SetBinContent(7,481.4286); h_SL1L261->SetBinContent(8,565.7143); h_SL1L261->SetBinContent(9,597.1429); h_SL1L261->SetBinContent(10,637.1429); h_SL1L261->SetBinContent(11,694.2857); h_SL1L261->SetBinContent(12,845.7143); h_SL1L261->SetBinContent(13,945.7143); h_SL1L261->SetBinContent(14,1075.714); h_SL1L261->SetBinContent(15,991.4286); h_SL1L261->SetBinContent(16,991.4286); h_SL1L261->SetBinContent(17,1088.571); h_SL1L261->SetBinContent(18,1311.429); h_SL1L261->SetBinContent(19,1371.429); h_SL1L261->SetBinContent(20,1602.857); h_SL1L261->SetBinContent(21,1901.429); h_SL1L261->SetBinContent(22,2064.286); h_SL1L261->SetBinContent(23,2221.429); h_SL1L261->SetBinContent(24,2578.572); h_SL1L261->SetBinContent(25,2955.714); h_SL1L261->SetBinContent(26,3038.572); h_SL1L261->SetBinContent(27,3331.429); h_SL1L261->SetBinContent(28,4190); h_SL1L261->SetBinContent(29,4557.143); h_SL1L261->SetBinContent(30,4948.572); h_SL1L261->SetBinContent(31,39898.57); h_SL1L261->SetBinContent(32,10301.43); h_SL1L261->SetBinContent(33,40210); h_SL1L261->SetBinContent(34,72845.72); h_SL1L261->SetBinContent(35,65397.14); h_SL1L261->SetBinContent(36,63802.86); h_SL1L261->SetBinContent(37,60295.71); h_SL1L261->SetBinContent(38,51250); h_SL1L261->SetBinContent(39,37992.86); h_SL1L261->SetBinContent(40,13107.14); h_SL1L261->SetBinContent(41,6178.572); h_SL1L261->SetBinContent(42,4308.571); h_SL1L261->SetBinContent(43,3932.857); h_SL1L261->SetBinContent(44,3618.572); h_SL1L261->SetBinContent(45,3242.857); h_SL1L261->SetBinContent(46,3067.143); h_SL1L261->SetBinContent(47,2758.572); h_SL1L261->SetBinContent(48,2611.429); h_SL1L261->SetBinContent(49,2458.572); h_SL1L261->SetBinContent(50,2324.286); h_SL1L261->SetBinContent(51,2190); h_SL1L261->SetBinContent(52,2011.429); h_SL1L261->SetBinContent(53,1938.572); h_SL1L261->SetBinContent(54,1768.571); h_SL1L261->SetBinContent(55,1771.429); h_SL1L261->SetBinContent(56,1664.286); h_SL1L261->SetBinContent(57,1612.857); h_SL1L261->SetBinContent(58,1502.857); h_SL1L261->SetBinContent(59,1558.571); h_SL1L261->SetMaximum(84796.08); h_SL1L261->SetEntries(60); h_SL1L261->SetDirectory(0); h_SL1L261->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL1L261->SetLineColor(ci); h_SL1L261->SetLineWidth(2); h_SL1L261->GetXaxis()->SetTitle("Cell"); h_SL1L261->GetXaxis()->SetLabelFont(42); h_SL1L261->GetXaxis()->SetLabelSize(0.035); h_SL1L261->GetXaxis()->SetTitleSize(0.035); h_SL1L261->GetXaxis()->SetTitleFont(42); h_SL1L261->GetYaxis()->SetTitle("Hz"); h_SL1L261->GetYaxis()->SetLabelFont(42); h_SL1L261->GetYaxis()->SetLabelSize(0.035); h_SL1L261->GetYaxis()->SetTitleSize(0.035); h_SL1L261->GetYaxis()->SetTitleOffset(1.45); h_SL1L261->GetYaxis()->SetTitleFont(42); h_SL1L261->GetZaxis()->SetLabelFont(42); h_SL1L261->GetZaxis()->SetLabelSize(0.035); h_SL1L261->GetZaxis()->SetTitleSize(0.035); h_SL1L261->GetZaxis()->SetTitleFont(42); h_SL1L261->Draw("same"); TH1D *h_SL1L362 = new TH1D("h_SL1L362","",60,0,60); h_SL1L362->SetBinContent(1,382.8571); h_SL1L362->SetBinContent(2,324.2857); h_SL1L362->SetBinContent(3,437.1429); h_SL1L362->SetBinContent(4,460); h_SL1L362->SetBinContent(5,445.7143); h_SL1L362->SetBinContent(6,502.8571); h_SL1L362->SetBinContent(7,471.4286); h_SL1L362->SetBinContent(8,544.2857); h_SL1L362->SetBinContent(9,554.2857); h_SL1L362->SetBinContent(10,652.8572); h_SL1L362->SetBinContent(11,698.5715); h_SL1L362->SetBinContent(12,822.8572); h_SL1L362->SetBinContent(13,954.2858); h_SL1L362->SetBinContent(14,985.7143); h_SL1L362->SetBinContent(15,902.8572); h_SL1L362->SetBinContent(16,977.1429); h_SL1L362->SetBinContent(17,1127.143); h_SL1L362->SetBinContent(18,1347.143); h_SL1L362->SetBinContent(19,1400); h_SL1L362->SetBinContent(20,1644.286); h_SL1L362->SetBinContent(21,1854.286); h_SL1L362->SetBinContent(22,2065.714); h_SL1L362->SetBinContent(23,2392.857); h_SL1L362->SetBinContent(24,2597.143); h_SL1L362->SetBinContent(25,2908.572); h_SL1L362->SetBinContent(26,3055.714); h_SL1L362->SetBinContent(27,3448.572); h_SL1L362->SetBinContent(28,4405.714); h_SL1L362->SetBinContent(29,4537.143); h_SL1L362->SetBinContent(30,5278.572); h_SL1L362->SetBinContent(31,7580); h_SL1L362->SetBinContent(32,14554.29); h_SL1L362->SetBinContent(33,69020); h_SL1L362->SetBinContent(34,68811.43); h_SL1L362->SetBinContent(35,64324.29); h_SL1L362->SetBinContent(36,62895.71); h_SL1L362->SetBinContent(37,57055.71); h_SL1L362->SetBinContent(38,44985.71); h_SL1L362->SetBinContent(39,26068.57); h_SL1L362->SetBinContent(40,7385.714); h_SL1L362->SetBinContent(41,4695.714); h_SL1L362->SetBinContent(42,4050); h_SL1L362->SetBinContent(43,3742.857); h_SL1L362->SetBinContent(44,3338.572); h_SL1L362->SetBinContent(45,3088.572); h_SL1L362->SetBinContent(46,2847.143); h_SL1L362->SetBinContent(47,2554.286); h_SL1L362->SetBinContent(48,2377.143); h_SL1L362->SetBinContent(49,2297.143); h_SL1L362->SetBinContent(50,2170); h_SL1L362->SetBinContent(51,2048.572); h_SL1L362->SetBinContent(52,1925.714); h_SL1L362->SetBinContent(53,1707.143); h_SL1L362->SetBinContent(54,1685.714); h_SL1L362->SetBinContent(55,1608.571); h_SL1L362->SetBinContent(56,1541.429); h_SL1L362->SetBinContent(57,1554.286); h_SL1L362->SetBinContent(58,1468.571); h_SL1L362->SetBinContent(59,1435.714); h_SL1L362->SetMaximum(84796.08); h_SL1L362->SetEntries(60); h_SL1L362->SetDirectory(0); h_SL1L362->SetStats(0); ci = TColor::GetColor("#009900"); h_SL1L362->SetLineColor(ci); h_SL1L362->SetLineWidth(2); h_SL1L362->GetXaxis()->SetTitle("Cell"); h_SL1L362->GetXaxis()->SetLabelFont(42); h_SL1L362->GetXaxis()->SetLabelSize(0.035); h_SL1L362->GetXaxis()->SetTitleSize(0.035); h_SL1L362->GetXaxis()->SetTitleFont(42); h_SL1L362->GetYaxis()->SetTitle("Hz"); h_SL1L362->GetYaxis()->SetLabelFont(42); h_SL1L362->GetYaxis()->SetLabelSize(0.035); h_SL1L362->GetYaxis()->SetTitleSize(0.035); h_SL1L362->GetYaxis()->SetTitleOffset(1.45); h_SL1L362->GetYaxis()->SetTitleFont(42); h_SL1L362->GetZaxis()->SetLabelFont(42); h_SL1L362->GetZaxis()->SetLabelSize(0.035); h_SL1L362->GetZaxis()->SetTitleSize(0.035); h_SL1L362->GetZaxis()->SetTitleFont(42); h_SL1L362->Draw("same"); TH1D *h_SL1L463 = new TH1D("h_SL1L463","",60,0,60); h_SL1L463->SetBinContent(2,588.5715); h_SL1L463->SetBinContent(3,381.4286); h_SL1L463->SetBinContent(4,477.1429); h_SL1L463->SetBinContent(5,445.7143); h_SL1L463->SetBinContent(6,437.1429); h_SL1L463->SetBinContent(7,412.8571); h_SL1L463->SetBinContent(8,464.2857); h_SL1L463->SetBinContent(9,514.2857); h_SL1L463->SetBinContent(10,592.8572); h_SL1L463->SetBinContent(11,605.7143); h_SL1L463->SetBinContent(12,712.8572); h_SL1L463->SetBinContent(13,828.5715); h_SL1L463->SetBinContent(14,928.5715); h_SL1L463->SetBinContent(15,874.2857); h_SL1L463->SetBinContent(16,952.8572); h_SL1L463->SetBinContent(17,1065.714); h_SL1L463->SetBinContent(18,1225.714); h_SL1L463->SetBinContent(19,1238.571); h_SL1L463->SetBinContent(20,1500); h_SL1L463->SetBinContent(21,1692.857); h_SL1L463->SetBinContent(22,1900); h_SL1L463->SetBinContent(23,2015.714); h_SL1L463->SetBinContent(24,2338.572); h_SL1L463->SetBinContent(25,2624.286); h_SL1L463->SetBinContent(26,2852.857); h_SL1L463->SetBinContent(27,3094.286); h_SL1L463->SetBinContent(28,3947.143); h_SL1L463->SetBinContent(29,4328.571); h_SL1L463->SetBinContent(30,4755.714); h_SL1L463->SetBinContent(31,5555.714); h_SL1L463->SetBinContent(32,10102.86); h_SL1L463->SetBinContent(33,39981.43); h_SL1L463->SetBinContent(34,73735.72); h_SL1L463->SetBinContent(35,66030); h_SL1L463->SetBinContent(36,64307.14); h_SL1L463->SetBinContent(37,60671.43); h_SL1L463->SetBinContent(38,51232.86); h_SL1L463->SetBinContent(39,38300); h_SL1L463->SetBinContent(40,12548.57); h_SL1L463->SetBinContent(41,6067.143); h_SL1L463->SetBinContent(42,4121.429); h_SL1L463->SetBinContent(43,3772.857); h_SL1L463->SetBinContent(44,3395.714); h_SL1L463->SetBinContent(45,3052.857); h_SL1L463->SetBinContent(46,2987.143); h_SL1L463->SetBinContent(47,2468.572); h_SL1L463->SetBinContent(48,2470); h_SL1L463->SetBinContent(49,2158.572); h_SL1L463->SetBinContent(50,2112.857); h_SL1L463->SetBinContent(51,2014.286); h_SL1L463->SetBinContent(52,1822.857); h_SL1L463->SetBinContent(53,1742.857); h_SL1L463->SetBinContent(54,1591.429); h_SL1L463->SetBinContent(55,20); h_SL1L463->SetBinContent(56,1591.429); h_SL1L463->SetBinContent(57,1490); h_SL1L463->SetBinContent(58,1331.429); h_SL1L463->SetBinContent(59,1391.429); h_SL1L463->SetMaximum(84796.08); h_SL1L463->SetEntries(60); h_SL1L463->SetDirectory(0); h_SL1L463->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL1L463->SetLineColor(ci); h_SL1L463->SetLineWidth(2); h_SL1L463->GetXaxis()->SetTitle("Cell"); h_SL1L463->GetXaxis()->SetLabelFont(42); h_SL1L463->GetXaxis()->SetLabelSize(0.035); h_SL1L463->GetXaxis()->SetTitleSize(0.035); h_SL1L463->GetXaxis()->SetTitleFont(42); h_SL1L463->GetYaxis()->SetTitle("Hz"); h_SL1L463->GetYaxis()->SetLabelFont(42); h_SL1L463->GetYaxis()->SetLabelSize(0.035); h_SL1L463->GetYaxis()->SetTitleSize(0.035); h_SL1L463->GetYaxis()->SetTitleOffset(1.45); h_SL1L463->GetYaxis()->SetTitleFont(42); h_SL1L463->GetZaxis()->SetLabelFont(42); h_SL1L463->GetZaxis()->SetLabelSize(0.035); h_SL1L463->GetZaxis()->SetTitleSize(0.035); h_SL1L463->GetZaxis()->SetTitleFont(42); h_SL1L463->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_SL1L1","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_SL1L2","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_SL1L3","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_SL1L4","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("SL1, run 5357"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }