void RatesPerCell_Removing_noisy_cells_run_6841_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:11:55 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11267.27,67.5,101405.4); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 6841",60,0,60); h_SL1L160->SetBinContent(1,331.6327); h_SL1L160->SetBinContent(2,433.6735); h_SL1L160->SetBinContent(3,392.8571); h_SL1L160->SetBinContent(4,367.3469); h_SL1L160->SetBinContent(5,352.0408); h_SL1L160->SetBinContent(6,392.8571); h_SL1L160->SetBinContent(7,484.6939); h_SL1L160->SetBinContent(8,515.3061); h_SL1L160->SetBinContent(9,520.4081); h_SL1L160->SetBinContent(10,632.6531); h_SL1L160->SetBinContent(11,719.3878); h_SL1L160->SetBinContent(12,683.6735); h_SL1L160->SetBinContent(13,760.2041); h_SL1L160->SetBinContent(14,775.5102); h_SL1L160->SetBinContent(15,826.5306); h_SL1L160->SetBinContent(16,780.6122); h_SL1L160->SetBinContent(17,908.1633); h_SL1L160->SetBinContent(18,1198.98); h_SL1L160->SetBinContent(19,1214.286); h_SL1L160->SetBinContent(20,1423.469); h_SL1L160->SetBinContent(21,1596.939); h_SL1L160->SetBinContent(22,1653.061); h_SL1L160->SetBinContent(23,1801.02); h_SL1L160->SetBinContent(24,1943.878); h_SL1L160->SetBinContent(25,1877.551); h_SL1L160->SetBinContent(26,2030.612); h_SL1L160->SetBinContent(27,2076.531); h_SL1L160->SetBinContent(28,2780.612); h_SL1L160->SetBinContent(29,3301.02); h_SL1L160->SetBinContent(30,3586.735); h_SL1L160->SetBinContent(31,4698.979); h_SL1L160->SetBinContent(32,8362.245); h_SL1L160->SetBinContent(33,34688.77); h_SL1L160->SetBinContent(34,51438.77); h_SL1L160->SetBinContent(35,56632.65); h_SL1L160->SetBinContent(36,59000); h_SL1L160->SetBinContent(37,63612.25); h_SL1L160->SetBinContent(38,57015.3); h_SL1L160->SetBinContent(39,36367.35); h_SL1L160->SetBinContent(40,8617.347); h_SL1L160->SetBinContent(41,4892.857); h_SL1L160->SetBinContent(42,3954.082); h_SL1L160->SetBinContent(43,3326.531); h_SL1L160->SetBinContent(44,3260.204); h_SL1L160->SetBinContent(45,2923.469); h_SL1L160->SetBinContent(46,2403.061); h_SL1L160->SetBinContent(47,2607.143); h_SL1L160->SetBinContent(48,2178.571); h_SL1L160->SetBinContent(49,2183.673); h_SL1L160->SetBinContent(50,1954.082); h_SL1L160->SetBinContent(51,1775.51); h_SL1L160->SetBinContent(52,1770.408); h_SL1L160->SetBinContent(53,1617.347); h_SL1L160->SetBinContent(54,1454.082); h_SL1L160->SetBinContent(55,1571.429); h_SL1L160->SetBinContent(56,1448.98); h_SL1L160->SetBinContent(57,1443.878); h_SL1L160->SetBinContent(58,1382.653); h_SL1L160->SetBinContent(59,1387.755); h_SL1L160->SetMaximum(90138.15); 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,275.5102); h_SL1L261->SetBinContent(2,275.5102); h_SL1L261->SetBinContent(3,306.1224); h_SL1L261->SetBinContent(4,367.3469); h_SL1L261->SetBinContent(5,285.7143); h_SL1L261->SetBinContent(6,362.2449); h_SL1L261->SetBinContent(7,382.653); h_SL1L261->SetBinContent(8,403.0612); h_SL1L261->SetBinContent(9,469.3878); h_SL1L261->SetBinContent(10,494.8979); h_SL1L261->SetBinContent(11,581.6326); h_SL1L261->SetBinContent(12,653.0612); h_SL1L261->SetBinContent(13,719.3878); h_SL1L261->SetBinContent(14,734.6938); h_SL1L261->SetBinContent(15,724.4898); h_SL1L261->SetBinContent(16,816.3265); h_SL1L261->SetBinContent(17,826.5306); h_SL1L261->SetBinContent(18,908.1633); h_SL1L261->SetBinContent(19,1112.245); h_SL1L261->SetBinContent(20,1244.898); h_SL1L261->SetBinContent(21,1403.061); h_SL1L261->SetBinContent(22,1484.694); h_SL1L261->SetBinContent(23,1500); h_SL1L261->SetBinContent(24,1811.224); h_SL1L261->SetBinContent(25,1877.551); h_SL1L261->SetBinContent(26,1836.735); h_SL1L261->SetBinContent(27,2045.918); h_SL1L261->SetBinContent(28,2219.388); h_SL1L261->SetBinContent(29,3015.306); h_SL1L261->SetBinContent(30,3698.979); h_SL1L261->SetBinContent(31,4127.551); h_SL1L261->SetBinContent(32,6892.857); h_SL1L261->SetBinContent(33,18897.96); h_SL1L261->SetBinContent(34,49479.59); h_SL1L261->SetBinContent(35,58724.49); h_SL1L261->SetBinContent(36,62219.39); h_SL1L261->SetBinContent(37,67005.1); h_SL1L261->SetBinContent(38,64734.69); h_SL1L261->SetBinContent(39,52750); h_SL1L261->SetBinContent(40,18862.24); h_SL1L261->SetBinContent(41,7198.979); h_SL1L261->SetBinContent(42,4397.959); h_SL1L261->SetBinContent(43,3683.673); h_SL1L261->SetBinContent(44,3346.939); h_SL1L261->SetBinContent(45,3127.551); h_SL1L261->SetBinContent(46,2750); h_SL1L261->SetBinContent(47,2551.02); h_SL1L261->SetBinContent(48,2443.877); h_SL1L261->SetBinContent(49,2295.918); h_SL1L261->SetBinContent(50,2096.939); h_SL1L261->SetBinContent(51,2020.408); h_SL1L261->SetBinContent(52,1739.796); h_SL1L261->SetBinContent(53,1765.306); h_SL1L261->SetBinContent(54,1556.122); h_SL1L261->SetBinContent(55,1693.878); h_SL1L261->SetBinContent(56,1561.224); h_SL1L261->SetBinContent(57,1464.286); h_SL1L261->SetBinContent(58,1474.49); h_SL1L261->SetBinContent(59,1260.204); h_SL1L261->SetMaximum(78381.89); 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,234.6939); h_SL1L362->SetBinContent(2,250); h_SL1L362->SetBinContent(3,250); h_SL1L362->SetBinContent(4,280.6122); h_SL1L362->SetBinContent(5,306.1224); h_SL1L362->SetBinContent(6,316.3265); h_SL1L362->SetBinContent(7,387.7551); h_SL1L362->SetBinContent(8,448.9796); h_SL1L362->SetBinContent(9,408.1633); h_SL1L362->SetBinContent(10,459.1837); h_SL1L362->SetBinContent(11,642.8571); h_SL1L362->SetBinContent(12,556.1224); h_SL1L362->SetBinContent(13,668.3674); h_SL1L362->SetBinContent(14,663.2653); h_SL1L362->SetBinContent(15,709.1837); h_SL1L362->SetBinContent(16,755.1021); h_SL1L362->SetBinContent(17,841.8367); h_SL1L362->SetBinContent(18,1020.408); h_SL1L362->SetBinContent(19,1081.633); h_SL1L362->SetBinContent(20,1234.694); h_SL1L362->SetBinContent(21,1260.204); h_SL1L362->SetBinContent(22,1448.98); h_SL1L362->SetBinContent(23,1668.367); h_SL1L362->SetBinContent(24,1790.816); h_SL1L362->SetBinContent(25,1790.816); h_SL1L362->SetBinContent(26,1867.347); h_SL1L362->SetBinContent(27,1994.898); h_SL1L362->SetBinContent(28,2500); h_SL1L362->SetBinContent(29,3326.531); h_SL1L362->SetBinContent(30,3561.224); h_SL1L362->SetBinContent(31,4826.531); h_SL1L362->SetBinContent(32,8846.938); h_SL1L362->SetBinContent(33,37091.84); h_SL1L362->SetBinContent(34,55525.51); h_SL1L362->SetBinContent(35,61285.71); h_SL1L362->SetBinContent(36,63923.47); h_SL1L362->SetBinContent(37,68158.16); h_SL1L362->SetBinContent(38,60423.47); h_SL1L362->SetBinContent(39,38336.73); h_SL1L362->SetBinContent(40,9056.122); h_SL1L362->SetBinContent(41,5147.959); h_SL1L362->SetBinContent(42,4112.245); h_SL1L362->SetBinContent(43,3260.204); h_SL1L362->SetBinContent(44,3132.653); h_SL1L362->SetBinContent(45,2816.326); h_SL1L362->SetBinContent(46,2494.898); h_SL1L362->SetBinContent(47,2581.633); h_SL1L362->SetBinContent(48,2260.204); h_SL1L362->SetBinContent(49,2076.531); h_SL1L362->SetBinContent(50,1913.265); h_SL1L362->SetBinContent(51,1632.653); h_SL1L362->SetBinContent(52,1744.898); h_SL1L362->SetBinContent(53,1505.102); h_SL1L362->SetBinContent(54,1602.041); h_SL1L362->SetBinContent(55,1596.939); h_SL1L362->SetBinContent(56,1352.041); h_SL1L362->SetBinContent(57,1377.551); h_SL1L362->SetBinContent(58,1270.408); h_SL1L362->SetBinContent(59,1285.714); h_SL1L362->SetMaximum(78381.89); 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,250); h_SL1L463->SetBinContent(3,234.6939); h_SL1L463->SetBinContent(4,295.9184); h_SL1L463->SetBinContent(5,285.7143); h_SL1L463->SetBinContent(6,306.1224); h_SL1L463->SetBinContent(7,362.2449); h_SL1L463->SetBinContent(8,397.9592); h_SL1L463->SetBinContent(9,413.2653); h_SL1L463->SetBinContent(10,433.6735); h_SL1L463->SetBinContent(11,489.7959); h_SL1L463->SetBinContent(12,474.4898); h_SL1L463->SetBinContent(13,622.449); h_SL1L463->SetBinContent(14,561.2245); h_SL1L463->SetBinContent(15,658.1633); h_SL1L463->SetBinContent(16,612.2449); h_SL1L463->SetBinContent(17,663.2653); h_SL1L463->SetBinContent(18,811.2245); h_SL1L463->SetBinContent(19,1081.633); h_SL1L463->SetBinContent(20,1081.633); h_SL1L463->SetBinContent(21,1158.163); h_SL1L463->SetBinContent(22,1275.51); h_SL1L463->SetBinContent(23,1250); h_SL1L463->SetBinContent(24,1520.408); h_SL1L463->SetBinContent(25,1627.551); h_SL1L463->SetBinContent(26,1683.673); h_SL1L463->SetBinContent(27,1724.49); h_SL1L463->SetBinContent(28,2076.531); h_SL1L463->SetBinContent(29,2632.653); h_SL1L463->SetBinContent(30,3147.959); h_SL1L463->SetBinContent(31,3622.449); h_SL1L463->SetBinContent(32,6321.429); h_SL1L463->SetBinContent(33,17346.94); h_SL1L463->SetBinContent(34,47903.06); h_SL1L463->SetBinContent(35,56948.98); h_SL1L463->SetBinContent(36,59913.27); h_SL1L463->SetBinContent(37,63336.73); h_SL1L463->SetBinContent(38,62423.47); h_SL1L463->SetBinContent(39,51474.49); h_SL1L463->SetBinContent(40,17872.45); h_SL1L463->SetBinContent(41,6596.938); h_SL1L463->SetBinContent(42,3989.796); h_SL1L463->SetBinContent(43,3270.408); h_SL1L463->SetBinContent(44,2897.959); h_SL1L463->SetBinContent(45,2867.347); h_SL1L463->SetBinContent(46,2464.286); h_SL1L463->SetBinContent(47,2290.816); h_SL1L463->SetBinContent(48,2239.796); h_SL1L463->SetBinContent(49,1765.306); h_SL1L463->SetBinContent(50,1698.98); h_SL1L463->SetBinContent(51,1647.959); h_SL1L463->SetBinContent(52,1494.898); h_SL1L463->SetBinContent(53,1464.286); h_SL1L463->SetBinContent(54,1260.204); h_SL1L463->SetBinContent(56,1392.857); h_SL1L463->SetBinContent(57,1250); h_SL1L463->SetBinContent(58,1255.102); h_SL1L463->SetBinContent(59,1127.551); h_SL1L463->SetMaximum(78381.89); 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.3744221,0.9362587,0.6255779,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("SL1, run 6841"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }