void RatesPerCell_Removing_noisy_cells_run_6564_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:24:59 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-12893.37,67.5,116040.3); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6564",60,0,60); h_SL2L164->SetBinContent(1,722.8572); h_SL2L164->SetBinContent(2,862.8572); h_SL2L164->SetBinContent(3,952.8572); h_SL2L164->SetBinContent(4,1094.286); h_SL2L164->SetBinContent(5,1170); h_SL2L164->SetBinContent(6,1098.571); h_SL2L164->SetBinContent(7,1284.286); h_SL2L164->SetBinContent(8,1232.857); h_SL2L164->SetBinContent(9,1437.143); h_SL2L164->SetBinContent(10,1504.286); h_SL2L164->SetBinContent(11,1642.857); h_SL2L164->SetBinContent(12,1782.857); h_SL2L164->SetBinContent(13,1790); h_SL2L164->SetBinContent(14,1990); h_SL2L164->SetBinContent(15,1950); h_SL2L164->SetBinContent(16,2160); h_SL2L164->SetBinContent(17,2184.286); h_SL2L164->SetBinContent(18,2254.286); h_SL2L164->SetBinContent(19,2510); h_SL2L164->SetBinContent(20,2571.429); h_SL2L164->SetBinContent(21,2608.572); h_SL2L164->SetBinContent(22,2842.857); h_SL2L164->SetBinContent(23,3108.572); h_SL2L164->SetBinContent(24,3675.714); h_SL2L164->SetBinContent(25,8865.715); h_SL2L164->SetBinContent(26,27121.43); h_SL2L164->SetBinContent(27,41302.86); h_SL2L164->SetBinContent(28,49725.71); h_SL2L164->SetBinContent(29,53110); h_SL2L164->SetBinContent(30,51592.86); h_SL2L164->SetBinContent(31,50181.43); h_SL2L164->SetBinContent(32,49935.71); h_SL2L164->SetBinContent(33,48550); h_SL2L164->SetBinContent(34,27798.57); h_SL2L164->SetBinContent(35,1.428571); h_SL2L164->SetBinContent(36,3764.286); h_SL2L164->SetBinContent(37,8778.571); h_SL2L164->SetBinContent(38,5328.572); h_SL2L164->SetBinContent(39,6557.143); h_SL2L164->SetBinContent(40,45301.43); h_SL2L164->SetBinContent(41,77994.29); h_SL2L164->SetBinContent(42,13625.71); h_SL2L164->SetBinContent(43,13718.57); h_SL2L164->SetBinContent(44,14154.29); h_SL2L164->SetBinContent(45,1441.429); h_SL2L164->SetBinContent(46,1345.714); h_SL2L164->SetBinContent(47,1155.714); h_SL2L164->SetBinContent(48,1118.571); h_SL2L164->SetBinContent(49,1027.143); h_SL2L164->SetBinContent(50,1012.857); h_SL2L164->SetBinContent(51,990); h_SL2L164->SetBinContent(52,858.5715); h_SL2L164->SetBinContent(53,831.4286); h_SL2L164->SetBinContent(54,817.1429); h_SL2L164->SetBinContent(55,722.8572); h_SL2L164->SetBinContent(56,647.1429); h_SL2L164->SetBinContent(57,5004.286); h_SL2L164->SetMaximum(103146.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,682.8572); h_SL2L265->SetBinContent(2,785.7143); h_SL2L265->SetBinContent(3,854.2857); h_SL2L265->SetBinContent(4,1068.571); h_SL2L265->SetBinContent(5,1070); h_SL2L265->SetBinContent(6,1132.857); h_SL2L265->SetBinContent(7,1224.286); h_SL2L265->SetBinContent(8,1222.857); h_SL2L265->SetBinContent(9,1362.857); h_SL2L265->SetBinContent(10,1450); h_SL2L265->SetBinContent(11,1510); h_SL2L265->SetBinContent(12,1660); h_SL2L265->SetBinContent(13,1680); h_SL2L265->SetBinContent(14,1898.572); h_SL2L265->SetBinContent(15,1958.572); h_SL2L265->SetBinContent(16,2011.429); h_SL2L265->SetBinContent(17,2031.429); h_SL2L265->SetBinContent(18,2230); h_SL2L265->SetBinContent(19,2302.857); h_SL2L265->SetBinContent(20,2532.857); h_SL2L265->SetBinContent(21,2520); h_SL2L265->SetBinContent(22,2545.714); h_SL2L265->SetBinContent(23,2860); h_SL2L265->SetBinContent(24,3328.572); h_SL2L265->SetBinContent(25,4367.143); h_SL2L265->SetBinContent(26,17855.71); h_SL2L265->SetBinContent(27,34838.57); h_SL2L265->SetBinContent(28,46194.29); h_SL2L265->SetBinContent(29,51811.43); h_SL2L265->SetBinContent(30,52425.71); h_SL2L265->SetBinContent(31,50205.71); h_SL2L265->SetBinContent(32,50017.14); h_SL2L265->SetBinContent(33,50391.43); h_SL2L265->SetBinContent(34,40990); h_SL2L265->SetBinContent(35,14870); h_SL2L265->SetBinContent(36,4952.857); h_SL2L265->SetBinContent(37,3244.286); h_SL2L265->SetBinContent(38,2707.143); h_SL2L265->SetBinContent(39,3840); h_SL2L265->SetBinContent(40,5082.857); h_SL2L265->SetBinContent(41,4027.143); h_SL2L265->SetBinContent(42,3611.429); h_SL2L265->SetBinContent(43,2365.714); h_SL2L265->SetBinContent(44,3487.143); h_SL2L265->SetBinContent(45,1411.429); h_SL2L265->SetBinContent(46,1440); h_SL2L265->SetBinContent(47,1238.571); h_SL2L265->SetBinContent(48,1115.714); h_SL2L265->SetBinContent(49,1038.571); h_SL2L265->SetBinContent(50,975.7143); h_SL2L265->SetBinContent(51,957.1429); h_SL2L265->SetBinContent(52,938.5715); h_SL2L265->SetBinContent(53,798.5715); h_SL2L265->SetBinContent(54,821.4286); h_SL2L265->SetBinContent(55,700); h_SL2L265->SetBinContent(56,640); h_SL2L265->SetBinContent(57,615.7143); h_SL2L265->SetMaximum(89693.43); 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,732.8572); h_SL2L366->SetBinContent(2,818.5715); h_SL2L366->SetBinContent(3,945.7143); h_SL2L366->SetBinContent(4,988.5715); h_SL2L366->SetBinContent(5,1128.571); h_SL2L366->SetBinContent(6,1061.429); h_SL2L366->SetBinContent(7,1222.857); h_SL2L366->SetBinContent(8,1235.714); h_SL2L366->SetBinContent(9,1388.571); h_SL2L366->SetBinContent(10,1450); h_SL2L366->SetBinContent(11,1560); h_SL2L366->SetBinContent(12,1702.857); h_SL2L366->SetBinContent(13,1694.286); h_SL2L366->SetBinContent(14,1888.572); h_SL2L366->SetBinContent(15,1894.286); h_SL2L366->SetBinContent(16,2078.572); h_SL2L366->SetBinContent(17,2127.143); h_SL2L366->SetBinContent(18,2107.143); h_SL2L366->SetBinContent(19,2424.286); h_SL2L366->SetBinContent(20,2452.857); h_SL2L366->SetBinContent(21,2462.857); h_SL2L366->SetBinContent(22,2692.857); h_SL2L366->SetBinContent(23,3001.429); h_SL2L366->SetBinContent(24,3571.429); h_SL2L366->SetBinContent(25,8802.857); h_SL2L366->SetBinContent(26,27282.86); h_SL2L366->SetBinContent(27,41147.14); h_SL2L366->SetBinContent(28,49711.43); h_SL2L366->SetBinContent(29,52425.71); h_SL2L366->SetBinContent(30,51395.71); h_SL2L366->SetBinContent(31,50318.57); h_SL2L366->SetBinContent(32,49930); h_SL2L366->SetBinContent(33,48461.43); h_SL2L366->SetBinContent(34,27758.57); h_SL2L366->SetBinContent(35,7520); h_SL2L366->SetBinContent(36,3780); h_SL2L366->SetBinContent(37,2890); h_SL2L366->SetBinContent(38,2485.714); h_SL2L366->SetBinContent(39,2258.572); h_SL2L366->SetBinContent(40,3827.143); h_SL2L366->SetBinContent(41,2372.857); h_SL2L366->SetBinContent(42,1720); h_SL2L366->SetBinContent(43,1540); h_SL2L366->SetBinContent(44,1454.286); h_SL2L366->SetBinContent(45,1331.429); h_SL2L366->SetBinContent(46,1328.571); h_SL2L366->SetBinContent(47,1152.857); h_SL2L366->SetBinContent(48,1051.429); h_SL2L366->SetBinContent(49,974.2858); h_SL2L366->SetBinContent(50,940); h_SL2L366->SetBinContent(51,950); h_SL2L366->SetBinContent(52,835.7143); h_SL2L366->SetBinContent(53,795.7143); h_SL2L366->SetBinContent(54,780); h_SL2L366->SetBinContent(55,687.1429); h_SL2L366->SetBinContent(56,662.8572); h_SL2L366->SetBinContent(57,621.4286); h_SL2L366->SetMaximum(89693.43); 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,744.2857); h_SL2L467->SetBinContent(3,848.5715); h_SL2L467->SetBinContent(4,1027.143); h_SL2L467->SetBinContent(5,1041.429); h_SL2L467->SetBinContent(6,1028.571); h_SL2L467->SetBinContent(7,1144.286); h_SL2L467->SetBinContent(8,1175.714); h_SL2L467->SetBinContent(9,1318.571); h_SL2L467->SetBinContent(10,1382.857); h_SL2L467->SetBinContent(11,1394.286); h_SL2L467->SetBinContent(12,1634.286); h_SL2L467->SetBinContent(13,1624.286); h_SL2L467->SetBinContent(14,1840); h_SL2L467->SetBinContent(15,1895.714); h_SL2L467->SetBinContent(16,1918.572); h_SL2L467->SetBinContent(17,1985.714); h_SL2L467->SetBinContent(18,2125.714); h_SL2L467->SetBinContent(19,2210); h_SL2L467->SetBinContent(20,2468.572); h_SL2L467->SetBinContent(21,2447.143); h_SL2L467->SetBinContent(22,2510); h_SL2L467->SetBinContent(23,2828.572); h_SL2L467->SetBinContent(24,3232.857); h_SL2L467->SetBinContent(25,4315.714); h_SL2L467->SetBinContent(26,17650); h_SL2L467->SetBinContent(27,34988.57); h_SL2L467->SetBinContent(28,46095.71); h_SL2L467->SetBinContent(29,51720); h_SL2L467->SetBinContent(30,52958.57); h_SL2L467->SetBinContent(31,50207.14); h_SL2L467->SetBinContent(32,50024.29); h_SL2L467->SetBinContent(33,50561.43); h_SL2L467->SetBinContent(34,41008.57); h_SL2L467->SetBinContent(35,14792.86); h_SL2L467->SetBinContent(36,4818.572); h_SL2L467->SetBinContent(37,3187.143); h_SL2L467->SetBinContent(38,2660); h_SL2L467->SetBinContent(39,2417.143); h_SL2L467->SetBinContent(40,2065.714); h_SL2L467->SetBinContent(41,1941.429); h_SL2L467->SetBinContent(42,2262.857); h_SL2L467->SetBinContent(43,1552.857); h_SL2L467->SetBinContent(44,1417.143); h_SL2L467->SetBinContent(45,1347.143); h_SL2L467->SetBinContent(46,1360); h_SL2L467->SetBinContent(47,1292.857); h_SL2L467->SetBinContent(48,1054.286); h_SL2L467->SetBinContent(49,1047.143); h_SL2L467->SetBinContent(50,952.8572); h_SL2L467->SetBinContent(51,907.1429); h_SL2L467->SetBinContent(52,905.7143); h_SL2L467->SetBinContent(53,820); h_SL2L467->SetBinContent(54,834.2857); h_SL2L467->SetBinContent(55,661.4286); h_SL2L467->SetBinContent(56,652.8572); h_SL2L467->SetBinContent(57,610); h_SL2L467->SetMaximum(89693.43); 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 6564"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }