void RatesPerCell_Removing_noisy_cells_run_5152_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:28:42 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9106.563,67.5,81959.06); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5152",60,0,60); h_SL2L164->SetBinContent(1,714.2857); h_SL2L164->SetBinContent(2,812.8572); h_SL2L164->SetBinContent(3,981.4286); h_SL2L164->SetBinContent(4,1048.571); h_SL2L164->SetBinContent(5,1130); h_SL2L164->SetBinContent(6,1122.857); h_SL2L164->SetBinContent(7,1144.286); h_SL2L164->SetBinContent(8,1178.571); h_SL2L164->SetBinContent(9,1428.571); h_SL2L164->SetBinContent(10,1524.286); h_SL2L164->SetBinContent(11,1690); h_SL2L164->SetBinContent(12,1697.143); h_SL2L164->SetBinContent(13,1940); h_SL2L164->SetBinContent(14,2005.714); h_SL2L164->SetBinContent(15,2312.857); h_SL2L164->SetBinContent(16,2438.572); h_SL2L164->SetBinContent(17,2687.143); h_SL2L164->SetBinContent(18,2712.857); h_SL2L164->SetBinContent(19,3075.714); h_SL2L164->SetBinContent(20,3148.572); h_SL2L164->SetBinContent(21,3352.857); h_SL2L164->SetBinContent(22,3537.143); h_SL2L164->SetBinContent(23,3891.429); h_SL2L164->SetBinContent(24,4351.429); h_SL2L164->SetBinContent(25,9398.571); h_SL2L164->SetBinContent(26,29391.43); h_SL2L164->SetBinContent(27,44674.29); h_SL2L164->SetBinContent(28,52631.43); h_SL2L164->SetBinContent(29,55087.14); h_SL2L164->SetBinContent(30,51968.57); h_SL2L164->SetBinContent(31,47378.57); h_SL2L164->SetBinContent(32,47337.14); h_SL2L164->SetBinContent(33,45850); h_SL2L164->SetBinContent(34,26151.43); h_SL2L164->SetBinContent(36,4545.714); h_SL2L164->SetBinContent(37,3472.857); h_SL2L164->SetBinContent(38,2924.286); h_SL2L164->SetBinContent(39,2711.429); h_SL2L164->SetBinContent(40,1931.429); h_SL2L164->SetBinContent(41,2008.572); h_SL2L164->SetBinContent(42,1991.429); h_SL2L164->SetBinContent(43,1682.857); h_SL2L164->SetBinContent(44,1615.714); h_SL2L164->SetBinContent(45,1520); h_SL2L164->SetBinContent(46,1350); h_SL2L164->SetBinContent(47,1242.857); h_SL2L164->SetBinContent(48,1124.286); h_SL2L164->SetBinContent(49,1062.857); h_SL2L164->SetBinContent(50,867.1429); h_SL2L164->SetBinContent(51,797.1429); h_SL2L164->SetBinContent(52,825.7143); h_SL2L164->SetBinContent(53,800); h_SL2L164->SetBinContent(54,791.4286); h_SL2L164->SetBinContent(55,694.2857); h_SL2L164->SetBinContent(56,594.2857); h_SL2L164->SetBinContent(57,567.1429); h_SL2L164->SetMaximum(72852.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,625.7143); h_SL2L265->SetBinContent(2,747.1429); h_SL2L265->SetBinContent(3,877.1429); h_SL2L265->SetBinContent(4,1015.714); h_SL2L265->SetBinContent(5,1020); h_SL2L265->SetBinContent(6,1134.286); h_SL2L265->SetBinContent(7,1161.429); h_SL2L265->SetBinContent(8,1125.714); h_SL2L265->SetBinContent(9,1262.857); h_SL2L265->SetBinContent(10,1388.571); h_SL2L265->SetBinContent(11,1574.286); h_SL2L265->SetBinContent(12,1637.143); h_SL2L265->SetBinContent(13,1808.571); h_SL2L265->SetBinContent(14,1942.857); h_SL2L265->SetBinContent(15,2074.286); h_SL2L265->SetBinContent(16,2322.857); h_SL2L265->SetBinContent(17,2557.143); h_SL2L265->SetBinContent(18,2632.857); h_SL2L265->SetBinContent(19,2847.143); h_SL2L265->SetBinContent(20,3041.429); h_SL2L265->SetBinContent(21,3182.857); h_SL2L265->SetBinContent(22,3354.286); h_SL2L265->SetBinContent(23,3680); h_SL2L265->SetBinContent(24,4068.572); h_SL2L265->SetBinContent(25,5051.429); h_SL2L265->SetBinContent(26,18574.29); h_SL2L265->SetBinContent(27,37911.43); h_SL2L265->SetBinContent(28,49150); h_SL2L265->SetBinContent(29,54560); h_SL2L265->SetBinContent(30,54105.71); h_SL2L265->SetBinContent(31,48298.57); h_SL2L265->SetBinContent(32,46827.14); h_SL2L265->SetBinContent(33,47255.71); h_SL2L265->SetBinContent(34,39300); h_SL2L265->SetBinContent(35,14042.86); h_SL2L265->SetBinContent(36,5364.286); h_SL2L265->SetBinContent(37,3734.286); h_SL2L265->SetBinContent(38,3114.286); h_SL2L265->SetBinContent(39,2791.429); h_SL2L265->SetBinContent(40,2377.143); h_SL2L265->SetBinContent(41,2162.857); h_SL2L265->SetBinContent(42,1961.429); h_SL2L265->SetBinContent(43,1728.571); h_SL2L265->SetBinContent(44,1640); h_SL2L265->SetBinContent(45,1522.857); h_SL2L265->SetBinContent(46,1405.714); h_SL2L265->SetBinContent(47,1285.714); h_SL2L265->SetBinContent(48,1205.714); h_SL2L265->SetBinContent(49,1094.286); h_SL2L265->SetBinContent(50,910); h_SL2L265->SetBinContent(51,845.7143); h_SL2L265->SetBinContent(52,742.8572); h_SL2L265->SetBinContent(53,755.7143); h_SL2L265->SetBinContent(54,757.1429); h_SL2L265->SetBinContent(55,778.5715); h_SL2L265->SetBinContent(56,657.1429); h_SL2L265->SetBinContent(57,592.8572); h_SL2L265->SetMaximum(63350.22); 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,720); h_SL2L366->SetBinContent(2,808.5715); h_SL2L366->SetBinContent(3,952.8572); h_SL2L366->SetBinContent(4,1004.286); h_SL2L366->SetBinContent(5,1081.429); h_SL2L366->SetBinContent(6,1088.571); h_SL2L366->SetBinContent(7,1114.286); h_SL2L366->SetBinContent(8,1142.857); h_SL2L366->SetBinContent(9,1370); h_SL2L366->SetBinContent(10,1452.857); h_SL2L366->SetBinContent(11,1668.571); h_SL2L366->SetBinContent(12,1620); h_SL2L366->SetBinContent(13,1875.714); h_SL2L366->SetBinContent(14,1952.857); h_SL2L366->SetBinContent(15,2162.857); h_SL2L366->SetBinContent(16,2375.714); h_SL2L366->SetBinContent(17,2577.143); h_SL2L366->SetBinContent(18,2547.143); h_SL2L366->SetBinContent(19,2987.143); h_SL2L366->SetBinContent(20,3005.714); h_SL2L366->SetBinContent(21,3241.429); h_SL2L366->SetBinContent(22,3420); h_SL2L366->SetBinContent(23,3752.857); h_SL2L366->SetBinContent(24,4245.714); h_SL2L366->SetBinContent(25,9194.286); h_SL2L366->SetBinContent(26,29261.43); h_SL2L366->SetBinContent(27,44535.71); h_SL2L366->SetBinContent(28,52588.57); h_SL2L366->SetBinContent(29,54691.43); h_SL2L366->SetBinContent(30,51627.14); h_SL2L366->SetBinContent(31,47157.14); h_SL2L366->SetBinContent(32,47328.57); h_SL2L366->SetBinContent(33,45608.57); h_SL2L366->SetBinContent(34,26207.14); h_SL2L366->SetBinContent(35,7642.857); h_SL2L366->SetBinContent(36,4255.714); h_SL2L366->SetBinContent(37,3368.572); h_SL2L366->SetBinContent(38,2892.857); h_SL2L366->SetBinContent(39,2610); h_SL2L366->SetBinContent(40,2142.857); h_SL2L366->SetBinContent(41,1997.143); h_SL2L366->SetBinContent(42,1851.429); h_SL2L366->SetBinContent(43,1624.286); h_SL2L366->SetBinContent(44,1532.857); h_SL2L366->SetBinContent(45,1434.286); h_SL2L366->SetBinContent(46,1312.857); h_SL2L366->SetBinContent(47,1247.143); h_SL2L366->SetBinContent(48,1117.143); h_SL2L366->SetBinContent(49,1017.143); h_SL2L366->SetBinContent(50,852.8572); h_SL2L366->SetBinContent(51,741.4286); h_SL2L366->SetBinContent(52,775.7143); h_SL2L366->SetBinContent(53,754.2857); h_SL2L366->SetBinContent(54,747.1429); h_SL2L366->SetBinContent(55,668.5715); h_SL2L366->SetBinContent(56,585.7143); h_SL2L366->SetBinContent(57,582.8572); h_SL2L366->SetMaximum(63350.22); 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,775.7143); h_SL2L467->SetBinContent(3,854.2857); h_SL2L467->SetBinContent(4,960); h_SL2L467->SetBinContent(5,1001.429); h_SL2L467->SetBinContent(6,1132.857); h_SL2L467->SetBinContent(7,1042.857); h_SL2L467->SetBinContent(8,1035.714); h_SL2L467->SetBinContent(9,1197.143); h_SL2L467->SetBinContent(10,1348.571); h_SL2L467->SetBinContent(11,1497.143); h_SL2L467->SetBinContent(12,1554.286); h_SL2L467->SetBinContent(13,1685.714); h_SL2L467->SetBinContent(14,1824.286); h_SL2L467->SetBinContent(15,1971.429); h_SL2L467->SetBinContent(16,2191.429); h_SL2L467->SetBinContent(17,2510); h_SL2L467->SetBinContent(18,2510); h_SL2L467->SetBinContent(19,2747.143); h_SL2L467->SetBinContent(20,2967.143); h_SL2L467->SetBinContent(21,3094.286); h_SL2L467->SetBinContent(22,3267.143); h_SL2L467->SetBinContent(23,3530); h_SL2L467->SetBinContent(24,3875.714); h_SL2L467->SetBinContent(25,4881.429); h_SL2L467->SetBinContent(26,18487.14); h_SL2L467->SetBinContent(27,38252.86); h_SL2L467->SetBinContent(28,49381.43); h_SL2L467->SetBinContent(29,54365.71); h_SL2L467->SetBinContent(30,54458.57); h_SL2L467->SetBinContent(31,48300); h_SL2L467->SetBinContent(32,46981.43); h_SL2L467->SetBinContent(33,47371.43); h_SL2L467->SetBinContent(34,39378.57); h_SL2L467->SetBinContent(35,13972.86); h_SL2L467->SetBinContent(36,5185.714); h_SL2L467->SetBinContent(37,3612.857); h_SL2L467->SetBinContent(38,3062.857); h_SL2L467->SetBinContent(39,2657.143); h_SL2L467->SetBinContent(40,2290); h_SL2L467->SetBinContent(41,2021.429); h_SL2L467->SetBinContent(42,1872.857); h_SL2L467->SetBinContent(43,1648.571); h_SL2L467->SetBinContent(44,1572.857); h_SL2L467->SetBinContent(45,1461.429); h_SL2L467->SetBinContent(46,1328.571); h_SL2L467->SetBinContent(47,1268.571); h_SL2L467->SetBinContent(48,1118.571); h_SL2L467->SetBinContent(49,1070); h_SL2L467->SetBinContent(50,912.8572); h_SL2L467->SetBinContent(51,800); h_SL2L467->SetBinContent(52,688.5715); h_SL2L467->SetBinContent(53,740); h_SL2L467->SetBinContent(54,714.2857); h_SL2L467->SetBinContent(55,720); h_SL2L467->SetBinContent(56,641.4286); h_SL2L467->SetBinContent(57,538.5714); h_SL2L467->SetMaximum(63350.22); 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 5152"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }