void RatesPerCell_Removing_noisy_cells_run_6495_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:42:50 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-12692.41,67.5,114231.7); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 6495",60,0,60); h_SL1L160->SetBinContent(1,363.5714); h_SL1L160->SetBinContent(2,382.1429); h_SL1L160->SetBinContent(3,420.7143); h_SL1L160->SetBinContent(4,382.1429); h_SL1L160->SetBinContent(5,428.5714); h_SL1L160->SetBinContent(6,421.4286); h_SL1L160->SetBinContent(7,437.8571); h_SL1L160->SetBinContent(8,512.1429); h_SL1L160->SetBinContent(9,515); h_SL1L160->SetBinContent(10,570.7143); h_SL1L160->SetBinContent(11,601.4286); h_SL1L160->SetBinContent(12,707.1429); h_SL1L160->SetBinContent(13,795); h_SL1L160->SetBinContent(14,806.4286); h_SL1L160->SetBinContent(15,765); h_SL1L160->SetBinContent(16,742.1429); h_SL1L160->SetBinContent(17,835); h_SL1L160->SetBinContent(18,1125.714); h_SL1L160->SetBinContent(19,1276.429); h_SL1L160->SetBinContent(20,1333.571); h_SL1L160->SetBinContent(21,1520.714); h_SL1L160->SetBinContent(22,1664.286); h_SL1L160->SetBinContent(23,1737.143); h_SL1L160->SetBinContent(24,1921.429); h_SL1L160->SetBinContent(25,1900.714); h_SL1L160->SetBinContent(26,1914.286); h_SL1L160->SetBinContent(27,2200); h_SL1L160->SetBinContent(28,2916.429); h_SL1L160->SetBinContent(29,3166.429); h_SL1L160->SetBinContent(30,3660.714); h_SL1L160->SetBinContent(31,4550.714); h_SL1L160->SetBinContent(32,7385.714); h_SL1L160->SetBinContent(33,29082.86); h_SL1L160->SetBinContent(34,48191.43); h_SL1L160->SetBinContent(35,60143.57); h_SL1L160->SetBinContent(36,68115); h_SL1L160->SetBinContent(37,70052.86); h_SL1L160->SetBinContent(38,56536.43); h_SL1L160->SetBinContent(39,31210.71); h_SL1L160->SetBinContent(40,7637.857); h_SL1L160->SetBinContent(41,4966.429); h_SL1L160->SetBinContent(42,3922.857); h_SL1L160->SetBinContent(43,3481.429); h_SL1L160->SetBinContent(44,3249.286); h_SL1L160->SetBinContent(45,2970.714); h_SL1L160->SetBinContent(46,2674.286); h_SL1L160->SetBinContent(47,2546.429); h_SL1L160->SetBinContent(48,2314.286); h_SL1L160->SetBinContent(49,2178.572); h_SL1L160->SetBinContent(50,2139.286); h_SL1L160->SetBinContent(51,1852.857); h_SL1L160->SetBinContent(52,1735); h_SL1L160->SetBinContent(53,1698.571); h_SL1L160->SetBinContent(54,1515); h_SL1L160->SetBinContent(55,1447.143); h_SL1L160->SetBinContent(56,1329.286); h_SL1L160->SetBinContent(57,1426.429); h_SL1L160->SetBinContent(58,1362.143); h_SL1L160->SetBinContent(59,1312.143); h_SL1L160->SetMaximum(101539.2); 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,317.8571); h_SL1L261->SetBinContent(2,347.8571); h_SL1L261->SetBinContent(3,367.8571); h_SL1L261->SetBinContent(4,335.7143); h_SL1L261->SetBinContent(5,371.4286); h_SL1L261->SetBinContent(6,364.2857); h_SL1L261->SetBinContent(7,400.7143); h_SL1L261->SetBinContent(8,425); h_SL1L261->SetBinContent(9,444.2857); h_SL1L261->SetBinContent(10,482.8571); h_SL1L261->SetBinContent(11,545.7143); h_SL1L261->SetBinContent(12,615); h_SL1L261->SetBinContent(13,666.4286); h_SL1L261->SetBinContent(14,737.1429); h_SL1L261->SetBinContent(15,768.5715); h_SL1L261->SetBinContent(16,729.2857); h_SL1L261->SetBinContent(17,770); h_SL1L261->SetBinContent(18,1021.429); h_SL1L261->SetBinContent(19,1104.286); h_SL1L261->SetBinContent(20,1207.143); h_SL1L261->SetBinContent(21,1369.286); h_SL1L261->SetBinContent(22,1502.857); h_SL1L261->SetBinContent(23,1636.429); h_SL1L261->SetBinContent(24,1774.286); h_SL1L261->SetBinContent(25,2002.143); h_SL1L261->SetBinContent(26,1817.857); h_SL1L261->SetBinContent(27,2020); h_SL1L261->SetBinContent(28,2561.429); h_SL1L261->SetBinContent(29,3097.857); h_SL1L261->SetBinContent(30,3423.572); h_SL1L261->SetBinContent(31,3955); h_SL1L261->SetBinContent(32,6223.572); h_SL1L261->SetBinContent(33,15533.57); h_SL1L261->SetBinContent(34,43378.57); h_SL1L261->SetBinContent(35,57913.57); h_SL1L261->SetBinContent(36,70661.43); h_SL1L261->SetBinContent(37,76778.57); h_SL1L261->SetBinContent(38,69197.14); h_SL1L261->SetBinContent(39,49492.14); h_SL1L261->SetBinContent(40,15610.71); h_SL1L261->SetBinContent(41,6682.857); h_SL1L261->SetBinContent(42,4265.714); h_SL1L261->SetBinContent(43,3794.286); h_SL1L261->SetBinContent(44,3377.857); h_SL1L261->SetBinContent(45,3090.714); h_SL1L261->SetBinContent(46,2952.143); h_SL1L261->SetBinContent(47,2637.143); h_SL1L261->SetBinContent(48,2509.286); h_SL1L261->SetBinContent(49,2277.857); h_SL1L261->SetBinContent(50,2247.857); h_SL1L261->SetBinContent(51,2008.572); h_SL1L261->SetBinContent(52,1817.857); h_SL1L261->SetBinContent(53,1795.714); h_SL1L261->SetBinContent(54,1693.571); h_SL1L261->SetBinContent(55,1555); h_SL1L261->SetBinContent(56,1460.714); h_SL1L261->SetBinContent(57,1413.571); h_SL1L261->SetBinContent(58,1459.286); h_SL1L261->SetBinContent(59,1301.429); h_SL1L261->SetMaximum(88295.36); 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,280.7143); h_SL1L362->SetBinContent(2,308.5714); h_SL1L362->SetBinContent(3,312.1429); h_SL1L362->SetBinContent(4,317.8571); h_SL1L362->SetBinContent(5,323.5714); h_SL1L362->SetBinContent(6,353.5714); h_SL1L362->SetBinContent(7,379.2857); h_SL1L362->SetBinContent(8,408.5714); h_SL1L362->SetBinContent(9,403.5714); h_SL1L362->SetBinContent(10,462.1429); h_SL1L362->SetBinContent(11,495.7143); h_SL1L362->SetBinContent(12,604.2857); h_SL1L362->SetBinContent(13,644.2857); h_SL1L362->SetBinContent(14,690); h_SL1L362->SetBinContent(15,671.4286); h_SL1L362->SetBinContent(16,675); h_SL1L362->SetBinContent(17,805); h_SL1L362->SetBinContent(18,990.7143); h_SL1L362->SetBinContent(19,1082.143); h_SL1L362->SetBinContent(20,1193.571); h_SL1L362->SetBinContent(21,1360); h_SL1L362->SetBinContent(22,1514.286); h_SL1L362->SetBinContent(23,1625.714); h_SL1L362->SetBinContent(24,1783.571); h_SL1L362->SetBinContent(25,1790); h_SL1L362->SetBinContent(26,1778.571); h_SL1L362->SetBinContent(27,2179.286); h_SL1L362->SetBinContent(28,2762.143); h_SL1L362->SetBinContent(29,3037.857); h_SL1L362->SetBinContent(30,3564.286); h_SL1L362->SetBinContent(31,4610.714); h_SL1L362->SetBinContent(32,7647.857); h_SL1L362->SetBinContent(33,31078.57); h_SL1L362->SetBinContent(34,51227.14); h_SL1L362->SetBinContent(35,64882.86); h_SL1L362->SetBinContent(36,75224.29); h_SL1L362->SetBinContent(37,75306.43); h_SL1L362->SetBinContent(38,59875); h_SL1L362->SetBinContent(39,32675); h_SL1L362->SetBinContent(40,7895.714); h_SL1L362->SetBinContent(41,5065); h_SL1L362->SetBinContent(42,3872.143); h_SL1L362->SetBinContent(43,3454.286); h_SL1L362->SetBinContent(44,3112.143); h_SL1L362->SetBinContent(45,2893.572); h_SL1L362->SetBinContent(46,2665); h_SL1L362->SetBinContent(47,2495); h_SL1L362->SetBinContent(48,2260.714); h_SL1L362->SetBinContent(49,2087.143); h_SL1L362->SetBinContent(50,2052.143); h_SL1L362->SetBinContent(51,1791.429); h_SL1L362->SetBinContent(52,1738.571); h_SL1L362->SetBinContent(53,1650); h_SL1L362->SetBinContent(54,1522.857); h_SL1L362->SetBinContent(55,1454.286); h_SL1L362->SetBinContent(56,1336.429); h_SL1L362->SetBinContent(57,1415); h_SL1L362->SetBinContent(58,1322.857); h_SL1L362->SetBinContent(59,1207.857); h_SL1L362->SetMaximum(88295.36); 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,238.5714); h_SL1L463->SetBinContent(3,263.5714); h_SL1L463->SetBinContent(4,235.7143); h_SL1L463->SetBinContent(5,275); h_SL1L463->SetBinContent(6,297.1429); h_SL1L463->SetBinContent(7,317.1429); h_SL1L463->SetBinContent(8,322.1429); h_SL1L463->SetBinContent(9,345.7143); h_SL1L463->SetBinContent(10,360.7143); h_SL1L463->SetBinContent(11,395); h_SL1L463->SetBinContent(12,482.1429); h_SL1L463->SetBinContent(13,500); h_SL1L463->SetBinContent(14,564.2857); h_SL1L463->SetBinContent(15,579.2857); h_SL1L463->SetBinContent(16,585); h_SL1L463->SetBinContent(17,597.8572); h_SL1L463->SetBinContent(18,742.8572); h_SL1L463->SetBinContent(19,840); h_SL1L463->SetBinContent(20,872.8572); h_SL1L463->SetBinContent(21,990); h_SL1L463->SetBinContent(22,1076.429); h_SL1L463->SetBinContent(23,1248.571); h_SL1L463->SetBinContent(24,1295); h_SL1L463->SetBinContent(25,1365); h_SL1L463->SetBinContent(26,1349.286); h_SL1L463->SetBinContent(27,1516.429); h_SL1L463->SetBinContent(28,1955); h_SL1L463->SetBinContent(29,2235); h_SL1L463->SetBinContent(30,2600); h_SL1L463->SetBinContent(31,3122.857); h_SL1L463->SetBinContent(32,4726.429); h_SL1L463->SetBinContent(33,12375.71); h_SL1L463->SetBinContent(34,39550); h_SL1L463->SetBinContent(35,54062.14); h_SL1L463->SetBinContent(36,66038.57); h_SL1L463->SetBinContent(37,70073.57); h_SL1L463->SetBinContent(38,63904.29); h_SL1L463->SetBinContent(39,45305); h_SL1L463->SetBinContent(40,13763.57); h_SL1L463->SetBinContent(41,5916.429); h_SL1L463->SetBinContent(42,3754.286); h_SL1L463->SetBinContent(43,3281.429); h_SL1L463->SetBinContent(44,2936.429); h_SL1L463->SetBinContent(45,2560); h_SL1L463->SetBinContent(46,2574.286); h_SL1L463->SetBinContent(47,2259.286); h_SL1L463->SetBinContent(48,2057.857); h_SL1L463->SetBinContent(49,1756.429); h_SL1L463->SetBinContent(50,1785.714); h_SL1L463->SetBinContent(51,1564.286); h_SL1L463->SetBinContent(52,1430); h_SL1L463->SetBinContent(53,1372.143); h_SL1L463->SetBinContent(54,1233.571); h_SL1L463->SetBinContent(55,0.7142857); h_SL1L463->SetBinContent(56,1030); h_SL1L463->SetBinContent(57,955); h_SL1L463->SetBinContent(58,1055.714); h_SL1L463->SetBinContent(59,984.2858); h_SL1L463->SetMaximum(88295.36); 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 6495"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }