void RatesPerCell_Removing_noisy_cells_run_6584_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:27:22 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-8691.988,67.5,78227.89); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6584",60,0,60); h_SL2L164->SetBinContent(1,651.4286); h_SL2L164->SetBinContent(2,798.5715); h_SL2L164->SetBinContent(3,898.5715); h_SL2L164->SetBinContent(4,950); h_SL2L164->SetBinContent(5,1017.143); h_SL2L164->SetBinContent(6,1015.714); h_SL2L164->SetBinContent(7,1120); h_SL2L164->SetBinContent(8,1141.429); h_SL2L164->SetBinContent(9,1325.714); h_SL2L164->SetBinContent(10,1248.571); h_SL2L164->SetBinContent(11,1510); h_SL2L164->SetBinContent(12,1557.143); h_SL2L164->SetBinContent(13,1647.143); h_SL2L164->SetBinContent(14,1655.714); h_SL2L164->SetBinContent(15,1905.714); h_SL2L164->SetBinContent(16,1994.286); h_SL2L164->SetBinContent(17,1930); h_SL2L164->SetBinContent(18,2087.143); h_SL2L164->SetBinContent(19,2467.143); h_SL2L164->SetBinContent(20,2444.286); h_SL2L164->SetBinContent(21,2551.429); h_SL2L164->SetBinContent(22,2612.857); h_SL2L164->SetBinContent(23,3040); h_SL2L164->SetBinContent(24,3605.714); h_SL2L164->SetBinContent(25,8554.286); h_SL2L164->SetBinContent(26,26752.86); h_SL2L164->SetBinContent(27,40515.71); h_SL2L164->SetBinContent(28,48550); h_SL2L164->SetBinContent(29,52158.57); h_SL2L164->SetBinContent(30,51401.43); h_SL2L164->SetBinContent(31,50505.71); h_SL2L164->SetBinContent(32,51201.43); h_SL2L164->SetBinContent(33,49818.57); h_SL2L164->SetBinContent(34,28405.71); h_SL2L164->SetBinContent(36,3615.714); h_SL2L164->SetBinContent(37,9231.429); h_SL2L164->SetBinContent(38,5417.143); h_SL2L164->SetBinContent(39,6958.572); h_SL2L164->SetBinContent(40,47532.86); h_SL2L164->SetBinContent(41,48522.86); h_SL2L164->SetBinContent(42,14784.29); h_SL2L164->SetBinContent(43,14950); h_SL2L164->SetBinContent(44,15288.57); h_SL2L164->SetBinContent(45,1314.286); h_SL2L164->SetBinContent(46,1218.571); h_SL2L164->SetBinContent(47,1132.857); h_SL2L164->SetBinContent(48,1095.714); h_SL2L164->SetBinContent(49,948.5715); h_SL2L164->SetBinContent(50,835.7143); h_SL2L164->SetBinContent(51,847.1429); h_SL2L164->SetBinContent(52,831.4286); h_SL2L164->SetBinContent(53,781.4286); h_SL2L164->SetBinContent(54,767.1429); h_SL2L164->SetBinContent(55,678.5715); h_SL2L164->SetBinContent(56,564.2857); h_SL2L164->SetBinContent(57,6992.857); h_SL2L164->SetMaximum(69535.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,555.7143); h_SL2L265->SetBinContent(2,730); h_SL2L265->SetBinContent(3,875.7143); h_SL2L265->SetBinContent(4,930); h_SL2L265->SetBinContent(5,985.7143); h_SL2L265->SetBinContent(6,990); h_SL2L265->SetBinContent(7,1077.143); h_SL2L265->SetBinContent(8,1110); h_SL2L265->SetBinContent(9,1200); h_SL2L265->SetBinContent(10,1252.857); h_SL2L265->SetBinContent(11,1415.714); h_SL2L265->SetBinContent(12,1425.714); h_SL2L265->SetBinContent(13,1594.286); h_SL2L265->SetBinContent(14,1648.571); h_SL2L265->SetBinContent(15,1730); h_SL2L265->SetBinContent(16,1951.429); h_SL2L265->SetBinContent(17,1920); h_SL2L265->SetBinContent(18,2052.857); h_SL2L265->SetBinContent(19,2205.714); h_SL2L265->SetBinContent(20,2382.857); h_SL2L265->SetBinContent(21,2474.286); h_SL2L265->SetBinContent(22,2455.714); h_SL2L265->SetBinContent(23,2767.143); h_SL2L265->SetBinContent(24,3067.143); h_SL2L265->SetBinContent(25,4248.571); h_SL2L265->SetBinContent(26,17267.14); h_SL2L265->SetBinContent(27,34350); h_SL2L265->SetBinContent(28,45821.43); h_SL2L265->SetBinContent(29,50481.43); h_SL2L265->SetBinContent(30,52020); h_SL2L265->SetBinContent(31,50122.86); h_SL2L265->SetBinContent(32,50790); h_SL2L265->SetBinContent(33,51555.71); h_SL2L265->SetBinContent(34,42467.14); h_SL2L265->SetBinContent(35,15054.29); h_SL2L265->SetBinContent(36,4844.286); h_SL2L265->SetBinContent(37,3347.143); h_SL2L265->SetBinContent(38,2510); h_SL2L265->SetBinContent(39,3870); h_SL2L265->SetBinContent(40,5220); h_SL2L265->SetBinContent(41,3752.857); h_SL2L265->SetBinContent(42,3632.857); h_SL2L265->SetBinContent(43,2441.429); h_SL2L265->SetBinContent(44,3644.286); h_SL2L265->SetBinContent(45,1324.286); h_SL2L265->SetBinContent(46,1245.714); h_SL2L265->SetBinContent(47,1177.143); h_SL2L265->SetBinContent(48,1108.571); h_SL2L265->SetBinContent(49,951.4286); h_SL2L265->SetBinContent(50,921.4286); h_SL2L265->SetBinContent(51,834.2857); h_SL2L265->SetBinContent(52,854.2857); h_SL2L265->SetBinContent(53,782.8572); h_SL2L265->SetBinContent(54,765.7143); h_SL2L265->SetBinContent(55,660); h_SL2L265->SetBinContent(56,645.7143); h_SL2L265->SetBinContent(57,572.8572); h_SL2L265->SetMaximum(60467); 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,628.5715); h_SL2L366->SetBinContent(2,778.5715); h_SL2L366->SetBinContent(3,862.8572); h_SL2L366->SetBinContent(4,960); h_SL2L366->SetBinContent(5,957.1429); h_SL2L366->SetBinContent(6,985.7143); h_SL2L366->SetBinContent(7,1062.857); h_SL2L366->SetBinContent(8,1114.286); h_SL2L366->SetBinContent(9,1255.714); h_SL2L366->SetBinContent(10,1211.429); h_SL2L366->SetBinContent(11,1364.286); h_SL2L366->SetBinContent(12,1480); h_SL2L366->SetBinContent(13,1617.143); h_SL2L366->SetBinContent(14,1572.857); h_SL2L366->SetBinContent(15,1845.714); h_SL2L366->SetBinContent(16,1897.143); h_SL2L366->SetBinContent(17,1925.714); h_SL2L366->SetBinContent(18,2014.286); h_SL2L366->SetBinContent(19,2404.286); h_SL2L366->SetBinContent(20,2281.429); h_SL2L366->SetBinContent(21,2468.572); h_SL2L366->SetBinContent(22,2537.143); h_SL2L366->SetBinContent(23,2790); h_SL2L366->SetBinContent(24,3462.857); h_SL2L366->SetBinContent(25,8425.715); h_SL2L366->SetBinContent(26,26865.71); h_SL2L366->SetBinContent(27,40478.57); h_SL2L366->SetBinContent(28,48374.29); h_SL2L366->SetBinContent(29,51642.86); h_SL2L366->SetBinContent(30,51102.86); h_SL2L366->SetBinContent(31,50732.86); h_SL2L366->SetBinContent(32,51507.14); h_SL2L366->SetBinContent(33,49704.29); h_SL2L366->SetBinContent(34,28362.86); h_SL2L366->SetBinContent(35,7577.143); h_SL2L366->SetBinContent(36,3822.857); h_SL2L366->SetBinContent(37,2812.857); h_SL2L366->SetBinContent(38,2354.286); h_SL2L366->SetBinContent(39,2130); h_SL2L366->SetBinContent(40,3784.286); h_SL2L366->SetBinContent(41,2228.572); h_SL2L366->SetBinContent(42,1710); h_SL2L366->SetBinContent(43,1578.571); h_SL2L366->SetBinContent(44,1411.429); h_SL2L366->SetBinContent(45,1167.143); h_SL2L366->SetBinContent(46,1164.286); h_SL2L366->SetBinContent(47,1080); h_SL2L366->SetBinContent(48,1058.571); h_SL2L366->SetBinContent(49,888.5715); h_SL2L366->SetBinContent(50,865.7143); h_SL2L366->SetBinContent(51,827.1429); h_SL2L366->SetBinContent(52,842.8572); h_SL2L366->SetBinContent(53,722.8572); h_SL2L366->SetBinContent(54,675.7143); h_SL2L366->SetBinContent(55,634.2857); h_SL2L366->SetBinContent(56,577.1429); h_SL2L366->SetBinContent(57,608.5715); h_SL2L366->SetMaximum(60467); 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,707.1429); h_SL2L467->SetBinContent(3,824.2857); h_SL2L467->SetBinContent(4,895.7143); h_SL2L467->SetBinContent(5,917.1429); h_SL2L467->SetBinContent(6,961.4286); h_SL2L467->SetBinContent(7,1017.143); h_SL2L467->SetBinContent(8,1041.429); h_SL2L467->SetBinContent(9,1178.571); h_SL2L467->SetBinContent(10,1197.143); h_SL2L467->SetBinContent(11,1321.429); h_SL2L467->SetBinContent(12,1378.571); h_SL2L467->SetBinContent(13,1468.571); h_SL2L467->SetBinContent(14,1584.286); h_SL2L467->SetBinContent(15,1627.143); h_SL2L467->SetBinContent(16,1885.714); h_SL2L467->SetBinContent(17,1825.714); h_SL2L467->SetBinContent(18,1931.429); h_SL2L467->SetBinContent(19,2140); h_SL2L467->SetBinContent(20,2351.429); h_SL2L467->SetBinContent(21,2341.429); h_SL2L467->SetBinContent(22,2342.857); h_SL2L467->SetBinContent(23,2658.572); h_SL2L467->SetBinContent(24,2978.572); h_SL2L467->SetBinContent(25,4225.714); h_SL2L467->SetBinContent(26,17220); h_SL2L467->SetBinContent(27,34184.29); h_SL2L467->SetBinContent(28,45655.71); h_SL2L467->SetBinContent(29,50370); h_SL2L467->SetBinContent(30,52580); h_SL2L467->SetBinContent(31,50091.43); h_SL2L467->SetBinContent(32,50938.57); h_SL2L467->SetBinContent(33,51677.14); h_SL2L467->SetBinContent(34,42570); h_SL2L467->SetBinContent(35,15082.86); h_SL2L467->SetBinContent(36,4702.857); h_SL2L467->SetBinContent(37,3252.857); h_SL2L467->SetBinContent(38,2398.572); h_SL2L467->SetBinContent(39,2178.572); h_SL2L467->SetBinContent(40,1945.714); h_SL2L467->SetBinContent(41,1741.429); h_SL2L467->SetBinContent(42,2241.429); h_SL2L467->SetBinContent(43,1528.571); h_SL2L467->SetBinContent(44,1431.429); h_SL2L467->SetBinContent(45,1351.429); h_SL2L467->SetBinContent(46,1155.714); h_SL2L467->SetBinContent(47,1144.286); h_SL2L467->SetBinContent(48,1064.286); h_SL2L467->SetBinContent(49,895.7143); h_SL2L467->SetBinContent(50,922.8572); h_SL2L467->SetBinContent(51,782.8572); h_SL2L467->SetBinContent(52,881.4286); h_SL2L467->SetBinContent(53,790); h_SL2L467->SetBinContent(54,700); h_SL2L467->SetBinContent(55,627.1429); h_SL2L467->SetBinContent(56,625.7143); h_SL2L467->SetBinContent(57,568.5715); h_SL2L467->SetMaximum(60467); 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 6584"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }