void RatesPerCell_Removing_noisy_cells_run_6842_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:08:02 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-12838.6,67.5,115547.4); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6842",60,0,60); h_SL2L164->SetBinContent(1,658.1633); h_SL2L164->SetBinContent(2,678.5714); h_SL2L164->SetBinContent(3,918.3673); h_SL2L164->SetBinContent(4,790.8163); h_SL2L164->SetBinContent(5,918.3673); h_SL2L164->SetBinContent(6,994.8979); h_SL2L164->SetBinContent(7,1030.612); h_SL2L164->SetBinContent(8,1117.347); h_SL2L164->SetBinContent(9,1239.796); h_SL2L164->SetBinContent(10,1260.204); h_SL2L164->SetBinContent(11,1423.469); h_SL2L164->SetBinContent(12,1346.939); h_SL2L164->SetBinContent(13,1642.857); h_SL2L164->SetBinContent(14,1734.694); h_SL2L164->SetBinContent(15,1918.367); h_SL2L164->SetBinContent(16,1765.306); h_SL2L164->SetBinContent(17,1984.694); h_SL2L164->SetBinContent(18,2168.367); h_SL2L164->SetBinContent(19,2163.265); h_SL2L164->SetBinContent(20,2234.694); h_SL2L164->SetBinContent(21,2403.061); h_SL2L164->SetBinContent(22,2647.959); h_SL2L164->SetBinContent(23,3051.02); h_SL2L164->SetBinContent(24,3306.122); h_SL2L164->SetBinContent(25,8224.489); h_SL2L164->SetBinContent(26,26826.53); h_SL2L164->SetBinContent(27,41448.98); h_SL2L164->SetBinContent(28,49229.59); h_SL2L164->SetBinContent(29,52331.63); h_SL2L164->SetBinContent(30,49801.02); h_SL2L164->SetBinContent(31,48301.02); h_SL2L164->SetBinContent(32,47301.02); h_SL2L164->SetBinContent(33,45852.04); h_SL2L164->SetBinContent(34,26474.49); h_SL2L164->SetBinContent(36,3076.531); h_SL2L164->SetBinContent(37,3387.755); h_SL2L164->SetBinContent(38,2561.224); h_SL2L164->SetBinContent(39,2500); h_SL2L164->SetBinContent(40,34229.59); h_SL2L164->SetBinContent(41,77663.27); h_SL2L164->SetBinContent(42,4433.673); h_SL2L164->SetBinContent(43,4591.837); h_SL2L164->SetBinContent(44,4653.061); h_SL2L164->SetBinContent(45,1214.286); h_SL2L164->SetBinContent(46,1025.51); h_SL2L164->SetBinContent(47,918.3673); h_SL2L164->SetBinContent(48,969.3878); h_SL2L164->SetBinContent(49,897.9592); h_SL2L164->SetBinContent(50,852.0408); h_SL2L164->SetBinContent(51,683.6735); h_SL2L164->SetBinContent(52,877.551); h_SL2L164->SetBinContent(53,688.7755); h_SL2L164->SetBinContent(54,545.9183); h_SL2L164->SetBinContent(55,637.7551); h_SL2L164->SetBinContent(56,520.4081); h_SL2L164->SetBinContent(57,438.7755); h_SL2L164->SetMaximum(102708.8); 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,627.551); h_SL2L265->SetBinContent(2,607.1428); h_SL2L265->SetBinContent(3,826.5306); h_SL2L265->SetBinContent(4,979.5918); h_SL2L265->SetBinContent(5,683.6735); h_SL2L265->SetBinContent(6,954.0816); h_SL2L265->SetBinContent(7,1030.612); h_SL2L265->SetBinContent(8,1030.612); h_SL2L265->SetBinContent(9,1250); h_SL2L265->SetBinContent(10,1306.122); h_SL2L265->SetBinContent(11,1566.327); h_SL2L265->SetBinContent(12,1224.49); h_SL2L265->SetBinContent(13,1397.959); h_SL2L265->SetBinContent(14,1602.041); h_SL2L265->SetBinContent(15,1704.082); h_SL2L265->SetBinContent(16,1801.02); h_SL2L265->SetBinContent(17,1928.571); h_SL2L265->SetBinContent(18,1979.592); h_SL2L265->SetBinContent(19,2045.918); h_SL2L265->SetBinContent(20,2147.959); h_SL2L265->SetBinContent(21,2301.021); h_SL2L265->SetBinContent(22,2540.816); h_SL2L265->SetBinContent(23,2596.939); h_SL2L265->SetBinContent(24,3153.061); h_SL2L265->SetBinContent(25,4010.204); h_SL2L265->SetBinContent(26,17045.92); h_SL2L265->SetBinContent(27,35719.39); h_SL2L265->SetBinContent(28,44734.7); h_SL2L265->SetBinContent(29,51443.88); h_SL2L265->SetBinContent(30,51086.73); h_SL2L265->SetBinContent(31,48846.94); h_SL2L265->SetBinContent(32,47515.3); h_SL2L265->SetBinContent(33,47862.25); h_SL2L265->SetBinContent(34,39612.25); h_SL2L265->SetBinContent(35,13852.04); h_SL2L265->SetBinContent(36,4510.204); h_SL2L265->SetBinContent(37,3051.02); h_SL2L265->SetBinContent(38,2321.428); h_SL2L265->SetBinContent(39,2372.449); h_SL2L265->SetBinContent(40,2561.224); h_SL2L265->SetBinContent(41,2255.102); h_SL2L265->SetBinContent(42,1836.735); h_SL2L265->SetBinContent(43,1443.878); h_SL2L265->SetBinContent(44,1464.286); h_SL2L265->SetBinContent(45,1219.388); h_SL2L265->SetBinContent(46,1158.163); h_SL2L265->SetBinContent(47,923.4694); h_SL2L265->SetBinContent(48,841.8367); h_SL2L265->SetBinContent(49,831.6326); h_SL2L265->SetBinContent(50,836.7347); h_SL2L265->SetBinContent(51,724.4898); h_SL2L265->SetBinContent(52,739.7959); h_SL2L265->SetBinContent(53,821.4286); h_SL2L265->SetBinContent(54,632.6531); h_SL2L265->SetBinContent(55,561.2245); h_SL2L265->SetBinContent(56,556.1224); h_SL2L265->SetBinContent(57,556.1224); h_SL2L265->SetMaximum(89312.76); 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,612.2449); h_SL2L366->SetBinContent(2,642.8571); h_SL2L366->SetBinContent(3,903.0612); h_SL2L366->SetBinContent(4,806.1224); h_SL2L366->SetBinContent(5,852.0408); h_SL2L366->SetBinContent(6,959.1837); h_SL2L366->SetBinContent(7,1071.429); h_SL2L366->SetBinContent(8,1107.143); h_SL2L366->SetBinContent(9,1224.49); h_SL2L366->SetBinContent(10,1244.898); h_SL2L366->SetBinContent(11,1372.449); h_SL2L366->SetBinContent(12,1336.735); h_SL2L366->SetBinContent(13,1617.347); h_SL2L366->SetBinContent(14,1653.061); h_SL2L366->SetBinContent(15,1704.082); h_SL2L366->SetBinContent(16,1729.592); h_SL2L366->SetBinContent(17,1795.918); h_SL2L366->SetBinContent(18,2030.612); h_SL2L366->SetBinContent(19,2025.51); h_SL2L366->SetBinContent(20,2112.245); h_SL2L366->SetBinContent(21,2301.021); h_SL2L366->SetBinContent(22,2545.918); h_SL2L366->SetBinContent(23,2826.531); h_SL2L366->SetBinContent(24,3132.653); h_SL2L366->SetBinContent(25,7918.367); h_SL2L366->SetBinContent(26,26938.78); h_SL2L366->SetBinContent(27,41076.53); h_SL2L366->SetBinContent(28,49234.7); h_SL2L366->SetBinContent(29,52056.12); h_SL2L366->SetBinContent(30,49724.49); h_SL2L366->SetBinContent(31,48265.3); h_SL2L366->SetBinContent(32,47500); h_SL2L366->SetBinContent(33,45989.8); h_SL2L366->SetBinContent(34,26658.16); h_SL2L366->SetBinContent(35,6933.673); h_SL2L366->SetBinContent(36,3260.204); h_SL2L366->SetBinContent(37,2632.653); h_SL2L366->SetBinContent(38,2214.286); h_SL2L366->SetBinContent(39,2025.51); h_SL2L366->SetBinContent(40,2005.102); h_SL2L366->SetBinContent(41,1918.367); h_SL2L366->SetBinContent(42,1377.551); h_SL2L366->SetBinContent(43,1433.673); h_SL2L366->SetBinContent(44,1107.143); h_SL2L366->SetBinContent(45,1142.857); h_SL2L366->SetBinContent(46,923.4694); h_SL2L366->SetBinContent(47,897.9592); h_SL2L366->SetBinContent(48,913.2653); h_SL2L366->SetBinContent(49,887.7551); h_SL2L366->SetBinContent(50,765.3061); h_SL2L366->SetBinContent(51,622.449); h_SL2L366->SetBinContent(52,836.7347); h_SL2L366->SetBinContent(53,678.5714); h_SL2L366->SetBinContent(54,581.6326); h_SL2L366->SetBinContent(55,627.551); h_SL2L366->SetBinContent(56,545.9183); h_SL2L366->SetBinContent(57,469.3878); h_SL2L366->SetMaximum(89312.76); 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,653.0612); h_SL2L467->SetBinContent(3,826.5306); h_SL2L467->SetBinContent(4,877.551); h_SL2L467->SetBinContent(5,704.0816); h_SL2L467->SetBinContent(6,964.2857); h_SL2L467->SetBinContent(7,974.4898); h_SL2L467->SetBinContent(8,979.5918); h_SL2L467->SetBinContent(9,1198.98); h_SL2L467->SetBinContent(10,1117.347); h_SL2L467->SetBinContent(11,1362.245); h_SL2L467->SetBinContent(12,1198.98); h_SL2L467->SetBinContent(13,1367.347); h_SL2L467->SetBinContent(14,1540.816); h_SL2L467->SetBinContent(15,1647.959); h_SL2L467->SetBinContent(16,1642.857); h_SL2L467->SetBinContent(17,1826.531); h_SL2L467->SetBinContent(18,1836.735); h_SL2L467->SetBinContent(19,1852.041); h_SL2L467->SetBinContent(20,2071.428); h_SL2L467->SetBinContent(21,2275.51); h_SL2L467->SetBinContent(22,2387.755); h_SL2L467->SetBinContent(23,2510.204); h_SL2L467->SetBinContent(24,3005.102); h_SL2L467->SetBinContent(25,3755.102); h_SL2L467->SetBinContent(26,17035.71); h_SL2L467->SetBinContent(27,35663.27); h_SL2L467->SetBinContent(28,44642.86); h_SL2L467->SetBinContent(29,51362.25); h_SL2L467->SetBinContent(30,51193.88); h_SL2L467->SetBinContent(31,48658.16); h_SL2L467->SetBinContent(32,47637.75); h_SL2L467->SetBinContent(33,47494.9); h_SL2L467->SetBinContent(34,39505.1); h_SL2L467->SetBinContent(35,13836.73); h_SL2L467->SetBinContent(36,4341.837); h_SL2L467->SetBinContent(37,3102.041); h_SL2L467->SetBinContent(38,2153.061); h_SL2L467->SetBinContent(39,2137.755); h_SL2L467->SetBinContent(40,1780.612); h_SL2L467->SetBinContent(41,1739.796); h_SL2L467->SetBinContent(42,1704.082); h_SL2L467->SetBinContent(43,1423.469); h_SL2L467->SetBinContent(44,1285.714); h_SL2L467->SetBinContent(45,1127.551); h_SL2L467->SetBinContent(46,1066.327); h_SL2L467->SetBinContent(47,969.3878); h_SL2L467->SetBinContent(48,831.6326); h_SL2L467->SetBinContent(49,831.6326); h_SL2L467->SetBinContent(50,836.7347); h_SL2L467->SetBinContent(51,729.5919); h_SL2L467->SetBinContent(52,714.2857); h_SL2L467->SetBinContent(53,714.2857); h_SL2L467->SetBinContent(54,632.6531); h_SL2L467->SetBinContent(55,576.5306); h_SL2L467->SetBinContent(56,566.3265); h_SL2L467->SetBinContent(57,561.2245); h_SL2L467->SetMaximum(89312.76); 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 6842"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }