void RatesPerCell_Removing_noisy_cells_run_6745_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:09:57 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11387.01,67.5,102483.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 6745",60,0,60); h_SL2L164->SetBinContent(1,32921.41); h_SL2L164->SetBinContent(2,40740); h_SL2L164->SetBinContent(3,49244.86); h_SL2L164->SetBinContent(4,50340.44); h_SL2L164->SetBinContent(5,49852.7); h_SL2L164->SetBinContent(6,45129.68); h_SL2L164->SetBinContent(7,40203.23); h_SL2L164->SetBinContent(8,40227.74); h_SL2L164->SetBinContent(9,45543.89); h_SL2L164->SetBinContent(10,47004.67); h_SL2L164->SetBinContent(11,45909.09); h_SL2L164->SetBinContent(12,45938.5); h_SL2L164->SetBinContent(13,45526.73); h_SL2L164->SetBinContent(14,44877.23); h_SL2L164->SetBinContent(15,44610.07); h_SL2L164->SetBinContent(16,42791.45); h_SL2L164->SetBinContent(17,41916.46); h_SL2L164->SetBinContent(18,41482.64); h_SL2L164->SetBinContent(19,39588.04); h_SL2L164->SetBinContent(20,37004.72); h_SL2L164->SetBinContent(21,34350.32); h_SL2L164->SetBinContent(22,31514.55); h_SL2L164->SetBinContent(23,30519.46); h_SL2L164->SetBinContent(24,29043.97); h_SL2L164->SetBinContent(25,30948.38); h_SL2L164->SetBinContent(26,47445.84); h_SL2L164->SetBinContent(27,59967.84); h_SL2L164->SetBinContent(28,66073.2); h_SL2L164->SetBinContent(29,68882.02); h_SL2L164->SetBinContent(30,66551.14); h_SL2L164->SetBinContent(31,64181.05); h_SL2L164->SetBinContent(32,64882.03); h_SL2L164->SetBinContent(33,64149.19); h_SL2L164->SetBinContent(34,43918.9); h_SL2L164->SetBinContent(36,19855.29); h_SL2L164->SetBinContent(37,20901.86); h_SL2L164->SetBinContent(38,20411.66); h_SL2L164->SetBinContent(39,19899.41); h_SL2L164->SetBinContent(40,57284.03); h_SL2L164->SetBinContent(41,51149.26); h_SL2L164->SetBinContent(42,21428.82); h_SL2L164->SetBinContent(43,21909.21); h_SL2L164->SetBinContent(44,20872.45); h_SL2L164->SetBinContent(45,16301.39); h_SL2L164->SetBinContent(46,15080.81); h_SL2L164->SetBinContent(47,15872.47); h_SL2L164->SetBinContent(48,15789.14); h_SL2L164->SetBinContent(49,16458.25); h_SL2L164->SetBinContent(50,15855.31); h_SL2L164->SetBinContent(51,17002.37); h_SL2L164->SetBinContent(52,18953.34); h_SL2L164->SetBinContent(53,20262.15); h_SL2L164->SetBinContent(54,21877.34); h_SL2L164->SetBinContent(55,21857.73); h_SL2L164->SetBinContent(56,18840.59); h_SL2L164->SetBinContent(57,16529.33); h_SL2L164->SetMaximum(91096.1); 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,26963.1); h_SL2L265->SetBinContent(2,38666.48); h_SL2L265->SetBinContent(3,42874.79); h_SL2L265->SetBinContent(4,48524.27); h_SL2L265->SetBinContent(5,48884.56); h_SL2L265->SetBinContent(6,46058.59); h_SL2L265->SetBinContent(7,41732.64); h_SL2L265->SetBinContent(8,37423.84); h_SL2L265->SetBinContent(9,41389.5); h_SL2L265->SetBinContent(10,43394.39); h_SL2L265->SetBinContent(11,46002.22); h_SL2L265->SetBinContent(12,44656.64); h_SL2L265->SetBinContent(13,43899.29); h_SL2L265->SetBinContent(14,44110.07); h_SL2L265->SetBinContent(15,42926.26); h_SL2L265->SetBinContent(16,42382.14); h_SL2L265->SetBinContent(17,40891.95); h_SL2L265->SetBinContent(18,39570.88); h_SL2L265->SetBinContent(19,39867.45); h_SL2L265->SetBinContent(20,36914.03); h_SL2L265->SetBinContent(21,34225.32); h_SL2L265->SetBinContent(22,31075.83); h_SL2L265->SetBinContent(23,30002.3); h_SL2L265->SetBinContent(24,28651.82); h_SL2L265->SetBinContent(25,27725.35); h_SL2L265->SetBinContent(26,38725.3); h_SL2L265->SetBinContent(27,52975.23); h_SL2L265->SetBinContent(28,63538.9); h_SL2L265->SetBinContent(29,67379.57); h_SL2L265->SetBinContent(30,67492.31); h_SL2L265->SetBinContent(31,63144.3); h_SL2L265->SetBinContent(32,63970.27); h_SL2L265->SetBinContent(33,64830.56); h_SL2L265->SetBinContent(34,56975.21); h_SL2L265->SetBinContent(35,30659.16); h_SL2L265->SetBinContent(36,20595.49); h_SL2L265->SetBinContent(37,19176.38); h_SL2L265->SetBinContent(38,18671.48); h_SL2L265->SetBinContent(39,18855.3); h_SL2L265->SetBinContent(40,19105.3); h_SL2L265->SetBinContent(41,18389.62); h_SL2L265->SetBinContent(42,17671.48); h_SL2L265->SetBinContent(43,16718.05); h_SL2L265->SetBinContent(44,16911.68); h_SL2L265->SetBinContent(45,16573.45); h_SL2L265->SetBinContent(46,15271.98); h_SL2L265->SetBinContent(47,14825.91); h_SL2L265->SetBinContent(48,15421.49); h_SL2L265->SetBinContent(49,15955.8); h_SL2L265->SetBinContent(50,16019.53); h_SL2L265->SetBinContent(51,15039.14); h_SL2L265->SetBinContent(52,17262.17); h_SL2L265->SetBinContent(53,18742.55); h_SL2L265->SetBinContent(54,20499.9); h_SL2L265->SetBinContent(55,21622.44); h_SL2L265->SetBinContent(56,19541.57); h_SL2L265->SetBinContent(57,18105.3); h_SL2L265->SetMaximum(79214.32); 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,31112.59); h_SL2L366->SetBinContent(2,37693.44); h_SL2L366->SetBinContent(3,47301.24); h_SL2L366->SetBinContent(4,46798.79); h_SL2L366->SetBinContent(5,45884.58); h_SL2L366->SetBinContent(6,41614.99); h_SL2L366->SetBinContent(7,37943.44); h_SL2L366->SetBinContent(8,38127.26); h_SL2L366->SetBinContent(9,42372.34); h_SL2L366->SetBinContent(10,43168.9); h_SL2L366->SetBinContent(11,43137.04); h_SL2L366->SetBinContent(12,43389.49); h_SL2L366->SetBinContent(13,42548.81); h_SL2L366->SetBinContent(14,42107.64); h_SL2L366->SetBinContent(15,41247.34); h_SL2L366->SetBinContent(16,40004.7); h_SL2L366->SetBinContent(17,38953.24); h_SL2L366->SetBinContent(18,38262.07); h_SL2L366->SetBinContent(19,36568.45); h_SL2L366->SetBinContent(20,34352.77); h_SL2L366->SetBinContent(21,31159.16); h_SL2L366->SetBinContent(22,29350.35); h_SL2L366->SetBinContent(23,28379.76); h_SL2L366->SetBinContent(24,27093); h_SL2L366->SetBinContent(25,29210.64); h_SL2L366->SetBinContent(26,46203.2); h_SL2L366->SetBinContent(27,58646.77); h_SL2L366->SetBinContent(28,64531.54); h_SL2L366->SetBinContent(29,67132.02); h_SL2L366->SetBinContent(30,65264.38); h_SL2L366->SetBinContent(31,63225.18); h_SL2L366->SetBinContent(32,63477.63); h_SL2L366->SetBinContent(33,62418.81); h_SL2L366->SetBinContent(34,42612.54); h_SL2L366->SetBinContent(35,22257.24); h_SL2L366->SetBinContent(36,19247.45); h_SL2L366->SetBinContent(37,18034.22); h_SL2L366->SetBinContent(38,17906.77); h_SL2L366->SetBinContent(39,17311.19); h_SL2L366->SetBinContent(40,17627.36); h_SL2L366->SetBinContent(41,17031.78); h_SL2L366->SetBinContent(42,16620.02); h_SL2L366->SetBinContent(43,16330.8); h_SL2L366->SetBinContent(44,15617.57); h_SL2L366->SetBinContent(45,14931.3); h_SL2L366->SetBinContent(46,14436.2); h_SL2L366->SetBinContent(47,14428.85); h_SL2L366->SetBinContent(48,14644.54); h_SL2L366->SetBinContent(49,15409.24); h_SL2L366->SetBinContent(50,15080.81); h_SL2L366->SetBinContent(51,15512.18); h_SL2L366->SetBinContent(52,17284.23); h_SL2L366->SetBinContent(53,18548.93); h_SL2L366->SetBinContent(54,20507.25); h_SL2L366->SetBinContent(55,20313.62); h_SL2L366->SetBinContent(56,17274.42); h_SL2L366->SetBinContent(57,17181.29); h_SL2L366->SetMaximum(79214.32); 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,36164.04); h_SL2L467->SetBinContent(3,40394.41); h_SL2L467->SetBinContent(4,44852.72); h_SL2L467->SetBinContent(5,44960.56); h_SL2L467->SetBinContent(6,42034.11); h_SL2L467->SetBinContent(7,38955.69); h_SL2L467->SetBinContent(8,34507.18); h_SL2L467->SetBinContent(9,40063.53); h_SL2L467->SetBinContent(10,41244.89); h_SL2L467->SetBinContent(11,41583.13); h_SL2L467->SetBinContent(12,40904.21); h_SL2L467->SetBinContent(13,41029.21); h_SL2L467->SetBinContent(14,40887.05); h_SL2L467->SetBinContent(15,40664.02); h_SL2L467->SetBinContent(16,38921.38); h_SL2L467->SetBinContent(17,38154.22); h_SL2L467->SetBinContent(18,37369.91); h_SL2L467->SetBinContent(19,36818.45); h_SL2L467->SetBinContent(20,34119.93); h_SL2L467->SetBinContent(21,31646.9); h_SL2L467->SetBinContent(22,29107.7); h_SL2L467->SetBinContent(23,27499.86); h_SL2L467->SetBinContent(24,26262.12); h_SL2L467->SetBinContent(25,25345.46); h_SL2L467->SetBinContent(26,36948.35); h_SL2L467->SetBinContent(27,52208.07); h_SL2L467->SetBinContent(28,62011.95); h_SL2L467->SetBinContent(29,65904.09); h_SL2L467->SetBinContent(30,66651.63); h_SL2L467->SetBinContent(31,62087.93); h_SL2L467->SetBinContent(32,63119.79); h_SL2L467->SetBinContent(33,63453.12); h_SL2L467->SetBinContent(34,55548.75); h_SL2L467->SetBinContent(35,28901.82); h_SL2L467->SetBinContent(36,19490.1); h_SL2L467->SetBinContent(37,17958.24); h_SL2L467->SetBinContent(38,18215.6); h_SL2L467->SetBinContent(39,16884.72); h_SL2L467->SetBinContent(40,16585.7); h_SL2L467->SetBinContent(41,15713.16); h_SL2L467->SetBinContent(42,16313.64); h_SL2L467->SetBinContent(43,15813.65); h_SL2L467->SetBinContent(44,15526.88); h_SL2L467->SetBinContent(45,15017.08); h_SL2L467->SetBinContent(46,14176.4); h_SL2L467->SetBinContent(47,13911.7); h_SL2L467->SetBinContent(48,13943.56); h_SL2L467->SetBinContent(49,14539.14); h_SL2L467->SetBinContent(50,14867.57); h_SL2L467->SetBinContent(51,14061.21); h_SL2L467->SetBinContent(52,15926.39); h_SL2L467->SetBinContent(53,17053.84); h_SL2L467->SetBinContent(54,18384.71); h_SL2L467->SetBinContent(55,20095.49); h_SL2L467->SetBinContent(56,18360.2); h_SL2L467->SetBinContent(57,16813.64); h_SL2L467->SetMaximum(79214.32); 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 6745"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }