void RatesPerCell_Removing_noisy_cells_run_5816_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:24:15 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-1625.238,67.5,14627.14); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5816",60,0,60); h_SL2L164->SetBinContent(1,4430.637); h_SL2L164->SetBinContent(2,5293.273); h_SL2L164->SetBinContent(3,6425.483); h_SL2L164->SetBinContent(4,7777.203); h_SL2L164->SetBinContent(5,7879.255); h_SL2L164->SetBinContent(6,8397.222); h_SL2L164->SetBinContent(7,8514.68); h_SL2L164->SetBinContent(8,8341.382); h_SL2L164->SetBinContent(9,8672.572); h_SL2L164->SetBinContent(10,8784.253); h_SL2L164->SetBinContent(11,8951.773); h_SL2L164->SetBinContent(12,8915.188); h_SL2L164->SetBinContent(13,9107.741); h_SL2L164->SetBinContent(14,8957.551); h_SL2L164->SetBinContent(15,8886.306); h_SL2L164->SetBinContent(16,8971.029); h_SL2L164->SetBinContent(17,8928.668); h_SL2L164->SetBinContent(18,9304.146); h_SL2L164->SetBinContent(19,9363.837); h_SL2L164->SetBinContent(20,8784.253); h_SL2L164->SetBinContent(21,8997.986); h_SL2L164->SetBinContent(22,9034.571); h_SL2L164->SetBinContent(23,8994.136); h_SL2L164->SetBinContent(24,8934.444); h_SL2L164->SetBinContent(25,9057.678); h_SL2L164->SetBinContent(26,9246.38); h_SL2L164->SetBinContent(27,9155.88); h_SL2L164->SetBinContent(28,9155.88); h_SL2L164->SetBinContent(29,9315.698); h_SL2L164->SetBinContent(30,9165.507); h_SL2L164->SetBinContent(31,8947.923); h_SL2L164->SetBinContent(32,9078.858); h_SL2L164->SetBinContent(33,8836.242); h_SL2L164->SetBinContent(34,8766.923); h_SL2L164->SetBinContent(35,3.851053); h_SL2L164->SetBinContent(36,9831.739); h_SL2L164->SetBinContent(37,8620.583); h_SL2L164->SetBinContent(38,8795.806); h_SL2L164->SetBinContent(39,8942.146); h_SL2L164->SetBinContent(40,8212.371); h_SL2L164->SetBinContent(41,8761.146); h_SL2L164->SetBinContent(42,8661.02); h_SL2L164->SetBinContent(43,8813.136); h_SL2L164->SetBinContent(44,8847.795); h_SL2L164->SetBinContent(45,8822.764); h_SL2L164->SetBinContent(46,8842.019); h_SL2L164->SetBinContent(47,8890.157); h_SL2L164->SetBinContent(48,8639.839); h_SL2L164->SetBinContent(49,8705.307); h_SL2L164->SetBinContent(50,8422.254); h_SL2L164->SetBinContent(51,8347.158); h_SL2L164->SetBinContent(52,8196.968); h_SL2L164->SetBinContent(53,7994.787); h_SL2L164->SetBinContent(54,7353.586); h_SL2L164->SetBinContent(55,6096.218); h_SL2L164->SetBinContent(56,4561.573); h_SL2L164->SetBinContent(57,2031.431); h_SL2L164->SetMaximum(13001.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,2150.813); h_SL2L265->SetBinContent(2,4975.561); h_SL2L265->SetBinContent(3,6032.675); h_SL2L265->SetBinContent(4,7534.586); h_SL2L265->SetBinContent(5,8100.691); h_SL2L265->SetBinContent(6,8273.988); h_SL2L265->SetBinContent(7,8476.169); h_SL2L265->SetBinContent(8,8325.978); h_SL2L265->SetBinContent(9,8580.147); h_SL2L265->SetBinContent(10,8647.541); h_SL2L265->SetBinContent(11,8793.881); h_SL2L265->SetBinContent(12,8940.221); h_SL2L265->SetBinContent(13,8944.071); h_SL2L265->SetBinContent(14,9048.05); h_SL2L265->SetBinContent(15,8922.891); h_SL2L265->SetBinContent(16,8751.519); h_SL2L265->SetBinContent(17,8795.806); h_SL2L265->SetBinContent(18,9130.848); h_SL2L265->SetBinContent(19,9425.453); h_SL2L265->SetBinContent(20,8959.476); h_SL2L265->SetBinContent(21,8913.264); h_SL2L265->SetBinContent(22,8795.806); h_SL2L265->SetBinContent(23,8930.593); h_SL2L265->SetBinContent(24,8863.199); h_SL2L265->SetBinContent(25,8840.093); h_SL2L265->SetBinContent(26,9053.827); h_SL2L265->SetBinContent(27,9065.38); h_SL2L265->SetBinContent(28,8999.912); h_SL2L265->SetBinContent(29,9200.167); h_SL2L265->SetBinContent(30,9094.263); h_SL2L265->SetBinContent(31,8926.742); h_SL2L265->SetBinContent(32,8934.444); h_SL2L265->SetBinContent(33,8820.838); h_SL2L265->SetBinContent(34,8722.636); h_SL2L265->SetBinContent(35,7386.321); h_SL2L265->SetBinContent(36,7345.884); h_SL2L265->SetBinContent(37,8859.349); h_SL2L265->SetBinContent(38,8657.168); h_SL2L265->SetBinContent(39,8867.051); h_SL2L265->SetBinContent(40,8620.583); h_SL2L265->SetBinContent(41,8653.317); h_SL2L265->SetBinContent(42,8843.944); h_SL2L265->SetBinContent(43,8609.03); h_SL2L265->SetBinContent(44,8612.881); h_SL2L265->SetBinContent(45,8934.444); h_SL2L265->SetBinContent(46,8691.828); h_SL2L265->SetBinContent(47,8953.699); h_SL2L265->SetBinContent(48,8508.902); h_SL2L265->SetBinContent(49,8674.498); h_SL2L265->SetBinContent(50,8574.37); h_SL2L265->SetBinContent(51,8327.903); h_SL2L265->SetBinContent(52,8428.03); h_SL2L265->SetBinContent(53,8258.584); h_SL2L265->SetBinContent(54,7704.033); h_SL2L265->SetBinContent(55,7172.587); h_SL2L265->SetBinContent(56,5578.251); h_SL2L265->SetBinContent(57,3843.351); h_SL2L265->SetMaximum(11306.5); 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,2949.907); h_SL2L366->SetBinContent(2,5541.666); h_SL2L366->SetBinContent(3,7209.172); h_SL2L366->SetBinContent(4,8052.553); h_SL2L366->SetBinContent(5,8329.829); h_SL2L366->SetBinContent(6,8266.286); h_SL2L366->SetBinContent(7,8354.86); h_SL2L366->SetBinContent(8,8562.817); h_SL2L366->SetBinContent(9,8676.424); h_SL2L366->SetBinContent(10,8691.828); h_SL2L366->SetBinContent(11,9142.401); h_SL2L366->SetBinContent(12,8913.264); h_SL2L366->SetBinContent(13,8788.104); h_SL2L366->SetBinContent(14,9049.976); h_SL2L366->SetBinContent(15,8799.657); h_SL2L366->SetBinContent(16,8637.913); h_SL2L366->SetBinContent(17,9082.71); h_SL2L366->SetBinContent(18,9103.891); h_SL2L366->SetBinContent(19,9205.943); h_SL2L366->SetBinContent(20,8790.029); h_SL2L366->SetBinContent(21,8874.753); h_SL2L366->SetBinContent(22,9059.604); h_SL2L366->SetBinContent(23,8745.742); h_SL2L366->SetBinContent(24,8772.7); h_SL2L366->SetBinContent(25,8793.881); h_SL2L366->SetBinContent(26,8907.486); h_SL2L366->SetBinContent(27,9113.518); h_SL2L366->SetBinContent(28,9067.306); h_SL2L366->SetBinContent(29,8965.253); h_SL2L366->SetBinContent(30,8788.104); h_SL2L366->SetBinContent(31,9221.348); h_SL2L366->SetBinContent(32,8605.179); h_SL2L366->SetBinContent(33,8784.253); h_SL2L366->SetBinContent(34,8223.925); h_SL2L366->SetBinContent(35,7492.225); h_SL2L366->SetBinContent(36,7929.319); h_SL2L366->SetBinContent(37,8682.2); h_SL2L366->SetBinContent(38,8541.637); h_SL2L366->SetBinContent(39,8867.051); h_SL2L366->SetBinContent(40,8495.424); h_SL2L366->SetBinContent(41,8791.955); h_SL2L366->SetBinContent(42,8722.636); h_SL2L366->SetBinContent(43,8782.327); h_SL2L366->SetBinContent(44,8570.52); h_SL2L366->SetBinContent(45,8743.817); h_SL2L366->SetBinContent(46,8753.444); h_SL2L366->SetBinContent(47,8791.955); h_SL2L366->SetBinContent(48,8458.839); h_SL2L366->SetBinContent(49,8551.265); h_SL2L366->SetBinContent(50,8478.094); h_SL2L366->SetBinContent(51,8266.286); h_SL2L366->SetBinContent(52,8256.658); h_SL2L366->SetBinContent(53,8060.255); h_SL2L366->SetBinContent(54,7667.447); h_SL2L366->SetBinContent(55,6916.492); h_SL2L366->SetBinContent(56,4652.073); h_SL2L366->SetBinContent(57,2971.088); h_SL2L366->SetMaximum(11306.5); 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,4107.148); h_SL2L467->SetBinContent(3,6806.737); h_SL2L467->SetBinContent(4,7950.5); h_SL2L467->SetBinContent(5,8443.435); h_SL2L467->SetBinContent(6,8506.978); h_SL2L467->SetBinContent(7,8268.212); h_SL2L467->SetBinContent(8,8649.466); h_SL2L467->SetBinContent(9,8499.275); h_SL2L467->SetBinContent(10,8705.307); h_SL2L467->SetBinContent(11,8832.392); h_SL2L467->SetBinContent(12,9065.38); h_SL2L467->SetBinContent(13,8795.806); h_SL2L467->SetBinContent(14,9024.943); h_SL2L467->SetBinContent(15,8928.668); h_SL2L467->SetBinContent(16,8791.955); h_SL2L467->SetBinContent(17,8761.146); h_SL2L467->SetBinContent(18,9302.22); h_SL2L467->SetBinContent(19,9159.73); h_SL2L467->SetBinContent(20,9088.486); h_SL2L467->SetBinContent(21,8957.551); h_SL2L467->SetBinContent(22,9019.167); h_SL2L467->SetBinContent(23,8749.594); h_SL2L467->SetBinContent(24,8867.051); h_SL2L467->SetBinContent(25,8772.7); h_SL2L467->SetBinContent(26,8961.401); h_SL2L467->SetBinContent(27,9142.401); h_SL2L467->SetBinContent(28,9169.358); h_SL2L467->SetBinContent(29,8917.114); h_SL2L467->SetBinContent(30,9175.135); h_SL2L467->SetBinContent(31,9115.443); h_SL2L467->SetBinContent(32,9134.699); h_SL2L467->SetBinContent(33,8528.158); h_SL2L467->SetBinContent(34,8433.807); h_SL2L467->SetBinContent(35,8014.042); h_SL2L467->SetBinContent(36,8318.275); h_SL2L467->SetBinContent(37,8158.457); h_SL2L467->SetBinContent(38,8462.69); h_SL2L467->SetBinContent(39,8699.53); h_SL2L467->SetBinContent(40,8892.082); h_SL2L467->SetBinContent(41,8624.435); h_SL2L467->SetBinContent(42,8776.551); h_SL2L467->SetBinContent(43,8997.986); h_SL2L467->SetBinContent(44,8570.52); h_SL2L467->SetBinContent(45,9028.795); h_SL2L467->SetBinContent(46,8903.636); h_SL2L467->SetBinContent(47,8797.731); h_SL2L467->SetBinContent(48,8749.594); h_SL2L467->SetBinContent(49,8687.977); h_SL2L467->SetBinContent(50,8366.414); h_SL2L467->SetBinContent(51,8435.732); h_SL2L467->SetBinContent(52,8583.998); h_SL2L467->SetBinContent(53,8327.903); h_SL2L467->SetBinContent(54,8237.403); h_SL2L467->SetBinContent(55,7561.543); h_SL2L467->SetBinContent(56,6111.622); h_SL2L467->SetBinContent(57,3023.077); h_SL2L467->SetMaximum(11306.5); 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 5816"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }