void RatesPerCell_Removing_noisy_cells_run_6677_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:19:22 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11606.09,67.5,104454.8); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6677",60,0,60); h_SL2L164->SetBinContent(1,652.8572); h_SL2L164->SetBinContent(2,762.8572); h_SL2L164->SetBinContent(3,905.7143); h_SL2L164->SetBinContent(4,900); h_SL2L164->SetBinContent(5,975.7143); h_SL2L164->SetBinContent(6,1011.429); h_SL2L164->SetBinContent(7,1052.857); h_SL2L164->SetBinContent(8,1181.429); h_SL2L164->SetBinContent(9,1331.429); h_SL2L164->SetBinContent(10,1325.714); h_SL2L164->SetBinContent(11,1432.857); h_SL2L164->SetBinContent(12,1532.857); h_SL2L164->SetBinContent(13,1624.286); h_SL2L164->SetBinContent(14,1702.857); h_SL2L164->SetBinContent(15,1895.714); h_SL2L164->SetBinContent(16,1868.572); h_SL2L164->SetBinContent(17,2080); h_SL2L164->SetBinContent(18,2208.572); h_SL2L164->SetBinContent(19,2497.143); h_SL2L164->SetBinContent(20,2468.572); h_SL2L164->SetBinContent(21,2514.286); h_SL2L164->SetBinContent(22,2711.429); h_SL2L164->SetBinContent(23,2964.286); h_SL2L164->SetBinContent(24,3484.286); h_SL2L164->SetBinContent(25,8477.143); h_SL2L164->SetBinContent(26,26804.29); h_SL2L164->SetBinContent(27,41331.43); h_SL2L164->SetBinContent(28,49445.71); h_SL2L164->SetBinContent(29,52611.43); h_SL2L164->SetBinContent(30,51234.29); h_SL2L164->SetBinContent(31,49718.57); h_SL2L164->SetBinContent(32,50118.57); h_SL2L164->SetBinContent(33,48367.14); h_SL2L164->SetBinContent(34,27594.29); h_SL2L164->SetBinContent(36,3390); h_SL2L164->SetBinContent(37,4428.572); h_SL2L164->SetBinContent(38,3340); h_SL2L164->SetBinContent(39,3798.572); h_SL2L164->SetBinContent(40,70207.14); h_SL2L164->SetBinContent(41,69544.29); h_SL2L164->SetBinContent(42,6885.714); h_SL2L164->SetBinContent(43,6760); h_SL2L164->SetBinContent(44,6897.143); h_SL2L164->SetBinContent(45,1304.286); h_SL2L164->SetBinContent(46,1195.714); h_SL2L164->SetBinContent(47,1080); h_SL2L164->SetBinContent(48,1031.429); h_SL2L164->SetBinContent(49,941.4286); h_SL2L164->SetBinContent(50,884.2857); h_SL2L164->SetBinContent(51,817.1429); h_SL2L164->SetBinContent(52,821.4286); h_SL2L164->SetBinContent(53,748.5715); h_SL2L164->SetBinContent(54,665.7143); h_SL2L164->SetBinContent(55,582.8572); h_SL2L164->SetBinContent(56,570); h_SL2L164->SetBinContent(57,8198.571); h_SL2L164->SetMaximum(92848.7); 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,598.5715); h_SL2L265->SetBinContent(2,741.4286); h_SL2L265->SetBinContent(3,832.8572); h_SL2L265->SetBinContent(4,840); h_SL2L265->SetBinContent(5,937.1429); h_SL2L265->SetBinContent(6,988.5715); h_SL2L265->SetBinContent(7,1014.286); h_SL2L265->SetBinContent(8,1158.571); h_SL2L265->SetBinContent(9,1218.571); h_SL2L265->SetBinContent(10,1291.429); h_SL2L265->SetBinContent(11,1404.286); h_SL2L265->SetBinContent(12,1418.571); h_SL2L265->SetBinContent(13,1538.571); h_SL2L265->SetBinContent(14,1647.143); h_SL2L265->SetBinContent(15,1701.429); h_SL2L265->SetBinContent(16,1924.286); h_SL2L265->SetBinContent(17,1931.429); h_SL2L265->SetBinContent(18,2107.143); h_SL2L265->SetBinContent(19,2341.429); h_SL2L265->SetBinContent(20,2495.714); h_SL2L265->SetBinContent(21,2424.286); h_SL2L265->SetBinContent(22,2532.857); h_SL2L265->SetBinContent(23,2852.857); h_SL2L265->SetBinContent(24,3065.714); h_SL2L265->SetBinContent(25,4194.286); h_SL2L265->SetBinContent(26,17564.29); h_SL2L265->SetBinContent(27,34380); h_SL2L265->SetBinContent(28,46141.43); h_SL2L265->SetBinContent(29,51450); h_SL2L265->SetBinContent(30,52595.71); h_SL2L265->SetBinContent(31,50151.43); h_SL2L265->SetBinContent(32,49342.86); h_SL2L265->SetBinContent(33,50478.57); h_SL2L265->SetBinContent(34,41192.86); h_SL2L265->SetBinContent(35,14562.86); h_SL2L265->SetBinContent(36,4600); h_SL2L265->SetBinContent(37,3054.286); h_SL2L265->SetBinContent(38,2670); h_SL2L265->SetBinContent(39,2630); h_SL2L265->SetBinContent(40,3775.714); h_SL2L265->SetBinContent(41,3040); h_SL2L265->SetBinContent(42,2712.857); h_SL2L265->SetBinContent(43,2050); h_SL2L265->SetBinContent(44,2401.429); h_SL2L265->SetBinContent(45,1315.714); h_SL2L265->SetBinContent(46,1225.714); h_SL2L265->SetBinContent(47,1134.286); h_SL2L265->SetBinContent(48,1024.286); h_SL2L265->SetBinContent(49,931.4286); h_SL2L265->SetBinContent(50,915.7143); h_SL2L265->SetBinContent(51,857.1429); h_SL2L265->SetBinContent(52,777.1429); h_SL2L265->SetBinContent(53,784.2857); h_SL2L265->SetBinContent(54,695.7143); h_SL2L265->SetBinContent(55,578.5715); h_SL2L265->SetBinContent(56,580); h_SL2L265->SetBinContent(57,582.8572); h_SL2L265->SetMaximum(80738.21); 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,715.7143); h_SL2L366->SetBinContent(2,748.5715); h_SL2L366->SetBinContent(3,862.8572); h_SL2L366->SetBinContent(4,887.1429); h_SL2L366->SetBinContent(5,954.2858); h_SL2L366->SetBinContent(6,1035.714); h_SL2L366->SetBinContent(7,1031.429); h_SL2L366->SetBinContent(8,1157.143); h_SL2L366->SetBinContent(9,1171.429); h_SL2L366->SetBinContent(10,1282.857); h_SL2L366->SetBinContent(11,1365.714); h_SL2L366->SetBinContent(12,1508.571); h_SL2L366->SetBinContent(13,1530); h_SL2L366->SetBinContent(14,1622.857); h_SL2L366->SetBinContent(15,1762.857); h_SL2L366->SetBinContent(16,1812.857); h_SL2L366->SetBinContent(17,2005.714); h_SL2L366->SetBinContent(18,2078.572); h_SL2L366->SetBinContent(19,2421.429); h_SL2L366->SetBinContent(20,2377.143); h_SL2L366->SetBinContent(21,2428.572); h_SL2L366->SetBinContent(22,2701.429); h_SL2L366->SetBinContent(23,2890); h_SL2L366->SetBinContent(24,3332.857); h_SL2L366->SetBinContent(25,8351.429); h_SL2L366->SetBinContent(26,26977.14); h_SL2L366->SetBinContent(27,41072.86); h_SL2L366->SetBinContent(28,49552.86); h_SL2L366->SetBinContent(29,52508.57); h_SL2L366->SetBinContent(30,51127.14); h_SL2L366->SetBinContent(31,49921.43); h_SL2L366->SetBinContent(32,50294.29); h_SL2L366->SetBinContent(33,48320); h_SL2L366->SetBinContent(34,27732.86); h_SL2L366->SetBinContent(35,7080); h_SL2L366->SetBinContent(36,3611.429); h_SL2L366->SetBinContent(37,2781.429); h_SL2L366->SetBinContent(38,2437.143); h_SL2L366->SetBinContent(39,2014.286); h_SL2L366->SetBinContent(40,2188.572); h_SL2L366->SetBinContent(41,1998.572); h_SL2L366->SetBinContent(42,1612.857); h_SL2L366->SetBinContent(43,1452.857); h_SL2L366->SetBinContent(44,1327.143); h_SL2L366->SetBinContent(45,1244.286); h_SL2L366->SetBinContent(46,1157.143); h_SL2L366->SetBinContent(47,970); h_SL2L366->SetBinContent(48,1025.714); h_SL2L366->SetBinContent(49,904.2857); h_SL2L366->SetBinContent(50,882.8572); h_SL2L366->SetBinContent(51,777.1429); h_SL2L366->SetBinContent(52,754.2857); h_SL2L366->SetBinContent(53,712.8572); h_SL2L366->SetBinContent(54,674.2857); h_SL2L366->SetBinContent(55,610); h_SL2L366->SetBinContent(56,558.5715); h_SL2L366->SetBinContent(57,601.4286); h_SL2L366->SetMaximum(80738.21); 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,732.8572); h_SL2L467->SetBinContent(3,847.1429); h_SL2L467->SetBinContent(4,787.1429); h_SL2L467->SetBinContent(5,920); h_SL2L467->SetBinContent(6,951.4286); h_SL2L467->SetBinContent(7,995.7143); h_SL2L467->SetBinContent(8,1075.714); h_SL2L467->SetBinContent(9,1144.286); h_SL2L467->SetBinContent(10,1218.571); h_SL2L467->SetBinContent(11,1337.143); h_SL2L467->SetBinContent(12,1358.571); h_SL2L467->SetBinContent(13,1488.571); h_SL2L467->SetBinContent(14,1621.429); h_SL2L467->SetBinContent(15,1575.714); h_SL2L467->SetBinContent(16,1801.429); h_SL2L467->SetBinContent(17,1832.857); h_SL2L467->SetBinContent(18,1940); h_SL2L467->SetBinContent(19,2317.143); h_SL2L467->SetBinContent(20,2392.857); h_SL2L467->SetBinContent(21,2358.572); h_SL2L467->SetBinContent(22,2460); h_SL2L467->SetBinContent(23,2737.143); h_SL2L467->SetBinContent(24,2901.429); h_SL2L467->SetBinContent(25,4041.429); h_SL2L467->SetBinContent(26,17425.71); h_SL2L467->SetBinContent(27,34565.71); h_SL2L467->SetBinContent(28,46074.29); h_SL2L467->SetBinContent(29,51397.14); h_SL2L467->SetBinContent(30,53184.29); h_SL2L467->SetBinContent(31,50202.86); h_SL2L467->SetBinContent(32,49617.14); h_SL2L467->SetBinContent(33,50567.14); h_SL2L467->SetBinContent(34,41212.86); h_SL2L467->SetBinContent(35,14595.71); h_SL2L467->SetBinContent(36,4518.572); h_SL2L467->SetBinContent(37,3010); h_SL2L467->SetBinContent(38,2467.143); h_SL2L467->SetBinContent(39,2262.857); h_SL2L467->SetBinContent(40,1818.571); h_SL2L467->SetBinContent(41,1590); h_SL2L467->SetBinContent(42,1952.857); h_SL2L467->SetBinContent(43,1497.143); h_SL2L467->SetBinContent(44,1295.714); h_SL2L467->SetBinContent(45,1258.571); h_SL2L467->SetBinContent(46,1230); h_SL2L467->SetBinContent(47,1107.143); h_SL2L467->SetBinContent(48,928.5715); h_SL2L467->SetBinContent(49,895.7143); h_SL2L467->SetBinContent(50,865.7143); h_SL2L467->SetBinContent(51,818.5715); h_SL2L467->SetBinContent(52,737.1429); h_SL2L467->SetBinContent(53,758.5715); h_SL2L467->SetBinContent(54,658.5715); h_SL2L467->SetBinContent(55,595.7143); h_SL2L467->SetBinContent(56,584.2857); h_SL2L467->SetBinContent(57,551.4286); h_SL2L467->SetMaximum(80738.21); 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 6677"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }