void RatesPerCell_Removing_noisy_cells_run_4992_SL3() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:11:01 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11712.75,67.5,105414.8); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL3L168 = new TH1D("h_SL3L168","SL3, run 4992",60,0,60); h_SL3L168->SetBinContent(1,246.4286); h_SL3L168->SetBinContent(2,242.1429); h_SL3L168->SetBinContent(4,291.4286); h_SL3L168->SetBinContent(5,299.2857); h_SL3L168->SetBinContent(6,303.5714); h_SL3L168->SetBinContent(7,312.8571); h_SL3L168->SetBinContent(8,336.4286); h_SL3L168->SetBinContent(9,345.7143); h_SL3L168->SetBinContent(10,380.7143); h_SL3L168->SetBinContent(11,407.8571); h_SL3L168->SetBinContent(12,442.1429); h_SL3L168->SetBinContent(13,520.7143); h_SL3L168->SetBinContent(14,520.7143); h_SL3L168->SetBinContent(15,590); h_SL3L168->SetBinContent(16,605); h_SL3L168->SetBinContent(17,682.1429); h_SL3L168->SetBinContent(18,786.4286); h_SL3L168->SetBinContent(19,912.1429); h_SL3L168->SetBinContent(20,948.5715); h_SL3L168->SetBinContent(21,1097.143); h_SL3L168->SetBinContent(22,1235.714); h_SL3L168->SetBinContent(23,1392.857); h_SL3L168->SetBinContent(24,1639.286); h_SL3L168->SetBinContent(25,1822.857); h_SL3L168->SetBinContent(26,2078.572); h_SL3L168->SetBinContent(27,2319.286); h_SL3L168->SetBinContent(28,2900.714); h_SL3L168->SetBinContent(29,3302.857); h_SL3L168->SetBinContent(30,3830.714); h_SL3L168->SetBinContent(31,4352.857); h_SL3L168->SetBinContent(32,7015); h_SL3L168->SetBinContent(33,13934.29); h_SL3L168->SetBinContent(34,65452.86); h_SL3L168->SetBinContent(35,67214.29); h_SL3L168->SetBinContent(36,64623.57); h_SL3L168->SetBinContent(37,63440); h_SL3L168->SetBinContent(38,57826.43); h_SL3L168->SetBinContent(39,46008.57); h_SL3L168->SetBinContent(40,26555.71); h_SL3L168->SetBinContent(41,6639.286); h_SL3L168->SetBinContent(42,3975.714); h_SL3L168->SetBinContent(43,3245); h_SL3L168->SetBinContent(44,2864.286); h_SL3L168->SetBinContent(45,2495); h_SL3L168->SetBinContent(46,2217.143); h_SL3L168->SetBinContent(47,1952.143); h_SL3L168->SetBinContent(48,1823.571); h_SL3L168->SetBinContent(49,37214.29); h_SL3L168->SetBinContent(50,1592.857); h_SL3L168->SetBinContent(51,1562.857); h_SL3L168->SetBinContent(52,1497.857); h_SL3L168->SetBinContent(53,1468.571); h_SL3L168->SetBinContent(54,1318.571); h_SL3L168->SetBinContent(55,1311.429); h_SL3L168->SetBinContent(56,1220); h_SL3L168->SetBinContent(57,1225.714); h_SL3L168->SetBinContent(58,1097.857); h_SL3L168->SetBinContent(59,1115.714); h_SL3L168->SetMaximum(93702); h_SL3L168->SetEntries(60); h_SL3L168->SetDirectory(0); h_SL3L168->SetStats(0); h_SL3L168->SetLineWidth(2); h_SL3L168->GetXaxis()->SetTitle("Cell"); h_SL3L168->GetXaxis()->SetLabelFont(42); h_SL3L168->GetXaxis()->SetLabelSize(0.035); h_SL3L168->GetXaxis()->SetTitleSize(0.035); h_SL3L168->GetXaxis()->SetTitleFont(42); h_SL3L168->GetYaxis()->SetTitle("Hz"); h_SL3L168->GetYaxis()->SetLabelFont(42); h_SL3L168->GetYaxis()->SetLabelSize(0.035); h_SL3L168->GetYaxis()->SetTitleSize(0.035); h_SL3L168->GetYaxis()->SetTitleOffset(1.45); h_SL3L168->GetYaxis()->SetTitleFont(42); h_SL3L168->GetZaxis()->SetLabelFont(42); h_SL3L168->GetZaxis()->SetLabelSize(0.035); h_SL3L168->GetZaxis()->SetTitleSize(0.035); h_SL3L168->GetZaxis()->SetTitleFont(42); h_SL3L168->Draw(""); TH1D *h_SL3L269 = new TH1D("h_SL3L269","",60,0,60); h_SL3L269->SetBinContent(1,246.4286); h_SL3L269->SetBinContent(2,237.1429); h_SL3L269->SetBinContent(4,283.5714); h_SL3L269->SetBinContent(5,279.2857); h_SL3L269->SetBinContent(6,304.2857); h_SL3L269->SetBinContent(7,305.7143); h_SL3L269->SetBinContent(8,312.8571); h_SL3L269->SetBinContent(9,330); h_SL3L269->SetBinContent(10,365); h_SL3L269->SetBinContent(11,383.5714); h_SL3L269->SetBinContent(12,429.2857); h_SL3L269->SetBinContent(13,462.1429); h_SL3L269->SetBinContent(14,497.8571); h_SL3L269->SetBinContent(15,562.8572); h_SL3L269->SetBinContent(16,602.8572); h_SL3L269->SetBinContent(17,618.5715); h_SL3L269->SetBinContent(18,730.7143); h_SL3L269->SetBinContent(19,828.5715); h_SL3L269->SetBinContent(20,861.4286); h_SL3L269->SetBinContent(21,1037.143); h_SL3L269->SetBinContent(22,1091.429); h_SL3L269->SetBinContent(23,1299.286); h_SL3L269->SetBinContent(24,1467.857); h_SL3L269->SetBinContent(25,1766.429); h_SL3L269->SetBinContent(26,1906.429); h_SL3L269->SetBinContent(27,2155); h_SL3L269->SetBinContent(28,2515.714); h_SL3L269->SetBinContent(29,3045); h_SL3L269->SetBinContent(30,3525); h_SL3L269->SetBinContent(31,3996.429); h_SL3L269->SetBinContent(32,4872.857); h_SL3L269->SetBinContent(33,9685); h_SL3L269->SetBinContent(34,37652.14); h_SL3L269->SetBinContent(35,70414.29); h_SL3L269->SetBinContent(36,65156.43); h_SL3L269->SetBinContent(37,64111.43); h_SL3L269->SetBinContent(38,61434.29); h_SL3L269->SetBinContent(39,52594.29); h_SL3L269->SetBinContent(40,38860); h_SL3L269->SetBinContent(41,12217.14); h_SL3L269->SetBinContent(42,5429.286); h_SL3L269->SetBinContent(43,3433.572); h_SL3L269->SetBinContent(44,2990); h_SL3L269->SetBinContent(45,2575.714); h_SL3L269->SetBinContent(46,2271.429); h_SL3L269->SetBinContent(47,2069.286); h_SL3L269->SetBinContent(48,1833.572); h_SL3L269->SetBinContent(49,1731.429); h_SL3L269->SetBinContent(50,1560.714); h_SL3L269->SetBinContent(51,1520.714); h_SL3L269->SetBinContent(52,1511.429); h_SL3L269->SetBinContent(53,1450.714); h_SL3L269->SetBinContent(54,1385.714); h_SL3L269->SetBinContent(55,1307.857); h_SL3L269->SetBinContent(56,1222.143); h_SL3L269->SetBinContent(57,1222.857); h_SL3L269->SetBinContent(58,1152.143); h_SL3L269->SetBinContent(59,1087.857); h_SL3L269->SetMaximum(81480.79); h_SL3L269->SetEntries(60); h_SL3L269->SetDirectory(0); h_SL3L269->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL3L269->SetLineColor(ci); h_SL3L269->SetLineWidth(2); h_SL3L269->GetXaxis()->SetTitle("Cell"); h_SL3L269->GetXaxis()->SetLabelFont(42); h_SL3L269->GetXaxis()->SetLabelSize(0.035); h_SL3L269->GetXaxis()->SetTitleSize(0.035); h_SL3L269->GetXaxis()->SetTitleFont(42); h_SL3L269->GetYaxis()->SetTitle("Hz"); h_SL3L269->GetYaxis()->SetLabelFont(42); h_SL3L269->GetYaxis()->SetLabelSize(0.035); h_SL3L269->GetYaxis()->SetTitleSize(0.035); h_SL3L269->GetYaxis()->SetTitleOffset(1.45); h_SL3L269->GetYaxis()->SetTitleFont(42); h_SL3L269->GetZaxis()->SetLabelFont(42); h_SL3L269->GetZaxis()->SetLabelSize(0.035); h_SL3L269->GetZaxis()->SetTitleSize(0.035); h_SL3L269->GetZaxis()->SetTitleFont(42); h_SL3L269->Draw("same"); TH1D *h_SL3L370 = new TH1D("h_SL3L370","",60,0,60); h_SL3L370->SetBinContent(1,265); h_SL3L370->SetBinContent(2,255.7143); h_SL3L370->SetBinContent(3,251.4286); h_SL3L370->SetBinContent(4,288.5714); h_SL3L370->SetBinContent(5,302.1429); h_SL3L370->SetBinContent(6,299.2857); h_SL3L370->SetBinContent(7,315); h_SL3L370->SetBinContent(8,285.7143); h_SL3L370->SetBinContent(9,318.5714); h_SL3L370->SetBinContent(10,382.1429); h_SL3L370->SetBinContent(11,405.7143); h_SL3L370->SetBinContent(12,435); h_SL3L370->SetBinContent(13,525.7143); h_SL3L370->SetBinContent(14,495.7143); h_SL3L370->SetBinContent(15,604.2857); h_SL3L370->SetBinContent(16,578.5715); h_SL3L370->SetBinContent(17,647.8572); h_SL3L370->SetBinContent(18,742.8572); h_SL3L370->SetBinContent(19,858.5715); h_SL3L370->SetBinContent(20,919.2858); h_SL3L370->SetBinContent(21,1045.714); h_SL3L370->SetBinContent(22,1219.286); h_SL3L370->SetBinContent(23,1328.571); h_SL3L370->SetBinContent(24,1588.571); h_SL3L370->SetBinContent(25,1795.714); h_SL3L370->SetBinContent(26,2045.714); h_SL3L370->SetBinContent(27,2270); h_SL3L370->SetBinContent(28,2778.572); h_SL3L370->SetBinContent(29,3182.143); h_SL3L370->SetBinContent(30,3696.429); h_SL3L370->SetBinContent(31,4275.714); h_SL3L370->SetBinContent(32,6964.286); h_SL3L370->SetBinContent(33,13815.71); h_SL3L370->SetBinContent(34,65350.71); h_SL3L370->SetBinContent(35,67195); h_SL3L370->SetBinContent(36,64585); h_SL3L370->SetBinContent(37,63152.14); h_SL3L370->SetBinContent(38,57735); h_SL3L370->SetBinContent(39,45982.86); h_SL3L370->SetBinContent(40,26527.86); h_SL3L370->SetBinContent(41,6537.857); h_SL3L370->SetBinContent(42,3827.857); h_SL3L370->SetBinContent(43,3127.143); h_SL3L370->SetBinContent(44,2737.857); h_SL3L370->SetBinContent(45,2288.572); h_SL3L370->SetBinContent(46,2143.572); h_SL3L370->SetBinContent(47,1906.429); h_SL3L370->SetBinContent(48,1698.571); h_SL3L370->SetBinContent(49,1662.143); h_SL3L370->SetBinContent(50,1499.286); h_SL3L370->SetBinContent(51,1491.429); h_SL3L370->SetBinContent(52,1431.429); h_SL3L370->SetBinContent(53,1414.286); h_SL3L370->SetBinContent(54,1263.571); h_SL3L370->SetBinContent(55,1288.571); h_SL3L370->SetBinContent(56,1180); h_SL3L370->SetBinContent(57,1172.857); h_SL3L370->SetBinContent(58,1095); h_SL3L370->SetBinContent(59,1113.571); h_SL3L370->SetMaximum(81480.79); h_SL3L370->SetEntries(60); h_SL3L370->SetDirectory(0); h_SL3L370->SetStats(0); ci = TColor::GetColor("#009900"); h_SL3L370->SetLineColor(ci); h_SL3L370->SetLineWidth(2); h_SL3L370->GetXaxis()->SetTitle("Cell"); h_SL3L370->GetXaxis()->SetLabelFont(42); h_SL3L370->GetXaxis()->SetLabelSize(0.035); h_SL3L370->GetXaxis()->SetTitleSize(0.035); h_SL3L370->GetXaxis()->SetTitleFont(42); h_SL3L370->GetYaxis()->SetTitle("Hz"); h_SL3L370->GetYaxis()->SetLabelFont(42); h_SL3L370->GetYaxis()->SetLabelSize(0.035); h_SL3L370->GetYaxis()->SetTitleSize(0.035); h_SL3L370->GetYaxis()->SetTitleOffset(1.45); h_SL3L370->GetYaxis()->SetTitleFont(42); h_SL3L370->GetZaxis()->SetLabelFont(42); h_SL3L370->GetZaxis()->SetLabelSize(0.035); h_SL3L370->GetZaxis()->SetTitleSize(0.035); h_SL3L370->GetZaxis()->SetTitleFont(42); h_SL3L370->Draw("same"); TH1D *h_SL3L471 = new TH1D("h_SL3L471","",60,0,60); h_SL3L471->SetBinContent(2,247.1429); h_SL3L471->SetBinContent(3,247.8571); h_SL3L471->SetBinContent(4,280); h_SL3L471->SetBinContent(5,269.2857); h_SL3L471->SetBinContent(6,313.5714); h_SL3L471->SetBinContent(7,300); h_SL3L471->SetBinContent(8,295); h_SL3L471->SetBinContent(9,307.1429); h_SL3L471->SetBinContent(10,355); h_SL3L471->SetBinContent(11,381.4286); h_SL3L471->SetBinContent(12,413.5714); h_SL3L471->SetBinContent(13,480); h_SL3L471->SetBinContent(14,499.2857); h_SL3L471->SetBinContent(15,563.5715); h_SL3L471->SetBinContent(16,628.5715); h_SL3L471->SetBinContent(17,637.1429); h_SL3L471->SetBinContent(18,746.4286); h_SL3L471->SetBinContent(19,830); h_SL3L471->SetBinContent(20,930); h_SL3L471->SetBinContent(21,1051.429); h_SL3L471->SetBinContent(22,1110.714); h_SL3L471->SetBinContent(23,1296.429); h_SL3L471->SetBinContent(24,1503.571); h_SL3L471->SetBinContent(25,1750); h_SL3L471->SetBinContent(26,1935); h_SL3L471->SetBinContent(27,2238.572); h_SL3L471->SetBinContent(28,2514.286); h_SL3L471->SetBinContent(29,3027.143); h_SL3L471->SetBinContent(30,3467.143); h_SL3L471->SetBinContent(31,3886.429); h_SL3L471->SetBinContent(32,4769.286); h_SL3L471->SetBinContent(33,9727.144); h_SL3L471->SetBinContent(34,38007.86); h_SL3L471->SetBinContent(35,70852.86); h_SL3L471->SetBinContent(36,65197.14); h_SL3L471->SetBinContent(37,64175); h_SL3L471->SetBinContent(38,61379.29); h_SL3L471->SetBinContent(39,52408.57); h_SL3L471->SetBinContent(40,38844.29); h_SL3L471->SetBinContent(41,12345); h_SL3L471->SetBinContent(42,5393.572); h_SL3L471->SetBinContent(43,3330.714); h_SL3L471->SetBinContent(44,2942.143); h_SL3L471->SetBinContent(45,2469.286); h_SL3L471->SetBinContent(46,2253.572); h_SL3L471->SetBinContent(47,2033.572); h_SL3L471->SetBinContent(48,1792.857); h_SL3L471->SetBinContent(49,1712.857); h_SL3L471->SetBinContent(50,1582.143); h_SL3L471->SetBinContent(51,1472.143); h_SL3L471->SetBinContent(52,1457.143); h_SL3L471->SetBinContent(53,1410); h_SL3L471->SetBinContent(54,1375); h_SL3L471->SetBinContent(55,1267.857); h_SL3L471->SetBinContent(56,1242.857); h_SL3L471->SetBinContent(57,1195); h_SL3L471->SetBinContent(58,1167.857); h_SL3L471->SetBinContent(59,1120); h_SL3L471->SetMaximum(81480.79); h_SL3L471->SetEntries(60); h_SL3L471->SetDirectory(0); h_SL3L471->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL3L471->SetLineColor(ci); h_SL3L471->SetLineWidth(2); h_SL3L471->GetXaxis()->SetTitle("Cell"); h_SL3L471->GetXaxis()->SetLabelFont(42); h_SL3L471->GetXaxis()->SetLabelSize(0.035); h_SL3L471->GetXaxis()->SetTitleSize(0.035); h_SL3L471->GetXaxis()->SetTitleFont(42); h_SL3L471->GetYaxis()->SetTitle("Hz"); h_SL3L471->GetYaxis()->SetLabelFont(42); h_SL3L471->GetYaxis()->SetLabelSize(0.035); h_SL3L471->GetYaxis()->SetTitleSize(0.035); h_SL3L471->GetYaxis()->SetTitleOffset(1.45); h_SL3L471->GetYaxis()->SetTitleFont(42); h_SL3L471->GetZaxis()->SetLabelFont(42); h_SL3L471->GetZaxis()->SetLabelSize(0.035); h_SL3L471->GetZaxis()->SetTitleSize(0.035); h_SL3L471->GetZaxis()->SetTitleFont(42); h_SL3L471->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_SL3L1","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_SL3L2","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_SL3L3","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_SL3L4","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("SL3, run 4992"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }