void RatesPerCell_Removing_noisy_cells_run_6544_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:16:22 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-10945.99,67.5,98513.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 6544",60,0,60); h_SL2L164->SetBinContent(1,748.5715); h_SL2L164->SetBinContent(2,817.1429); h_SL2L164->SetBinContent(3,1024.286); h_SL2L164->SetBinContent(4,1074.286); h_SL2L164->SetBinContent(5,1088.571); h_SL2L164->SetBinContent(6,1234.286); h_SL2L164->SetBinContent(7,1282.857); h_SL2L164->SetBinContent(8,1324.286); h_SL2L164->SetBinContent(9,1377.143); h_SL2L164->SetBinContent(10,1442.857); h_SL2L164->SetBinContent(11,1628.571); h_SL2L164->SetBinContent(12,1612.857); h_SL2L164->SetBinContent(13,1832.857); h_SL2L164->SetBinContent(14,1984.286); h_SL2L164->SetBinContent(15,2054.286); h_SL2L164->SetBinContent(16,2085.714); h_SL2L164->SetBinContent(17,2140); h_SL2L164->SetBinContent(18,2240); h_SL2L164->SetBinContent(19,2448.572); h_SL2L164->SetBinContent(20,2558.572); h_SL2L164->SetBinContent(21,2632.857); h_SL2L164->SetBinContent(22,2851.429); h_SL2L164->SetBinContent(23,3102.857); h_SL2L164->SetBinContent(24,3748.572); h_SL2L164->SetBinContent(25,8948.571); h_SL2L164->SetBinContent(26,26495.71); h_SL2L164->SetBinContent(27,40485.71); h_SL2L164->SetBinContent(28,48384.29); h_SL2L164->SetBinContent(29,52052.86); h_SL2L164->SetBinContent(30,51708.57); h_SL2L164->SetBinContent(31,50457.14); h_SL2L164->SetBinContent(32,51161.43); h_SL2L164->SetBinContent(33,49995.71); h_SL2L164->SetBinContent(34,28622.86); h_SL2L164->SetBinContent(36,3850); h_SL2L164->SetBinContent(37,8515.715); h_SL2L164->SetBinContent(38,4880); h_SL2L164->SetBinContent(39,6798.572); h_SL2L164->SetBinContent(40,37918.57); h_SL2L164->SetBinContent(41,66214.29); h_SL2L164->SetBinContent(42,13528.57); h_SL2L164->SetBinContent(43,13358.57); h_SL2L164->SetBinContent(44,13667.14); h_SL2L164->SetBinContent(45,1404.286); h_SL2L164->SetBinContent(46,1368.571); h_SL2L164->SetBinContent(47,1215.714); h_SL2L164->SetBinContent(48,1118.571); h_SL2L164->SetBinContent(49,1094.286); h_SL2L164->SetBinContent(50,930); h_SL2L164->SetBinContent(51,905.7143); h_SL2L164->SetBinContent(52,934.2858); h_SL2L164->SetBinContent(53,787.1429); h_SL2L164->SetBinContent(54,797.1429); h_SL2L164->SetBinContent(55,758.5715); h_SL2L164->SetBinContent(56,622.8572); h_SL2L164->SetBinContent(57,6334.286); h_SL2L164->SetMaximum(87567.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,658.5715); h_SL2L265->SetBinContent(2,747.1429); h_SL2L265->SetBinContent(3,908.5715); h_SL2L265->SetBinContent(4,1055.714); h_SL2L265->SetBinContent(5,1047.143); h_SL2L265->SetBinContent(6,1167.143); h_SL2L265->SetBinContent(7,1277.143); h_SL2L265->SetBinContent(8,1252.857); h_SL2L265->SetBinContent(9,1265.714); h_SL2L265->SetBinContent(10,1404.286); h_SL2L265->SetBinContent(11,1532.857); h_SL2L265->SetBinContent(12,1575.714); h_SL2L265->SetBinContent(13,1734.286); h_SL2L265->SetBinContent(14,1861.429); h_SL2L265->SetBinContent(15,2011.429); h_SL2L265->SetBinContent(16,2022.857); h_SL2L265->SetBinContent(17,2067.143); h_SL2L265->SetBinContent(18,2155.714); h_SL2L265->SetBinContent(19,2372.857); h_SL2L265->SetBinContent(20,2532.857); h_SL2L265->SetBinContent(21,2610); h_SL2L265->SetBinContent(22,2672.857); h_SL2L265->SetBinContent(23,2914.286); h_SL2L265->SetBinContent(24,3302.857); h_SL2L265->SetBinContent(25,4527.143); h_SL2L265->SetBinContent(26,17470); h_SL2L265->SetBinContent(27,34102.86); h_SL2L265->SetBinContent(28,45042.86); h_SL2L265->SetBinContent(29,50705.71); h_SL2L265->SetBinContent(30,52300); h_SL2L265->SetBinContent(31,50351.43); h_SL2L265->SetBinContent(32,50327.14); h_SL2L265->SetBinContent(33,51860); h_SL2L265->SetBinContent(34,42764.29); h_SL2L265->SetBinContent(35,14911.43); h_SL2L265->SetBinContent(36,5032.857); h_SL2L265->SetBinContent(37,3351.429); h_SL2L265->SetBinContent(38,2708.572); h_SL2L265->SetBinContent(39,3751.429); h_SL2L265->SetBinContent(40,5350); h_SL2L265->SetBinContent(41,3975.714); h_SL2L265->SetBinContent(42,3671.429); h_SL2L265->SetBinContent(43,2420); h_SL2L265->SetBinContent(44,3537.143); h_SL2L265->SetBinContent(45,1447.143); h_SL2L265->SetBinContent(46,1362.857); h_SL2L265->SetBinContent(47,1252.857); h_SL2L265->SetBinContent(48,1092.857); h_SL2L265->SetBinContent(49,1114.286); h_SL2L265->SetBinContent(50,972.8572); h_SL2L265->SetBinContent(51,928.5715); h_SL2L265->SetBinContent(52,910); h_SL2L265->SetBinContent(53,838.5715); h_SL2L265->SetBinContent(54,775.7143); h_SL2L265->SetBinContent(55,790); h_SL2L265->SetBinContent(56,657.1429); h_SL2L265->SetBinContent(57,574.2857); h_SL2L265->SetMaximum(76146.43); 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,738.5715); h_SL2L366->SetBinContent(2,802.8572); h_SL2L366->SetBinContent(3,960); h_SL2L366->SetBinContent(4,1021.429); h_SL2L366->SetBinContent(5,1035.714); h_SL2L366->SetBinContent(6,1178.571); h_SL2L366->SetBinContent(7,1237.143); h_SL2L366->SetBinContent(8,1272.857); h_SL2L366->SetBinContent(9,1370); h_SL2L366->SetBinContent(10,1388.571); h_SL2L366->SetBinContent(11,1520); h_SL2L366->SetBinContent(12,1588.571); h_SL2L366->SetBinContent(13,1805.714); h_SL2L366->SetBinContent(14,1901.429); h_SL2L366->SetBinContent(15,1984.286); h_SL2L366->SetBinContent(16,2051.429); h_SL2L366->SetBinContent(17,2061.429); h_SL2L366->SetBinContent(18,2202.857); h_SL2L366->SetBinContent(19,2407.143); h_SL2L366->SetBinContent(20,2488.572); h_SL2L366->SetBinContent(21,2568.572); h_SL2L366->SetBinContent(22,2771.429); h_SL2L366->SetBinContent(23,2938.572); h_SL2L366->SetBinContent(24,3602.857); h_SL2L366->SetBinContent(25,8845.715); h_SL2L366->SetBinContent(26,26688.57); h_SL2L366->SetBinContent(27,40332.86); h_SL2L366->SetBinContent(28,48482.86); h_SL2L366->SetBinContent(29,51804.29); h_SL2L366->SetBinContent(30,51578.57); h_SL2L366->SetBinContent(31,50501.43); h_SL2L366->SetBinContent(32,51230); h_SL2L366->SetBinContent(33,50087.14); h_SL2L366->SetBinContent(34,28668.57); h_SL2L366->SetBinContent(35,7567.143); h_SL2L366->SetBinContent(36,3830); h_SL2L366->SetBinContent(37,3054.286); h_SL2L366->SetBinContent(38,2510); h_SL2L366->SetBinContent(39,2254.286); h_SL2L366->SetBinContent(40,4107.143); h_SL2L366->SetBinContent(41,2475.714); h_SL2L366->SetBinContent(42,1947.143); h_SL2L366->SetBinContent(43,1648.571); h_SL2L366->SetBinContent(44,1450); h_SL2L366->SetBinContent(45,1375.714); h_SL2L366->SetBinContent(46,1374.286); h_SL2L366->SetBinContent(47,1165.714); h_SL2L366->SetBinContent(48,1077.143); h_SL2L366->SetBinContent(49,1070); h_SL2L366->SetBinContent(50,922.8572); h_SL2L366->SetBinContent(51,854.2857); h_SL2L366->SetBinContent(52,900); h_SL2L366->SetBinContent(53,775.7143); h_SL2L366->SetBinContent(54,800); h_SL2L366->SetBinContent(55,740); h_SL2L366->SetBinContent(56,592.8572); h_SL2L366->SetBinContent(57,611.4286); h_SL2L366->SetMaximum(76146.43); 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,767.1429); h_SL2L467->SetBinContent(3,895.7143); h_SL2L467->SetBinContent(4,967.1429); h_SL2L467->SetBinContent(5,992.8572); h_SL2L467->SetBinContent(6,1097.143); h_SL2L467->SetBinContent(7,1231.429); h_SL2L467->SetBinContent(8,1225.714); h_SL2L467->SetBinContent(9,1254.286); h_SL2L467->SetBinContent(10,1368.571); h_SL2L467->SetBinContent(11,1471.429); h_SL2L467->SetBinContent(12,1538.571); h_SL2L467->SetBinContent(13,1711.429); h_SL2L467->SetBinContent(14,1807.143); h_SL2L467->SetBinContent(15,1932.857); h_SL2L467->SetBinContent(16,1968.572); h_SL2L467->SetBinContent(17,1995.714); h_SL2L467->SetBinContent(18,2065.714); h_SL2L467->SetBinContent(19,2370); h_SL2L467->SetBinContent(20,2440); h_SL2L467->SetBinContent(21,2500); h_SL2L467->SetBinContent(22,2547.143); h_SL2L467->SetBinContent(23,2824.286); h_SL2L467->SetBinContent(24,3177.143); h_SL2L467->SetBinContent(25,4370); h_SL2L467->SetBinContent(26,17404.29); h_SL2L467->SetBinContent(27,34321.43); h_SL2L467->SetBinContent(28,44894.29); h_SL2L467->SetBinContent(29,50741.43); h_SL2L467->SetBinContent(30,52821.43); h_SL2L467->SetBinContent(31,50435.71); h_SL2L467->SetBinContent(32,50565.71); h_SL2L467->SetBinContent(33,51958.57); h_SL2L467->SetBinContent(34,42852.86); h_SL2L467->SetBinContent(35,14892.86); h_SL2L467->SetBinContent(36,4948.572); h_SL2L467->SetBinContent(37,3278.572); h_SL2L467->SetBinContent(38,2572.857); h_SL2L467->SetBinContent(39,2322.857); h_SL2L467->SetBinContent(40,2088.572); h_SL2L467->SetBinContent(41,1864.286); h_SL2L467->SetBinContent(42,2412.857); h_SL2L467->SetBinContent(43,1801.429); h_SL2L467->SetBinContent(44,1445.714); h_SL2L467->SetBinContent(45,1407.143); h_SL2L467->SetBinContent(46,1308.571); h_SL2L467->SetBinContent(47,1211.429); h_SL2L467->SetBinContent(48,1040); h_SL2L467->SetBinContent(49,1042.857); h_SL2L467->SetBinContent(50,942.8572); h_SL2L467->SetBinContent(51,910); h_SL2L467->SetBinContent(52,890); h_SL2L467->SetBinContent(53,798.5715); h_SL2L467->SetBinContent(54,748.5715); h_SL2L467->SetBinContent(55,761.4286); h_SL2L467->SetBinContent(56,652.8572); h_SL2L467->SetBinContent(57,561.4286); h_SL2L467->SetMaximum(76146.43); 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 6544"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }