void RatesPerCell_Removing_noisy_cells_run_6617_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:15:44 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-10066.81,67.5,90601.31); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6617",60,0,60); h_SL2L164->SetBinContent(1,304.2857); h_SL2L164->SetBinContent(2,355.7143); h_SL2L164->SetBinContent(3,508.5714); h_SL2L164->SetBinContent(4,494.2857); h_SL2L164->SetBinContent(5,502.8571); h_SL2L164->SetBinContent(6,557.1429); h_SL2L164->SetBinContent(7,584.2857); h_SL2L164->SetBinContent(8,642.8572); h_SL2L164->SetBinContent(9,735.7143); h_SL2L164->SetBinContent(10,790); h_SL2L164->SetBinContent(11,895.7143); h_SL2L164->SetBinContent(12,982.8572); h_SL2L164->SetBinContent(13,1064.286); h_SL2L164->SetBinContent(14,1142.857); h_SL2L164->SetBinContent(15,1158.571); h_SL2L164->SetBinContent(16,1275.714); h_SL2L164->SetBinContent(17,1495.714); h_SL2L164->SetBinContent(18,1577.143); h_SL2L164->SetBinContent(19,1915.714); h_SL2L164->SetBinContent(20,1834.286); h_SL2L164->SetBinContent(21,1970); h_SL2L164->SetBinContent(22,2262.857); h_SL2L164->SetBinContent(23,2565.714); h_SL2L164->SetBinContent(24,3155.714); h_SL2L164->SetBinContent(25,8387.143); h_SL2L164->SetBinContent(26,27955.71); h_SL2L164->SetBinContent(27,46021.43); h_SL2L164->SetBinContent(28,57281.43); h_SL2L164->SetBinContent(29,60895.71); h_SL2L164->SetBinContent(30,56617.14); h_SL2L164->SetBinContent(31,48551.43); h_SL2L164->SetBinContent(32,44071.43); h_SL2L164->SetBinContent(33,38684.29); h_SL2L164->SetBinContent(34,18945.71); h_SL2L164->SetBinContent(36,2887.143); h_SL2L164->SetBinContent(37,4115.714); h_SL2L164->SetBinContent(38,2688.572); h_SL2L164->SetBinContent(39,3560); h_SL2L164->SetBinContent(40,49852.86); h_SL2L164->SetBinContent(41,56360); h_SL2L164->SetBinContent(42,6375.714); h_SL2L164->SetBinContent(43,6441.429); h_SL2L164->SetBinContent(44,6432.857); h_SL2L164->SetBinContent(45,730); h_SL2L164->SetBinContent(46,738.5715); h_SL2L164->SetBinContent(47,585.7143); h_SL2L164->SetBinContent(48,520); h_SL2L164->SetBinContent(49,471.4286); h_SL2L164->SetBinContent(50,394.2857); h_SL2L164->SetBinContent(51,420); h_SL2L164->SetBinContent(52,324.2857); h_SL2L164->SetBinContent(53,315.7143); h_SL2L164->SetBinContent(54,330); h_SL2L164->SetBinContent(55,300); h_SL2L164->SetBinContent(56,184.2857); h_SL2L164->SetBinContent(57,6787.143); h_SL2L164->SetMaximum(80534.5); 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,277.1429); h_SL2L265->SetBinContent(2,330); h_SL2L265->SetBinContent(3,398.5714); h_SL2L265->SetBinContent(4,497.1429); h_SL2L265->SetBinContent(5,471.4286); h_SL2L265->SetBinContent(6,565.7143); h_SL2L265->SetBinContent(7,570); h_SL2L265->SetBinContent(8,608.5715); h_SL2L265->SetBinContent(9,700); h_SL2L265->SetBinContent(10,711.4286); h_SL2L265->SetBinContent(11,788.5715); h_SL2L265->SetBinContent(12,898.5715); h_SL2L265->SetBinContent(13,988.5715); h_SL2L265->SetBinContent(14,1058.571); h_SL2L265->SetBinContent(15,1091.429); h_SL2L265->SetBinContent(16,1225.714); h_SL2L265->SetBinContent(17,1344.286); h_SL2L265->SetBinContent(18,1432.857); h_SL2L265->SetBinContent(19,1698.571); h_SL2L265->SetBinContent(20,1817.143); h_SL2L265->SetBinContent(21,1902.857); h_SL2L265->SetBinContent(22,2145.714); h_SL2L265->SetBinContent(23,2338.572); h_SL2L265->SetBinContent(24,2751.429); h_SL2L265->SetBinContent(25,3827.143); h_SL2L265->SetBinContent(26,17775.71); h_SL2L265->SetBinContent(27,37024.29); h_SL2L265->SetBinContent(28,52612.86); h_SL2L265->SetBinContent(29,60078.57); h_SL2L265->SetBinContent(30,58897.14); h_SL2L265->SetBinContent(31,52480); h_SL2L265->SetBinContent(32,45617.14); h_SL2L265->SetBinContent(33,42572.86); h_SL2L265->SetBinContent(34,30624.29); h_SL2L265->SetBinContent(35,9800); h_SL2L265->SetBinContent(36,3672.857); h_SL2L265->SetBinContent(37,2548.572); h_SL2L265->SetBinContent(38,1905.714); h_SL2L265->SetBinContent(39,1990); h_SL2L265->SetBinContent(40,3937.143); h_SL2L265->SetBinContent(41,3208.572); h_SL2L265->SetBinContent(42,2080); h_SL2L265->SetBinContent(43,1204.286); h_SL2L265->SetBinContent(44,1632.857); h_SL2L265->SetBinContent(45,744.2857); h_SL2L265->SetBinContent(46,732.8572); h_SL2L265->SetBinContent(47,618.5715); h_SL2L265->SetBinContent(48,535.7143); h_SL2L265->SetBinContent(49,540); h_SL2L265->SetBinContent(50,397.1429); h_SL2L265->SetBinContent(51,428.5714); h_SL2L265->SetBinContent(52,342.8571); h_SL2L265->SetBinContent(53,332.8571); h_SL2L265->SetBinContent(54,330); h_SL2L265->SetBinContent(55,282.8571); h_SL2L265->SetBinContent(56,268.5714); h_SL2L265->SetBinContent(57,217.1429); h_SL2L265->SetMaximum(70030.07); 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,431.4286); h_SL2L366->SetBinContent(2,360); h_SL2L366->SetBinContent(3,432.8571); h_SL2L366->SetBinContent(4,464.2857); h_SL2L366->SetBinContent(5,452.8571); h_SL2L366->SetBinContent(6,561.4286); h_SL2L366->SetBinContent(7,551.4286); h_SL2L366->SetBinContent(8,668.5715); h_SL2L366->SetBinContent(9,672.8572); h_SL2L366->SetBinContent(10,722.8572); h_SL2L366->SetBinContent(11,837.1429); h_SL2L366->SetBinContent(12,880); h_SL2L366->SetBinContent(13,954.2858); h_SL2L366->SetBinContent(14,1118.571); h_SL2L366->SetBinContent(15,1080); h_SL2L366->SetBinContent(16,1252.857); h_SL2L366->SetBinContent(17,1410); h_SL2L366->SetBinContent(18,1505.714); h_SL2L366->SetBinContent(19,1845.714); h_SL2L366->SetBinContent(20,1762.857); h_SL2L366->SetBinContent(21,1992.857); h_SL2L366->SetBinContent(22,2197.143); h_SL2L366->SetBinContent(23,2475.714); h_SL2L366->SetBinContent(24,2971.429); h_SL2L366->SetBinContent(25,8375.715); h_SL2L366->SetBinContent(26,28097.14); h_SL2L366->SetBinContent(27,45688.57); h_SL2L366->SetBinContent(28,56891.43); h_SL2L366->SetBinContent(29,60528.57); h_SL2L366->SetBinContent(30,56405.71); h_SL2L366->SetBinContent(31,48408.57); h_SL2L366->SetBinContent(32,44085.71); h_SL2L366->SetBinContent(33,38730); h_SL2L366->SetBinContent(34,18977.14); h_SL2L366->SetBinContent(35,5235.714); h_SL2L366->SetBinContent(36,2925.714); h_SL2L366->SetBinContent(37,2234.286); h_SL2L366->SetBinContent(38,1595.714); h_SL2L366->SetBinContent(39,1454.286); h_SL2L366->SetBinContent(40,1778.571); h_SL2L366->SetBinContent(41,1440); h_SL2L366->SetBinContent(42,892.8572); h_SL2L366->SetBinContent(43,798.5715); h_SL2L366->SetBinContent(44,770); h_SL2L366->SetBinContent(45,738.5715); h_SL2L366->SetBinContent(46,672.8572); h_SL2L366->SetBinContent(47,581.4286); h_SL2L366->SetBinContent(48,481.4286); h_SL2L366->SetBinContent(49,481.4286); h_SL2L366->SetBinContent(50,395.7143); h_SL2L366->SetBinContent(51,388.5714); h_SL2L366->SetBinContent(52,325.7143); h_SL2L366->SetBinContent(53,318.5714); h_SL2L366->SetBinContent(54,314.2857); h_SL2L366->SetBinContent(55,268.5714); h_SL2L366->SetBinContent(56,200); h_SL2L366->SetBinContent(57,260); h_SL2L366->SetMaximum(70030.07); 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,310); h_SL2L467->SetBinContent(3,380); h_SL2L467->SetBinContent(4,445.7143); h_SL2L467->SetBinContent(5,441.4286); h_SL2L467->SetBinContent(6,537.1429); h_SL2L467->SetBinContent(7,510); h_SL2L467->SetBinContent(8,541.4286); h_SL2L467->SetBinContent(9,651.4286); h_SL2L467->SetBinContent(10,667.1429); h_SL2L467->SetBinContent(11,767.1429); h_SL2L467->SetBinContent(12,831.4286); h_SL2L467->SetBinContent(13,871.4286); h_SL2L467->SetBinContent(14,905.7143); h_SL2L467->SetBinContent(15,1071.429); h_SL2L467->SetBinContent(16,1095.714); h_SL2L467->SetBinContent(17,1297.143); h_SL2L467->SetBinContent(18,1275.714); h_SL2L467->SetBinContent(19,1605.714); h_SL2L467->SetBinContent(20,1737.143); h_SL2L467->SetBinContent(21,1830); h_SL2L467->SetBinContent(22,2100); h_SL2L467->SetBinContent(23,2250); h_SL2L467->SetBinContent(24,2651.429); h_SL2L467->SetBinContent(25,3771.429); h_SL2L467->SetBinContent(26,17620); h_SL2L467->SetBinContent(27,37098.57); h_SL2L467->SetBinContent(28,52382.86); h_SL2L467->SetBinContent(29,60135.71); h_SL2L467->SetBinContent(30,59297.14); h_SL2L467->SetBinContent(31,52438.57); h_SL2L467->SetBinContent(32,45807.14); h_SL2L467->SetBinContent(33,42411.43); h_SL2L467->SetBinContent(34,30521.43); h_SL2L467->SetBinContent(35,9752.857); h_SL2L467->SetBinContent(36,3478.572); h_SL2L467->SetBinContent(37,2465.714); h_SL2L467->SetBinContent(38,1840); h_SL2L467->SetBinContent(39,1427.143); h_SL2L467->SetBinContent(40,1265.714); h_SL2L467->SetBinContent(41,1117.143); h_SL2L467->SetBinContent(42,1292.857); h_SL2L467->SetBinContent(43,800); h_SL2L467->SetBinContent(44,720); h_SL2L467->SetBinContent(45,670); h_SL2L467->SetBinContent(46,645.7143); h_SL2L467->SetBinContent(47,618.5715); h_SL2L467->SetBinContent(48,474.2857); h_SL2L467->SetBinContent(49,481.4286); h_SL2L467->SetBinContent(50,384.2857); h_SL2L467->SetBinContent(51,352.8571); h_SL2L467->SetBinContent(52,334.2857); h_SL2L467->SetBinContent(53,325.7143); h_SL2L467->SetBinContent(54,307.1429); h_SL2L467->SetBinContent(55,267.1429); h_SL2L467->SetBinContent(56,267.1429); h_SL2L467->SetBinContent(57,195.7143); h_SL2L467->SetMaximum(70030.07); 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 6617"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }