void RatesPerCell_Removing_noisy_cells_run_7278_SL1() { //=========Macro generated from canvas: c/c //========= (Mon Jan 21 13:19:55 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11486.78,67.5,103381); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7278",60,0,60); h_SL1L160->SetBinContent(1,37516.38); h_SL1L160->SetBinContent(2,36830.93); h_SL1L160->SetBinContent(3,35005.72); h_SL1L160->SetBinContent(4,33626.85); h_SL1L160->SetBinContent(5,32550.86); h_SL1L160->SetBinContent(6,33618.88); h_SL1L160->SetBinContent(7,33045.02); h_SL1L160->SetBinContent(8,33794.23); h_SL1L160->SetBinContent(9,34152.89); h_SL1L160->SetBinContent(10,33778.29); h_SL1L160->SetBinContent(11,34176.81); h_SL1L160->SetBinContent(12,32949.38); h_SL1L160->SetBinContent(13,51376.79); h_SL1L160->SetBinContent(14,60144.16); h_SL1L160->SetBinContent(15,58876.88); h_SL1L160->SetBinContent(16,29203.32); h_SL1L160->SetBinContent(17,26724.54); h_SL1L160->SetBinContent(18,26852.07); h_SL1L160->SetBinContent(19,28645.39); h_SL1L160->SetBinContent(20,28350.49); h_SL1L160->SetBinContent(21,31251.69); h_SL1L160->SetBinContent(22,31737.88); h_SL1L160->SetBinContent(23,30757.53); h_SL1L160->SetBinContent(24,28804.8); h_SL1L160->SetBinContent(25,28047.62); h_SL1L160->SetBinContent(26,28135.29); h_SL1L160->SetBinContent(27,28143.26); h_SL1L160->SetBinContent(28,27928.06); h_SL1L160->SetBinContent(29,27019.44); h_SL1L160->SetBinContent(30,26724.54); h_SL1L160->SetBinContent(31,25528.99); h_SL1L160->SetBinContent(32,25600.72); h_SL1L160->SetBinContent(33,37962.72); h_SL1L160->SetBinContent(34,38018.51); h_SL1L160->SetBinContent(35,36121.57); h_SL1L160->SetBinContent(36,35308.59); h_SL1L160->SetBinContent(37,35914.34); h_SL1L160->SetBinContent(38,33706.56); h_SL1L160->SetBinContent(39,32000.9); h_SL1L160->SetBinContent(41,24030.57); h_SL1L160->SetBinContent(42,24492.85); h_SL1L160->SetBinContent(43,23321.21); h_SL1L160->SetBinContent(44,22548.08); h_SL1L160->SetBinContent(45,20109.16); h_SL1L160->SetBinContent(46,18865.79); h_SL1L160->SetBinContent(47,18817.97); h_SL1L160->SetBinContent(48,19112.87); h_SL1L160->SetBinContent(49,19328.07); h_SL1L160->SetBinContent(50,19654.85); h_SL1L160->SetBinContent(51,18578.86); h_SL1L160->SetBinContent(52,17239.84); h_SL1L160->SetBinContent(53,17630.39); h_SL1L160->SetBinContent(54,17032.61); h_SL1L160->SetBinContent(55,17718.06); h_SL1L160->SetBinContent(56,17710.09); h_SL1L160->SetMaximum(91894.2); 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,40720.45); h_SL1L261->SetBinContent(2,39118.41); h_SL1L261->SetBinContent(3,38464.85); h_SL1L261->SetBinContent(4,38154); h_SL1L261->SetBinContent(5,37436.68); h_SL1L261->SetBinContent(6,40042.98); h_SL1L261->SetBinContent(7,39867.63); h_SL1L261->SetBinContent(8,40202.38); h_SL1L261->SetBinContent(9,49049.46); h_SL1L261->SetBinContent(10,40114.71); h_SL1L261->SetBinContent(11,40313.96); h_SL1L261->SetBinContent(12,39612.58); h_SL1L261->SetBinContent(13,43071.7); h_SL1L261->SetBinContent(14,43892.65); h_SL1L261->SetBinContent(15,44737.5); h_SL1L261->SetBinContent(16,40082.83); h_SL1L261->SetBinContent(17,35483.94); h_SL1L261->SetBinContent(18,33116.75); h_SL1L261->SetBinContent(19,34009.43); h_SL1L261->SetBinContent(20,37930.84); h_SL1L261->SetBinContent(21,40385.7); h_SL1L261->SetBinContent(22,42107.29); h_SL1L261->SetBinContent(23,41222.59); h_SL1L261->SetBinContent(24,40146.59); h_SL1L261->SetBinContent(25,40481.34); h_SL1L261->SetBinContent(26,40951.59); h_SL1L261->SetBinContent(27,38074.3); h_SL1L261->SetBinContent(28,39660.4); h_SL1L261->SetBinContent(29,38281.53); h_SL1L261->SetBinContent(30,37962.72); h_SL1L261->SetBinContent(31,36830.93); h_SL1L261->SetBinContent(32,36177.36); h_SL1L261->SetBinContent(33,37372.91); h_SL1L261->SetBinContent(34,37619.99); h_SL1L261->SetBinContent(35,35802.75); h_SL1L261->SetBinContent(36,34248.54); h_SL1L261->SetBinContent(37,34495.62); h_SL1L261->SetBinContent(38,34455.77); h_SL1L261->SetBinContent(39,32909.52); h_SL1L261->SetBinContent(40,32064.67); h_SL1L261->SetBinContent(41,30813.32); h_SL1L261->SetBinContent(42,33220.37); h_SL1L261->SetBinContent(43,31195.9); h_SL1L261->SetBinContent(44,31769.77); h_SL1L261->SetBinContent(45,30351.04); h_SL1L261->SetBinContent(46,28485.99); h_SL1L261->SetBinContent(47,27059.29); h_SL1L261->SetBinContent(48,27107.12); h_SL1L261->SetBinContent(49,27983.86); h_SL1L261->SetBinContent(50,27131.03); h_SL1L261->SetBinContent(51,26557.16); h_SL1L261->SetBinContent(52,24365.32); h_SL1L261->SetBinContent(53,23958.83); h_SL1L261->SetBinContent(54,23887.1); h_SL1L261->SetBinContent(55,23735.66); h_SL1L261->SetBinContent(56,23624.08); h_SL1L261->SetMaximum(79908.21); 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,37612.02); h_SL1L362->SetBinContent(2,37436.68); h_SL1L362->SetBinContent(3,36631.67); h_SL1L362->SetBinContent(4,37763.46); h_SL1L362->SetBinContent(5,39190.15); h_SL1L362->SetBinContent(6,38935.1); h_SL1L362->SetBinContent(7,38018.51); h_SL1L362->SetBinContent(8,40895.8); h_SL1L362->SetBinContent(9,39317.68); h_SL1L362->SetBinContent(10,38982.92); h_SL1L362->SetBinContent(11,37500.44); h_SL1L362->SetBinContent(12,41342.14); h_SL1L362->SetBinContent(13,40361.79); h_SL1L362->SetBinContent(14,45773.65); h_SL1L362->SetBinContent(15,55585.13); h_SL1L362->SetBinContent(16,39206.09); h_SL1L362->SetBinContent(17,33587); h_SL1L362->SetBinContent(18,32327.69); h_SL1L362->SetBinContent(19,34655.03); h_SL1L362->SetBinContent(20,37317.12); h_SL1L362->SetBinContent(21,40481.34); h_SL1L362->SetBinContent(22,39803.86); h_SL1L362->SetBinContent(23,39987.18); h_SL1L362->SetBinContent(24,39724.16); h_SL1L362->SetBinContent(25,39580.7); h_SL1L362->SetBinContent(26,38058.36); h_SL1L362->SetBinContent(27,36870.78); h_SL1L362->SetBinContent(28,37229.45); h_SL1L362->SetBinContent(29,37325.09); h_SL1L362->SetBinContent(30,36360.68); h_SL1L362->SetBinContent(31,35762.9); h_SL1L362->SetBinContent(32,35691.17); h_SL1L362->SetBinContent(33,37875.04); h_SL1L362->SetBinContent(34,36360.68); h_SL1L362->SetBinContent(35,34184.78); h_SL1L362->SetBinContent(36,34503.59); h_SL1L362->SetBinContent(37,34160.87); h_SL1L362->SetBinContent(38,32925.46); h_SL1L362->SetBinContent(39,30773.47); h_SL1L362->SetBinContent(40,29633.71); h_SL1L362->SetBinContent(41,30693.77); h_SL1L362->SetBinContent(42,33092.84); h_SL1L362->SetBinContent(43,30749.56); h_SL1L362->SetBinContent(44,30797.38); h_SL1L362->SetBinContent(45,27816.48); h_SL1L362->SetBinContent(46,26995.53); h_SL1L362->SetBinContent(47,26724.54); h_SL1L362->SetBinContent(48,26549.19); h_SL1L362->SetBinContent(49,26875.98); h_SL1L362->SetBinContent(50,25473.2); h_SL1L362->SetBinContent(51,25600.72); h_SL1L362->SetBinContent(52,23337.15); h_SL1L362->SetBinContent(53,22763.28); h_SL1L362->SetBinContent(54,22771.25); h_SL1L362->SetBinContent(55,22795.16); h_SL1L362->SetBinContent(56,22579.97); h_SL1L362->SetMaximum(79908.21); 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,32614.62); h_SL1L463->SetBinContent(3,29474.31); h_SL1L463->SetBinContent(4,28222.96); h_SL1L463->SetBinContent(5,28167.17); h_SL1L463->SetBinContent(6,30040.2); h_SL1L463->SetBinContent(7,29856.88); h_SL1L463->SetBinContent(8,31267.63); h_SL1L463->SetBinContent(9,32837.79); h_SL1L463->SetBinContent(10,32295.81); h_SL1L463->SetBinContent(11,33284.13); h_SL1L463->SetBinContent(12,34487.65); h_SL1L463->SetBinContent(13,36288.95); h_SL1L463->SetBinContent(14,69485.4); h_SL1L463->SetBinContent(15,62009.23); h_SL1L463->SetBinContent(16,59044.26); h_SL1L463->SetBinContent(17,28533.81); h_SL1L463->SetBinContent(18,25393.49); h_SL1L463->SetBinContent(19,25895.63); h_SL1L463->SetBinContent(20,26923.8); h_SL1L463->SetBinContent(21,29649.65); h_SL1L463->SetBinContent(22,30167.73); h_SL1L463->SetBinContent(23,28135.29); h_SL1L463->SetBinContent(24,28318.61); h_SL1L463->SetBinContent(25,27386.08); h_SL1L463->SetBinContent(26,27298.41); h_SL1L463->SetBinContent(27,25823.89); h_SL1L463->SetBinContent(28,26804.24); h_SL1L463->SetBinContent(29,26110.83); h_SL1L463->SetBinContent(30,27457.81); h_SL1L463->SetBinContent(31,26477.46); h_SL1L463->SetBinContent(32,25600.72); h_SL1L463->SetBinContent(33,25226.12); h_SL1L463->SetBinContent(34,29577.92); h_SL1L463->SetBinContent(35,27425.93); h_SL1L463->SetBinContent(36,25210.18); h_SL1L463->SetBinContent(37,55.79236); h_SL1L463->SetBinContent(40,7.970337); h_SL1L463->SetBinContent(41,22165.51); h_SL1L463->SetBinContent(42,23448.73); h_SL1L463->SetBinContent(43,23552.35); h_SL1L463->SetBinContent(44,23998.69); h_SL1L463->SetBinContent(45,22364.77); h_SL1L463->SetBinContent(46,20579.41); h_SL1L463->SetBinContent(47,20021.49); h_SL1L463->SetBinContent(48,20252.63); h_SL1L463->SetBinContent(49,20069.31); h_SL1L463->SetBinContent(50,20946.05); h_SL1L463->SetBinContent(51,19080.99); h_SL1L463->SetBinContent(52,18897.67); h_SL1L463->SetBinContent(53,17797.76); h_SL1L463->SetBinContent(54,16809.44); h_SL1L463->SetBinContent(56,17351.42); h_SL1L463->SetMaximum(79908.21); 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 7278"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }