void RatesPerCell_Removing_noisy_cells_run_6648_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:59:31 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11155.72,67.5,100401.5); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6648",60,0,60); h_SL2L164->SetBinContent(1,30843.04); h_SL2L164->SetBinContent(2,38637.34); h_SL2L164->SetBinContent(3,46692.37); h_SL2L164->SetBinContent(4,48406.16); h_SL2L164->SetBinContent(5,47348.02); h_SL2L164->SetBinContent(6,43133.17); h_SL2L164->SetBinContent(7,38538.61); h_SL2L164->SetBinContent(8,37703.23); h_SL2L164->SetBinContent(9,42773.71); h_SL2L164->SetBinContent(10,44054.61); h_SL2L164->SetBinContent(11,44234.34); h_SL2L164->SetBinContent(12,42905.34); h_SL2L164->SetBinContent(13,43442); h_SL2L164->SetBinContent(14,42933.19); h_SL2L164->SetBinContent(15,41609.25); h_SL2L164->SetBinContent(16,41064.98); h_SL2L164->SetBinContent(17,39520.81); h_SL2L164->SetBinContent(18,39725.86); h_SL2L164->SetBinContent(19,37072.91); h_SL2L164->SetBinContent(20,34331.36); h_SL2L164->SetBinContent(21,31432.86); h_SL2L164->SetBinContent(22,29308.99); h_SL2L164->SetBinContent(23,28774.85); h_SL2L164->SetBinContent(24,27096.51); h_SL2L164->SetBinContent(25,29967.16); h_SL2L164->SetBinContent(26,45130.47); h_SL2L164->SetBinContent(27,57554.77); h_SL2L164->SetBinContent(28,65179.46); h_SL2L164->SetBinContent(29,67483.07); h_SL2L164->SetBinContent(30,65133.9); h_SL2L164->SetBinContent(31,62969.52); h_SL2L164->SetBinContent(32,63587.19); h_SL2L164->SetBinContent(33,62799.91); h_SL2L164->SetBinContent(34,42642.07); h_SL2L164->SetBinContent(36,18013.71); h_SL2L164->SetBinContent(37,19512.32); h_SL2L164->SetBinContent(38,18808.58); h_SL2L164->SetBinContent(39,18747.83); h_SL2L164->SetBinContent(40,49492.14); h_SL2L164->SetBinContent(41,63602.38); h_SL2L164->SetBinContent(42,20638.81); h_SL2L164->SetBinContent(43,21175.48); h_SL2L164->SetBinContent(44,21061.56); h_SL2L164->SetBinContent(45,14927.89); h_SL2L164->SetBinContent(46,13867.22); h_SL2L164->SetBinContent(47,14474.76); h_SL2L164->SetBinContent(48,14905.11); h_SL2L164->SetBinContent(49,15307.6); h_SL2L164->SetBinContent(50,15034.21); h_SL2L164->SetBinContent(51,15892.37); h_SL2L164->SetBinContent(52,17785.88); h_SL2L164->SetBinContent(53,19294.62); h_SL2L164->SetBinContent(54,20904.61); h_SL2L164->SetBinContent(55,21023.59); h_SL2L164->SetBinContent(56,18041.56); h_SL2L164->SetBinContent(57,15859.46); h_SL2L164->SetMaximum(89245.75); 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,25727); h_SL2L265->SetBinContent(2,36809.64); h_SL2L265->SetBinContent(3,40247.33); h_SL2L265->SetBinContent(4,46887.29); h_SL2L265->SetBinContent(5,46231.65); h_SL2L265->SetBinContent(6,43477.45); h_SL2L265->SetBinContent(7,39867.61); h_SL2L265->SetBinContent(8,35050.29); h_SL2L265->SetBinContent(9,40563.76); h_SL2L265->SetBinContent(10,41864.92); h_SL2L265->SetBinContent(11,42834.46); h_SL2L265->SetBinContent(12,41677.59); h_SL2L265->SetBinContent(13,42011.74); h_SL2L265->SetBinContent(14,41568.74); h_SL2L265->SetBinContent(15,41662.41); h_SL2L265->SetBinContent(16,39596.75); h_SL2L265->SetBinContent(17,38814.54); h_SL2L265->SetBinContent(18,37341.24); h_SL2L265->SetBinContent(19,36789.39); h_SL2L265->SetBinContent(20,34103.53); h_SL2L265->SetBinContent(21,32020.16); h_SL2L265->SetBinContent(22,29248.23); h_SL2L265->SetBinContent(23,27891.38); h_SL2L265->SetBinContent(24,27329.4); h_SL2L265->SetBinContent(25,26372.52); h_SL2L265->SetBinContent(26,36675.47); h_SL2L265->SetBinContent(27,51724.87); h_SL2L265->SetBinContent(28,61544.32); h_SL2L265->SetBinContent(29,65928.77); h_SL2L265->SetBinContent(30,66318.61); h_SL2L265->SetBinContent(31,62412.6); h_SL2L265->SetBinContent(32,62369.57); h_SL2L265->SetBinContent(33,63323.92); h_SL2L265->SetBinContent(34,54942.33); h_SL2L265->SetBinContent(35,28868.52); h_SL2L265->SetBinContent(36,18919.97); h_SL2L265->SetBinContent(37,17866.89); h_SL2L265->SetBinContent(38,17634); h_SL2L265->SetBinContent(39,17234.03); h_SL2L265->SetBinContent(40,17937.77); h_SL2L265->SetBinContent(41,17132.77); h_SL2L265->SetBinContent(42,16502.44); h_SL2L265->SetBinContent(43,15545.56); h_SL2L265->SetBinContent(44,15568.34); h_SL2L265->SetBinContent(45,14163.39); h_SL2L265->SetBinContent(46,14026.7); h_SL2L265->SetBinContent(47,13735.58); h_SL2L265->SetBinContent(48,14176.05); h_SL2L265->SetBinContent(49,14507.67); h_SL2L265->SetBinContent(50,15186.1); h_SL2L265->SetBinContent(51,14224.15); h_SL2L265->SetBinContent(52,16497.38); h_SL2L265->SetBinContent(53,17732.72); h_SL2L265->SetBinContent(54,19390.81); h_SL2L265->SetBinContent(55,20322.38); h_SL2L265->SetBinContent(56,18514.94); h_SL2L265->SetBinContent(57,17747.91); h_SL2L265->SetMaximum(77605.53); 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,30098.8); h_SL2L366->SetBinContent(2,36035.02); h_SL2L366->SetBinContent(3,44295.1); h_SL2L366->SetBinContent(4,44765.95); h_SL2L366->SetBinContent(5,42520.56); h_SL2L366->SetBinContent(6,39880.27); h_SL2L366->SetBinContent(7,35442.66); h_SL2L366->SetBinContent(8,36019.83); h_SL2L366->SetBinContent(9,40254.93); h_SL2L366->SetBinContent(10,41138.4); h_SL2L366->SetBinContent(11,41232.06); h_SL2L366->SetBinContent(12,40300.49); h_SL2L366->SetBinContent(13,40034.69); h_SL2L366->SetBinContent(14,39935.96); h_SL2L366->SetBinContent(15,38690.5); h_SL2L366->SetBinContent(16,37667.8); h_SL2L366->SetBinContent(17,36369.17); h_SL2L366->SetBinContent(18,35495.82); h_SL2L366->SetBinContent(19,34151.63); h_SL2L366->SetBinContent(20,32063.19); h_SL2L366->SetBinContent(21,29420.37); h_SL2L366->SetBinContent(22,26861.09); h_SL2L366->SetBinContent(23,26202.91); h_SL2L366->SetBinContent(24,24727.09); h_SL2L366->SetBinContent(25,27990.11); h_SL2L366->SetBinContent(26,43606.55); h_SL2L366->SetBinContent(27,56040.97); h_SL2L366->SetBinContent(28,64260.55); h_SL2L366->SetBinContent(29,66318.61); h_SL2L366->SetBinContent(30,63678.32); h_SL2L366->SetBinContent(31,61767.09); h_SL2L366->SetBinContent(32,62091.11); h_SL2L366->SetBinContent(33,61367.12); h_SL2L366->SetBinContent(34,41528.24); h_SL2L366->SetBinContent(35,21375.46); h_SL2L366->SetBinContent(36,17626.4); h_SL2L366->SetBinContent(37,17479.58); h_SL2L366->SetBinContent(38,16816.34); h_SL2L366->SetBinContent(39,16148.04); h_SL2L366->SetBinContent(40,15780.98); h_SL2L366->SetBinContent(41,15555.69); h_SL2L366->SetBinContent(42,14735.5); h_SL2L366->SetBinContent(43,14725.37); h_SL2L366->SetBinContent(44,14500.08); h_SL2L366->SetBinContent(45,13720.39); h_SL2L366->SetBinContent(46,12902.74); h_SL2L366->SetBinContent(47,13550.79); h_SL2L366->SetBinContent(48,13735.58); h_SL2L366->SetBinContent(49,14388.69); h_SL2L366->SetBinContent(50,14064.67); h_SL2L366->SetBinContent(51,14338.06); h_SL2L366->SetBinContent(52,16408.78); h_SL2L366->SetBinContent(53,17651.72); h_SL2L366->SetBinContent(54,18930.09); h_SL2L366->SetBinContent(55,19155.39); h_SL2L366->SetBinContent(56,16856.85); h_SL2L366->SetBinContent(57,16798.62); h_SL2L366->SetMaximum(77605.53); 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,34708.54); h_SL2L467->SetBinContent(3,38391.79); h_SL2L467->SetBinContent(4,42343.36); h_SL2L467->SetBinContent(5,42955.97); h_SL2L467->SetBinContent(6,39490.43); h_SL2L467->SetBinContent(7,36052.74); h_SL2L467->SetBinContent(8,32174.58); h_SL2L467->SetBinContent(9,38133.58); h_SL2L467->SetBinContent(10,38680.37); h_SL2L467->SetBinContent(11,39981.53); h_SL2L467->SetBinContent(12,38910.73); h_SL2L467->SetBinContent(13,38672.78); h_SL2L467->SetBinContent(14,38682.9); h_SL2L467->SetBinContent(15,38206.99); h_SL2L467->SetBinContent(16,36718.51); h_SL2L467->SetBinContent(17,35323.68); h_SL2L467->SetBinContent(18,34873.09); h_SL2L467->SetBinContent(19,34500.96); h_SL2L467->SetBinContent(20,31468.3); h_SL2L467->SetBinContent(21,29969.69); h_SL2L467->SetBinContent(22,26802.86); h_SL2L467->SetBinContent(23,25656.12); h_SL2L467->SetBinContent(24,24430.91); h_SL2L467->SetBinContent(25,24230.92); h_SL2L467->SetBinContent(26,34981.94); h_SL2L467->SetBinContent(27,49889.58); h_SL2L467->SetBinContent(28,59800.16); h_SL2L467->SetBinContent(29,64422.56); h_SL2L467->SetBinContent(30,65754.1); h_SL2L467->SetBinContent(31,61440.53); h_SL2L467->SetBinContent(32,61422.81); h_SL2L467->SetBinContent(33,62192.37); h_SL2L467->SetBinContent(34,54142.39); h_SL2L467->SetBinContent(35,27463.57); h_SL2L467->SetBinContent(36,17654.25); h_SL2L467->SetBinContent(37,16747.99); h_SL2L467->SetBinContent(38,16335.37); h_SL2L467->SetBinContent(39,15778.45); h_SL2L467->SetBinContent(40,15246.85); h_SL2L467->SetBinContent(41,14970.92); h_SL2L467->SetBinContent(42,14479.82); h_SL2L467->SetBinContent(43,14289.97); h_SL2L467->SetBinContent(44,14241.87); h_SL2L467->SetBinContent(45,13520.41); h_SL2L467->SetBinContent(46,12677.44); h_SL2L467->SetBinContent(47,12821.73); h_SL2L467->SetBinContent(48,13292.58); h_SL2L467->SetBinContent(49,13469.78); h_SL2L467->SetBinContent(50,13857.09); h_SL2L467->SetBinContent(51,13198.92); h_SL2L467->SetBinContent(52,14824.1); h_SL2L467->SetBinContent(53,16403.72); h_SL2L467->SetBinContent(54,17725.13); h_SL2L467->SetBinContent(55,18995.91); h_SL2L467->SetBinContent(56,17737.79); h_SL2L467->SetBinContent(57,16368.28); h_SL2L467->SetMaximum(77605.53); 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 6648"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }