void RatesPerCell_Removing_noisy_cells_run_5153_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:27:59 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-8996.451,67.5,80968.05); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5153",60,0,60); h_SL2L164->SetBinContent(1,698.5715); h_SL2L164->SetBinContent(2,800); h_SL2L164->SetBinContent(3,914.2858); h_SL2L164->SetBinContent(4,1077.143); h_SL2L164->SetBinContent(5,1094.286); h_SL2L164->SetBinContent(6,1082.857); h_SL2L164->SetBinContent(7,1048.571); h_SL2L164->SetBinContent(8,1192.857); h_SL2L164->SetBinContent(9,1418.571); h_SL2L164->SetBinContent(10,1537.143); h_SL2L164->SetBinContent(11,1690); h_SL2L164->SetBinContent(12,1731.429); h_SL2L164->SetBinContent(13,1992.857); h_SL2L164->SetBinContent(14,2008.572); h_SL2L164->SetBinContent(15,2072.857); h_SL2L164->SetBinContent(16,2387.143); h_SL2L164->SetBinContent(17,2487.143); h_SL2L164->SetBinContent(18,2625.714); h_SL2L164->SetBinContent(19,2952.857); h_SL2L164->SetBinContent(20,2971.429); h_SL2L164->SetBinContent(21,3402.857); h_SL2L164->SetBinContent(22,3548.572); h_SL2L164->SetBinContent(23,3830); h_SL2L164->SetBinContent(24,4230); h_SL2L164->SetBinContent(25,8820); h_SL2L164->SetBinContent(26,28892.86); h_SL2L164->SetBinContent(27,44407.14); h_SL2L164->SetBinContent(28,52024.29); h_SL2L164->SetBinContent(29,54421.43); h_SL2L164->SetBinContent(30,51632.86); h_SL2L164->SetBinContent(31,47167.14); h_SL2L164->SetBinContent(32,46520); h_SL2L164->SetBinContent(33,44978.57); h_SL2L164->SetBinContent(34,26231.43); h_SL2L164->SetBinContent(36,4424.286); h_SL2L164->SetBinContent(37,3392.857); h_SL2L164->SetBinContent(38,2907.143); h_SL2L164->SetBinContent(39,2447.143); h_SL2L164->SetBinContent(40,1918.572); h_SL2L164->SetBinContent(41,1831.429); h_SL2L164->SetBinContent(42,1830); h_SL2L164->SetBinContent(43,1660); h_SL2L164->SetBinContent(44,1435.714); h_SL2L164->SetBinContent(45,1334.286); h_SL2L164->SetBinContent(46,1252.857); h_SL2L164->SetBinContent(47,1152.857); h_SL2L164->SetBinContent(48,1118.571); h_SL2L164->SetBinContent(49,1017.143); h_SL2L164->SetBinContent(50,894.2857); h_SL2L164->SetBinContent(51,848.5715); h_SL2L164->SetBinContent(52,822.8572); h_SL2L164->SetBinContent(53,757.1429); h_SL2L164->SetBinContent(54,751.4286); h_SL2L164->SetBinContent(55,674.2857); h_SL2L164->SetBinContent(56,565.7143); h_SL2L164->SetBinContent(57,485.7143); h_SL2L164->SetMaximum(71971.6); 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,582.8572); h_SL2L265->SetBinContent(2,752.8572); h_SL2L265->SetBinContent(3,822.8572); h_SL2L265->SetBinContent(4,1031.429); h_SL2L265->SetBinContent(5,1044.286); h_SL2L265->SetBinContent(6,1012.857); h_SL2L265->SetBinContent(7,992.8572); h_SL2L265->SetBinContent(8,1072.857); h_SL2L265->SetBinContent(9,1297.143); h_SL2L265->SetBinContent(10,1360); h_SL2L265->SetBinContent(11,1581.429); h_SL2L265->SetBinContent(12,1667.143); h_SL2L265->SetBinContent(13,1758.571); h_SL2L265->SetBinContent(14,1895.714); h_SL2L265->SetBinContent(15,2097.143); h_SL2L265->SetBinContent(16,2198.572); h_SL2L265->SetBinContent(17,2285.714); h_SL2L265->SetBinContent(18,2470); h_SL2L265->SetBinContent(19,2701.429); h_SL2L265->SetBinContent(20,2938.572); h_SL2L265->SetBinContent(21,3110); h_SL2L265->SetBinContent(22,3461.429); h_SL2L265->SetBinContent(23,3568.572); h_SL2L265->SetBinContent(24,3842.857); h_SL2L265->SetBinContent(25,4837.143); h_SL2L265->SetBinContent(26,18177.14); h_SL2L265->SetBinContent(27,37772.86); h_SL2L265->SetBinContent(28,48472.86); h_SL2L265->SetBinContent(29,53682.86); h_SL2L265->SetBinContent(30,53611.43); h_SL2L265->SetBinContent(31,48597.14); h_SL2L265->SetBinContent(32,46061.43); h_SL2L265->SetBinContent(33,46210); h_SL2L265->SetBinContent(34,38755.71); h_SL2L265->SetBinContent(35,13890); h_SL2L265->SetBinContent(36,5282.857); h_SL2L265->SetBinContent(37,3691.429); h_SL2L265->SetBinContent(38,3105.714); h_SL2L265->SetBinContent(39,2547.143); h_SL2L265->SetBinContent(40,2278.572); h_SL2L265->SetBinContent(41,2005.714); h_SL2L265->SetBinContent(42,1838.572); h_SL2L265->SetBinContent(43,1738.571); h_SL2L265->SetBinContent(44,1508.571); h_SL2L265->SetBinContent(45,1395.714); h_SL2L265->SetBinContent(46,1280); h_SL2L265->SetBinContent(47,1151.429); h_SL2L265->SetBinContent(48,1065.714); h_SL2L265->SetBinContent(49,1060); h_SL2L265->SetBinContent(50,897.1429); h_SL2L265->SetBinContent(51,844.2857); h_SL2L265->SetBinContent(52,774.2857); h_SL2L265->SetBinContent(53,781.4286); h_SL2L265->SetBinContent(54,731.4286); h_SL2L265->SetBinContent(55,678.5715); h_SL2L265->SetBinContent(56,617.1429); h_SL2L265->SetBinContent(57,502.8571); h_SL2L265->SetMaximum(62584.64); 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,690); h_SL2L366->SetBinContent(2,734.2857); h_SL2L366->SetBinContent(3,922.8572); h_SL2L366->SetBinContent(4,1021.429); h_SL2L366->SetBinContent(5,997.1429); h_SL2L366->SetBinContent(6,990); h_SL2L366->SetBinContent(7,1032.857); h_SL2L366->SetBinContent(8,1131.429); h_SL2L366->SetBinContent(9,1350); h_SL2L366->SetBinContent(10,1454.286); h_SL2L366->SetBinContent(11,1600); h_SL2L366->SetBinContent(12,1712.857); h_SL2L366->SetBinContent(13,1818.571); h_SL2L366->SetBinContent(14,1951.429); h_SL2L366->SetBinContent(15,2147.143); h_SL2L366->SetBinContent(16,2201.429); h_SL2L366->SetBinContent(17,2394.286); h_SL2L366->SetBinContent(18,2432.857); h_SL2L366->SetBinContent(19,2901.429); h_SL2L366->SetBinContent(20,2921.429); h_SL2L366->SetBinContent(21,3262.857); h_SL2L366->SetBinContent(22,3428.572); h_SL2L366->SetBinContent(23,3604.286); h_SL2L366->SetBinContent(24,4067.143); h_SL2L366->SetBinContent(25,8825.715); h_SL2L366->SetBinContent(26,28765.71); h_SL2L366->SetBinContent(27,44337.14); h_SL2L366->SetBinContent(28,51824.29); h_SL2L366->SetBinContent(29,54037.14); h_SL2L366->SetBinContent(30,51260); h_SL2L366->SetBinContent(31,47048.57); h_SL2L366->SetBinContent(32,46384.29); h_SL2L366->SetBinContent(33,44794.29); h_SL2L366->SetBinContent(34,26255.71); h_SL2L366->SetBinContent(35,7517.143); h_SL2L366->SetBinContent(36,4274.286); h_SL2L366->SetBinContent(37,3310); h_SL2L366->SetBinContent(38,2787.143); h_SL2L366->SetBinContent(39,2342.857); h_SL2L366->SetBinContent(40,2124.286); h_SL2L366->SetBinContent(41,1912.857); h_SL2L366->SetBinContent(42,1771.429); h_SL2L366->SetBinContent(43,1608.571); h_SL2L366->SetBinContent(44,1370); h_SL2L366->SetBinContent(45,1298.571); h_SL2L366->SetBinContent(46,1221.429); h_SL2L366->SetBinContent(47,1032.857); h_SL2L366->SetBinContent(48,1034.286); h_SL2L366->SetBinContent(49,958.5715); h_SL2L366->SetBinContent(50,897.1429); h_SL2L366->SetBinContent(51,757.1429); h_SL2L366->SetBinContent(52,802.8572); h_SL2L366->SetBinContent(53,754.2857); h_SL2L366->SetBinContent(54,702.8572); h_SL2L366->SetBinContent(55,645.7143); h_SL2L366->SetBinContent(56,527.1429); h_SL2L366->SetBinContent(57,481.4286); h_SL2L366->SetMaximum(62584.64); 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,715.7143); h_SL2L467->SetBinContent(3,802.8572); h_SL2L467->SetBinContent(4,962.8572); h_SL2L467->SetBinContent(5,991.4286); h_SL2L467->SetBinContent(6,974.2858); h_SL2L467->SetBinContent(7,950); h_SL2L467->SetBinContent(8,1010); h_SL2L467->SetBinContent(9,1252.857); h_SL2L467->SetBinContent(10,1302.857); h_SL2L467->SetBinContent(11,1547.143); h_SL2L467->SetBinContent(12,1585.714); h_SL2L467->SetBinContent(13,1672.857); h_SL2L467->SetBinContent(14,1792.857); h_SL2L467->SetBinContent(15,1960); h_SL2L467->SetBinContent(16,2095.714); h_SL2L467->SetBinContent(17,2215.714); h_SL2L467->SetBinContent(18,2364.286); h_SL2L467->SetBinContent(19,2654.286); h_SL2L467->SetBinContent(20,2908.572); h_SL2L467->SetBinContent(21,3010); h_SL2L467->SetBinContent(22,3308.572); h_SL2L467->SetBinContent(23,3502.857); h_SL2L467->SetBinContent(24,3622.857); h_SL2L467->SetBinContent(25,4692.857); h_SL2L467->SetBinContent(26,18094.29); h_SL2L467->SetBinContent(27,37885.71); h_SL2L467->SetBinContent(28,48622.86); h_SL2L467->SetBinContent(29,53740); h_SL2L467->SetBinContent(30,53987.14); h_SL2L467->SetBinContent(31,48762.86); h_SL2L467->SetBinContent(32,46211.43); h_SL2L467->SetBinContent(33,46428.57); h_SL2L467->SetBinContent(34,38845.71); h_SL2L467->SetBinContent(35,13857.14); h_SL2L467->SetBinContent(36,5194.286); h_SL2L467->SetBinContent(37,3601.429); h_SL2L467->SetBinContent(38,3047.143); h_SL2L467->SetBinContent(39,2402.857); h_SL2L467->SetBinContent(40,2237.143); h_SL2L467->SetBinContent(41,1955.714); h_SL2L467->SetBinContent(42,1810); h_SL2L467->SetBinContent(43,1625.714); h_SL2L467->SetBinContent(44,1460); h_SL2L467->SetBinContent(45,1344.286); h_SL2L467->SetBinContent(46,1218.571); h_SL2L467->SetBinContent(47,1152.857); h_SL2L467->SetBinContent(48,1011.429); h_SL2L467->SetBinContent(49,1007.143); h_SL2L467->SetBinContent(50,887.1429); h_SL2L467->SetBinContent(51,808.5715); h_SL2L467->SetBinContent(52,720); h_SL2L467->SetBinContent(53,747.1429); h_SL2L467->SetBinContent(54,701.4286); h_SL2L467->SetBinContent(55,660); h_SL2L467->SetBinContent(56,630); h_SL2L467->SetBinContent(57,530); h_SL2L467->SetMaximum(62584.64); 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 5153"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }