void RatesPerCell_Removing_noisy_cells_run_6689_SL2() { //=========Macro generated from canvas: c/c //========= (Fri Jan 18 11:01:42 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-21432.12,67.5,192889.1); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6689",60,0,60); h_SL2L164->SetBinContent(1,17792); h_SL2L164->SetBinContent(2,21232.33); h_SL2L164->SetBinContent(3,26050.15); h_SL2L164->SetBinContent(4,26755.86); h_SL2L164->SetBinContent(5,25059.44); h_SL2L164->SetBinContent(6,23715.88); h_SL2L164->SetBinContent(7,21211.97); h_SL2L164->SetBinContent(8,21239.12); h_SL2L164->SetBinContent(9,24123.02); h_SL2L164->SetBinContent(10,24204.45); h_SL2L164->SetBinContent(11,24238.38); h_SL2L164->SetBinContent(12,23050.89); h_SL2L164->SetBinContent(13,24699.8); h_SL2L164->SetBinContent(14,24469.09); h_SL2L164->SetBinContent(15,23573.38); h_SL2L164->SetBinContent(16,22426.61); h_SL2L164->SetBinContent(17,22155.18); h_SL2L164->SetBinContent(18,22548.75); h_SL2L164->SetBinContent(19,21469.83); h_SL2L164->SetBinContent(20,20872.69); h_SL2L164->SetBinContent(21,18565.56); h_SL2L164->SetBinContent(22,17276.29); h_SL2L164->SetBinContent(23,16869.15); h_SL2L164->SetBinContent(24,16943.79); h_SL2L164->SetBinContent(25,21021.97); h_SL2L164->SetBinContent(26,38087.91); h_SL2L164->SetBinContent(27,52073.15); h_SL2L164->SetBinContent(28,59842.73); h_SL2L164->SetBinContent(29,62767.35); h_SL2L164->SetBinContent(30,60772.37); h_SL2L164->SetBinContent(31,57494.89); h_SL2L164->SetBinContent(32,57135.25); h_SL2L164->SetBinContent(33,55588.12); h_SL2L164->SetBinContent(34,35210.79); h_SL2L164->SetBinContent(36,12533.11); h_SL2L164->SetBinContent(37,13001.32); h_SL2L164->SetBinContent(38,12410.97); h_SL2L164->SetBinContent(39,12410.97); h_SL2L164->SetBinContent(40,76644.02); h_SL2L164->SetBinContent(41,129646.8); h_SL2L164->SetBinContent(42,14724.88); h_SL2L164->SetBinContent(43,14799.52); h_SL2L164->SetBinContent(44,15132.02); h_SL2L164->SetBinContent(45,8794.215); h_SL2L164->SetBinContent(46,8509.218); h_SL2L164->SetBinContent(47,8346.361); h_SL2L164->SetBinContent(48,8332.79); h_SL2L164->SetBinContent(49,9377.782); h_SL2L164->SetBinContent(50,8380.29); h_SL2L164->SetBinContent(51,9052.07); h_SL2L164->SetBinContent(52,10918.13); h_SL2L164->SetBinContent(53,11413.48); h_SL2L164->SetBinContent(54,11270.98); h_SL2L164->SetBinContent(55,11732.41); h_SL2L164->SetBinContent(56,10022.42); h_SL2L164->SetBinContent(57,14969.17); h_SL2L164->SetMaximum(171456.9); 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,14202.39); h_SL2L265->SetBinContent(2,20085.55); h_SL2L265->SetBinContent(3,22209.46); h_SL2L265->SetBinContent(4,24944.09); h_SL2L265->SetBinContent(5,24916.94); h_SL2L265->SetBinContent(6,23966.95); h_SL2L265->SetBinContent(7,22202.68); h_SL2L265->SetBinContent(8,19474.84); h_SL2L265->SetBinContent(9,22392.68); h_SL2L265->SetBinContent(10,22589.46); h_SL2L265->SetBinContent(11,24028.02); h_SL2L265->SetBinContent(12,22942.32); h_SL2L265->SetBinContent(13,23050.89); h_SL2L265->SetBinContent(14,23641.24); h_SL2L265->SetBinContent(15,23573.38); h_SL2L265->SetBinContent(16,22562.32); h_SL2L265->SetBinContent(17,22290.89); h_SL2L265->SetBinContent(18,21395.19); h_SL2L265->SetBinContent(19,21130.54); h_SL2L265->SetBinContent(20,19922.7); h_SL2L265->SetBinContent(21,19196.63); h_SL2L265->SetBinContent(22,16862.37); h_SL2L265->SetBinContent(23,16489.15); h_SL2L265->SetBinContent(24,15498.45); h_SL2L265->SetBinContent(25,16238.08); h_SL2L265->SetBinContent(26,28988.34); h_SL2L265->SetBinContent(27,45402.85); h_SL2L265->SetBinContent(28,56314.19); h_SL2L265->SetBinContent(29,62387.36); h_SL2L265->SetBinContent(30,60399.16); h_SL2L265->SetBinContent(31,58994.53); h_SL2L265->SetBinContent(32,55961.34); h_SL2L265->SetBinContent(33,56504.19); h_SL2L265->SetBinContent(34,47336.76); h_SL2L265->SetBinContent(35,21992.32); h_SL2L265->SetBinContent(36,13164.18); h_SL2L265->SetBinContent(37,11386.34); h_SL2L265->SetBinContent(38,11454.19); h_SL2L265->SetBinContent(39,10924.91); h_SL2L265->SetBinContent(40,12207.4); h_SL2L265->SetBinContent(41,11779.91); h_SL2L265->SetBinContent(42,10348.13); h_SL2L265->SetBinContent(43,9649.208); h_SL2L265->SetBinContent(44,10259.92); h_SL2L265->SetBinContent(45,8916.357); h_SL2L265->SetBinContent(46,8041.007); h_SL2L265->SetBinContent(47,8292.076); h_SL2L265->SetBinContent(48,8237.791); h_SL2L265->SetBinContent(49,8488.86); h_SL2L265->SetBinContent(50,8536.36); h_SL2L265->SetBinContent(51,7851.008); h_SL2L265->SetBinContent(52,9085.998); h_SL2L265->SetBinContent(53,10307.42); h_SL2L265->SetBinContent(54,10721.34); h_SL2L265->SetBinContent(55,11522.05); h_SL2L265->SetBinContent(56,10463.49); h_SL2L265->SetBinContent(57,9465.995); h_SL2L265->SetMaximum(149093.8); 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,16394.15); h_SL2L366->SetBinContent(2,19149.13); h_SL2L366->SetBinContent(3,24408.02); h_SL2L366->SetBinContent(4,24218.02); h_SL2L366->SetBinContent(5,24333.38); h_SL2L366->SetBinContent(6,21965.18); h_SL2L366->SetBinContent(7,20472.34); h_SL2L366->SetBinContent(8,20479.12); h_SL2L366->SetBinContent(9,21985.54); h_SL2L366->SetBinContent(10,23213.74); h_SL2L366->SetBinContent(11,22670.89); h_SL2L366->SetBinContent(12,22813.39); h_SL2L366->SetBinContent(13,22066.96); h_SL2L366->SetBinContent(14,21971.97); h_SL2L366->SetBinContent(15,21639.47); h_SL2L366->SetBinContent(16,21700.54); h_SL2L366->SetBinContent(17,21198.4); h_SL2L366->SetBinContent(18,20662.33); h_SL2L366->SetBinContent(19,20173.77); h_SL2L366->SetBinContent(20,18402.71); h_SL2L366->SetBinContent(21,17106.65); h_SL2L366->SetBinContent(22,15912.37); h_SL2L366->SetBinContent(23,15634.16); h_SL2L366->SetBinContent(24,14969.17); h_SL2L366->SetBinContent(25,19637.7); h_SL2L366->SetBinContent(26,37612.91); h_SL2L366->SetBinContent(27,50587.09); h_SL2L366->SetBinContent(28,59673.09); h_SL2L366->SetBinContent(29,60724.87); h_SL2L366->SetBinContent(30,59632.38); h_SL2L366->SetBinContent(31,56612.76); h_SL2L366->SetBinContent(32,55778.12); h_SL2L366->SetBinContent(33,54088.5); h_SL2L366->SetBinContent(34,34905.43); h_SL2L366->SetBinContent(35,14684.17); h_SL2L366->SetBinContent(36,11250.62); h_SL2L366->SetBinContent(37,10721.34); h_SL2L366->SetBinContent(38,10219.2); h_SL2L366->SetBinContent(39,9805.278); h_SL2L366->SetBinContent(40,10164.92); h_SL2L366->SetBinContent(41,10232.78); h_SL2L366->SetBinContent(42,9113.141); h_SL2L366->SetBinContent(43,8644.931); h_SL2L366->SetBinContent(44,8943.5); h_SL2L366->SetBinContent(45,8142.792); h_SL2L366->SetBinContent(46,7857.794); h_SL2L366->SetBinContent(47,8163.149); h_SL2L366->SetBinContent(48,8142.792); h_SL2L366->SetBinContent(49,8828.144); h_SL2L366->SetBinContent(50,7925.65); h_SL2L366->SetBinContent(51,8292.076); h_SL2L366->SetBinContent(52,9710.279); h_SL2L366->SetBinContent(53,10436.34); h_SL2L366->SetBinContent(54,11121.7); h_SL2L366->SetBinContent(55,10850.27); h_SL2L366->SetBinContent(56,9309.925); h_SL2L366->SetBinContent(57,8611.002); h_SL2L366->SetMaximum(149093.8); 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,18877.71); h_SL2L467->SetBinContent(3,21537.68); h_SL2L467->SetBinContent(4,23363.03); h_SL2L467->SetBinContent(5,22270.54); h_SL2L467->SetBinContent(6,21198.4); h_SL2L467->SetBinContent(7,20716.62); h_SL2L467->SetBinContent(8,18395.92); h_SL2L467->SetBinContent(9,20926.97); h_SL2L467->SetBinContent(10,21205.19); h_SL2L467->SetBinContent(11,22677.68); h_SL2L467->SetBinContent(12,22155.18); h_SL2L467->SetBinContent(13,21659.83); h_SL2L467->SetBinContent(14,21686.97); h_SL2L467->SetBinContent(15,21605.54); h_SL2L467->SetBinContent(16,20777.69); h_SL2L467->SetBinContent(17,19542.7); h_SL2L467->SetBinContent(18,20669.12); h_SL2L467->SetBinContent(19,19949.84); h_SL2L467->SetBinContent(20,18836.99); h_SL2L467->SetBinContent(21,17384.86); h_SL2L467->SetBinContent(22,16590.94); h_SL2L467->SetBinContent(23,15254.16); h_SL2L467->SetBinContent(24,14446.67); h_SL2L467->SetBinContent(25,14948.81); h_SL2L467->SetBinContent(26,27631.21); h_SL2L467->SetBinContent(27,45043.21); h_SL2L467->SetBinContent(28,54719.56); h_SL2L467->SetBinContent(29,61559.5); h_SL2L467->SetBinContent(30,59910.59); h_SL2L467->SetBinContent(31,58777.39); h_SL2L467->SetBinContent(32,55228.48); h_SL2L467->SetBinContent(33,56436.33); h_SL2L467->SetBinContent(34,47044.98); h_SL2L467->SetBinContent(35,21938.04); h_SL2L467->SetBinContent(36,12125.97); h_SL2L467->SetBinContent(37,10816.34); h_SL2L467->SetBinContent(38,10239.56); h_SL2L467->SetBinContent(39,9737.422); h_SL2L467->SetBinContent(40,8848.5); h_SL2L467->SetBinContent(41,9174.212); h_SL2L467->SetBinContent(42,9683.137); h_SL2L467->SetBinContent(43,8373.504); h_SL2L467->SetBinContent(44,8733.145); h_SL2L467->SetBinContent(45,8074.935); h_SL2L467->SetBinContent(46,8163.149); h_SL2L467->SetBinContent(47,7742.438); h_SL2L467->SetBinContent(48,7898.508); h_SL2L467->SetBinContent(49,7830.651); h_SL2L467->SetBinContent(50,8081.721); h_SL2L467->SetBinContent(51,7837.437); h_SL2L467->SetBinContent(52,8095.292); h_SL2L467->SetBinContent(53,8970.643); h_SL2L467->SetBinContent(54,10029.21); h_SL2L467->SetBinContent(55,10429.56); h_SL2L467->SetBinContent(56,9350.64); h_SL2L467->SetBinContent(57,9269.211); h_SL2L467->SetMaximum(149093.8); 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 6689"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }