void RatesPerCell_Removing_noisy_cells_run_5065_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 14:45:48 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-41463.11,67.5,373168); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5065",60,0,60); h_SL1L160->SetBinContent(1,3536.894); h_SL1L160->SetBinContent(2,3995.96); h_SL1L160->SetBinContent(3,4955.825); h_SL1L160->SetBinContent(4,5936.557); h_SL1L160->SetBinContent(5,5498.357); h_SL1L160->SetBinContent(6,6666.889); h_SL1L160->SetBinContent(7,6666.889); h_SL1L160->SetBinContent(8,6812.956); h_SL1L160->SetBinContent(9,6979.889); h_SL1L160->SetBinContent(10,7407.654); h_SL1L160->SetBinContent(11,6990.322); h_SL1L160->SetBinContent(12,6927.722); h_SL1L160->SetBinContent(13,7052.922); h_SL1L160->SetBinContent(14,7418.088); h_SL1L160->SetBinContent(15,6896.422); h_SL1L160->SetBinContent(16,6792.089); h_SL1L160->SetBinContent(17,7240.722); h_SL1L160->SetBinContent(18,7470.254); h_SL1L160->SetBinContent(19,7543.288); h_SL1L160->SetBinContent(20,7282.455); h_SL1L160->SetBinContent(21,7741.521); h_SL1L160->SetBinContent(22,7365.921); h_SL1L160->SetBinContent(23,7105.088); h_SL1L160->SetBinContent(24,7459.821); h_SL1L160->SetBinContent(25,7522.421); h_SL1L160->SetBinContent(26,8064.954); h_SL1L160->SetBinContent(27,7261.588); h_SL1L160->SetBinContent(28,7125.955); h_SL1L160->SetBinContent(29,8221.453); h_SL1L160->SetBinContent(30,8555.319); h_SL1L160->SetBinContent(31,8106.687); h_SL1L160->SetBinContent(32,8117.12); h_SL1L160->SetBinContent(33,8075.387); h_SL1L160->SetBinContent(34,8784.853); h_SL1L160->SetBinContent(35,7772.821); h_SL1L160->SetBinContent(36,7950.187); h_SL1L160->SetBinContent(37,8200.587); h_SL1L160->SetBinContent(38,10412.45); h_SL1L160->SetBinContent(39,7459.821); h_SL1L160->SetBinContent(40,7345.055); h_SL1L160->SetBinContent(41,7814.554); h_SL1L160->SetBinContent(42,7908.454); h_SL1L160->SetBinContent(43,7105.088); h_SL1L160->SetBinContent(44,6917.289); h_SL1L160->SetBinContent(45,7428.521); h_SL1L160->SetBinContent(46,7303.321); h_SL1L160->SetBinContent(47,6343.456); h_SL1L160->SetBinContent(48,5456.625); h_SL1L160->SetBinContent(49,5519.224); h_SL1L160->SetBinContent(50,5446.191); h_SL1L160->SetBinContent(51,5091.458); h_SL1L160->SetBinContent(52,5289.691); h_SL1L160->SetBinContent(53,5790.491); h_SL1L160->SetBinContent(54,167715.6); h_SL1L160->SetBinContent(55,4475.893); h_SL1L160->SetBinContent(56,4194.193); h_SL1L160->SetBinContent(57,3536.894); h_SL1L160->SetBinContent(58,3140.428); h_SL1L160->SetBinContent(59,3015.228); h_SL1L160->SetMaximum(331704.8); 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,3620.361); h_SL1L261->SetBinContent(2,3933.36); h_SL1L261->SetBinContent(3,4402.859); h_SL1L261->SetBinContent(4,6124.356); h_SL1L261->SetBinContent(5,5894.824); h_SL1L261->SetBinContent(6,6353.89); h_SL1L261->SetBinContent(7,6646.022); h_SL1L261->SetBinContent(8,6959.022); h_SL1L261->SetBinContent(9,7428.521); h_SL1L261->SetBinContent(10,7345.055); h_SL1L261->SetBinContent(11,7240.722); h_SL1L261->SetBinContent(12,6959.022); h_SL1L261->SetBinContent(13,7459.821); h_SL1L261->SetBinContent(14,7188.555); h_SL1L261->SetBinContent(15,6687.756); h_SL1L261->SetBinContent(16,6698.189); h_SL1L261->SetBinContent(17,7511.988); h_SL1L261->SetBinContent(18,7835.42); h_SL1L261->SetBinContent(19,7178.122); h_SL1L261->SetBinContent(20,7731.087); h_SL1L261->SetBinContent(21,7637.188); h_SL1L261->SetBinContent(22,7950.187); h_SL1L261->SetBinContent(23,7835.42); h_SL1L261->SetBinContent(24,7105.088); h_SL1L261->SetBinContent(25,8002.354); h_SL1L261->SetBinContent(26,8325.786); h_SL1L261->SetBinContent(27,7480.688); h_SL1L261->SetBinContent(28,8962.219); h_SL1L261->SetBinContent(29,7804.121); h_SL1L261->SetBinContent(30,8315.354); h_SL1L261->SetBinContent(31,8471.853); h_SL1L261->SetBinContent(32,8847.452); h_SL1L261->SetBinContent(33,8315.354); h_SL1L261->SetBinContent(34,8816.152); h_SL1L261->SetBinContent(35,7918.887); h_SL1L261->SetBinContent(36,7793.687); h_SL1L261->SetBinContent(37,7939.753); h_SL1L261->SetBinContent(38,8492.72); h_SL1L261->SetBinContent(39,7950.187); h_SL1L261->SetBinContent(40,7292.888); h_SL1L261->SetBinContent(41,12613.88); h_SL1L261->SetBinContent(42,8085.82); h_SL1L261->SetBinContent(43,7292.888); h_SL1L261->SetBinContent(44,8983.085); h_SL1L261->SetBinContent(45,8398.819); h_SL1L261->SetBinContent(46,7345.055); h_SL1L261->SetBinContent(47,6781.656); h_SL1L261->SetBinContent(48,9776.018); h_SL1L261->SetBinContent(50,5863.524); h_SL1L261->SetBinContent(51,5258.392); h_SL1L261->SetBinContent(52,62599.9); h_SL1L261->SetBinContent(53,88839.69); h_SL1L261->SetBinContent(54,5905.257); h_SL1L261->SetBinContent(55,5060.158); h_SL1L261->SetBinContent(56,250816.9); h_SL1L261->SetBinContent(57,4632.393); h_SL1L261->SetBinContent(58,3599.494); h_SL1L261->SetBinContent(59,3109.128); h_SL1L261->SetMaximum(288439.5); 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,3818.594); h_SL1L362->SetBinContent(2,4548.926); h_SL1L362->SetBinContent(3,5247.958); h_SL1L362->SetBinContent(4,6249.557); h_SL1L362->SetBinContent(5,6270.423); h_SL1L362->SetBinContent(6,6750.355); h_SL1L362->SetBinContent(7,6812.956); h_SL1L362->SetBinContent(8,7626.754); h_SL1L362->SetBinContent(9,7272.021); h_SL1L362->SetBinContent(10,7167.688); h_SL1L362->SetBinContent(11,7188.555); h_SL1L362->SetBinContent(12,7449.388); h_SL1L362->SetBinContent(13,7105.088); h_SL1L362->SetBinContent(14,7345.055); h_SL1L362->SetBinContent(15,6479.089); h_SL1L362->SetBinContent(16,7334.621); h_SL1L362->SetBinContent(17,7553.721); h_SL1L362->SetBinContent(18,7553.721); h_SL1L362->SetBinContent(19,7522.421); h_SL1L362->SetBinContent(20,7459.821); h_SL1L362->SetBinContent(21,8388.387); h_SL1L362->SetBinContent(22,7407.654); h_SL1L362->SetBinContent(23,7324.188); h_SL1L362->SetBinContent(24,7877.154); h_SL1L362->SetBinContent(25,7887.587); h_SL1L362->SetBinContent(26,8054.52); h_SL1L362->SetBinContent(27,7574.587); h_SL1L362->SetBinContent(28,7491.121); h_SL1L362->SetBinContent(29,8461.42); h_SL1L362->SetBinContent(30,8388.387); h_SL1L362->SetBinContent(31,8252.753); h_SL1L362->SetBinContent(32,8628.353); h_SL1L362->SetBinContent(33,8732.686); h_SL1L362->SetBinContent(34,8284.053); h_SL1L362->SetBinContent(35,7762.387); h_SL1L362->SetBinContent(36,7960.62); h_SL1L362->SetBinContent(37,8075.387); h_SL1L362->SetBinContent(38,8169.287); h_SL1L362->SetBinContent(39,7511.988); h_SL1L362->SetBinContent(40,7668.487); h_SL1L362->SetBinContent(41,8471.853); h_SL1L362->SetBinContent(42,7616.321); h_SL1L362->SetBinContent(43,7689.354); h_SL1L362->SetBinContent(44,7981.487); h_SL1L362->SetBinContent(45,10245.52); h_SL1L362->SetBinContent(46,7376.354); h_SL1L362->SetBinContent(47,6040.89); h_SL1L362->SetBinContent(48,8137.987); h_SL1L362->SetBinContent(49,42067.13); h_SL1L362->SetBinContent(50,5394.024); h_SL1L362->SetBinContent(51,5101.892); h_SL1L362->SetBinContent(52,8211.02); h_SL1L362->SetBinContent(53,204378.2); h_SL1L362->SetBinContent(54,5665.291); h_SL1L362->SetBinContent(55,4945.392); h_SL1L362->SetBinContent(56,238641.2); h_SL1L362->SetBinContent(57,4152.46); h_SL1L362->SetBinContent(58,3599.494); h_SL1L362->SetBinContent(59,2723.095); h_SL1L362->SetMaximum(288439.5); 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,3818.594); h_SL1L463->SetBinContent(3,4726.292); h_SL1L463->SetBinContent(4,6103.49); h_SL1L463->SetBinContent(5,6176.523); h_SL1L463->SetBinContent(6,6677.322); h_SL1L463->SetBinContent(7,6552.123); h_SL1L463->SetBinContent(8,7198.988); h_SL1L463->SetBinContent(9,7626.754); h_SL1L463->SetBinContent(10,7324.188); h_SL1L463->SetBinContent(11,7438.955); h_SL1L463->SetBinContent(12,7637.188); h_SL1L463->SetBinContent(13,7731.087); h_SL1L463->SetBinContent(14,7553.721); h_SL1L463->SetBinContent(15,7418.088); h_SL1L463->SetBinContent(16,7115.521); h_SL1L463->SetBinContent(17,7626.754); h_SL1L463->SetBinContent(18,7543.288); h_SL1L463->SetBinContent(19,7240.722); h_SL1L463->SetBinContent(20,7866.72); h_SL1L463->SetBinContent(21,7887.587); h_SL1L463->SetBinContent(22,7585.021); h_SL1L463->SetBinContent(23,7532.854); h_SL1L463->SetBinContent(24,7397.221); h_SL1L463->SetBinContent(25,7887.587); h_SL1L463->SetBinContent(26,8263.187); h_SL1L463->SetBinContent(27,7313.755); h_SL1L463->SetBinContent(28,7731.087); h_SL1L463->SetBinContent(29,8033.653); h_SL1L463->SetBinContent(30,8492.72); h_SL1L463->SetBinContent(31,8607.486); h_SL1L463->SetBinContent(32,8117.12); h_SL1L463->SetBinContent(33,8837.019); h_SL1L463->SetBinContent(34,9097.852); h_SL1L463->SetBinContent(35,14084.98); h_SL1L463->SetBinContent(36,7877.154); h_SL1L463->SetBinContent(37,8221.453); h_SL1L463->SetBinContent(38,8544.886); h_SL1L463->SetBinContent(39,9504.751); h_SL1L463->SetBinContent(40,7637.188); h_SL1L463->SetBinContent(41,8106.687); h_SL1L463->SetBinContent(42,8367.52); h_SL1L463->SetBinContent(43,8450.986); h_SL1L463->SetBinContent(44,8179.72); h_SL1L463->SetBinContent(45,7856.287); h_SL1L463->SetBinContent(46,7345.055); h_SL1L463->SetBinContent(47,6666.889); h_SL1L463->SetBinContent(48,6082.624); h_SL1L463->SetBinContent(49,5853.09); h_SL1L463->SetBinContent(50,5435.758); h_SL1L463->SetBinContent(51,5164.492); h_SL1L463->SetBinContent(52,5665.291); h_SL1L463->SetBinContent(53,6166.09); h_SL1L463->SetBinContent(54,6061.757); h_SL1L463->SetBinContent(56,5310.558); h_SL1L463->SetBinContent(57,4455.026); h_SL1L463->SetBinContent(58,4089.86); h_SL1L463->SetBinContent(59,3286.495); h_SL1L463->SetMaximum(288439.5); 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 5065"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }