void RatesPerCell_Removing_noisy_cells_run_5645_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:31:30 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11937.43,67.5,107436.9); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5645",60,0,60); h_SL1L160->SetBinContent(1,545.7143); h_SL1L160->SetBinContent(2,558.5715); h_SL1L160->SetBinContent(3,592.8572); h_SL1L160->SetBinContent(4,592.8572); h_SL1L160->SetBinContent(5,598.5715); h_SL1L160->SetBinContent(6,614.2857); h_SL1L160->SetBinContent(7,565.7143); h_SL1L160->SetBinContent(8,685.7143); h_SL1L160->SetBinContent(9,634.2857); h_SL1L160->SetBinContent(10,731.4286); h_SL1L160->SetBinContent(11,781.4286); h_SL1L160->SetBinContent(12,955.7143); h_SL1L160->SetBinContent(13,960); h_SL1L160->SetBinContent(14,1030); h_SL1L160->SetBinContent(15,927.1429); h_SL1L160->SetBinContent(16,897.1429); h_SL1L160->SetBinContent(17,1008.571); h_SL1L160->SetBinContent(18,1311.429); h_SL1L160->SetBinContent(19,1390); h_SL1L160->SetBinContent(20,1460); h_SL1L160->SetBinContent(21,1804.286); h_SL1L160->SetBinContent(22,1848.572); h_SL1L160->SetBinContent(23,2052.857); h_SL1L160->SetBinContent(24,2211.429); h_SL1L160->SetBinContent(25,2284.286); h_SL1L160->SetBinContent(26,2604.286); h_SL1L160->SetBinContent(27,2782.857); h_SL1L160->SetBinContent(28,3434.286); h_SL1L160->SetBinContent(29,3762.857); h_SL1L160->SetBinContent(30,4380); h_SL1L160->SetBinContent(31,6024.286); h_SL1L160->SetBinContent(32,9151.429); h_SL1L160->SetBinContent(33,37155.71); h_SL1L160->SetBinContent(34,49745.71); h_SL1L160->SetBinContent(35,57690); h_SL1L160->SetBinContent(36,65191.43); h_SL1L160->SetBinContent(37,70684.29); h_SL1L160->SetBinContent(38,64547.14); h_SL1L160->SetBinContent(39,43200); h_SL1L160->SetBinContent(40,10364.29); h_SL1L160->SetBinContent(41,6391.429); h_SL1L160->SetBinContent(42,5457.143); h_SL1L160->SetBinContent(43,4664.286); h_SL1L160->SetBinContent(44,4208.571); h_SL1L160->SetBinContent(45,3742.857); h_SL1L160->SetBinContent(46,3501.429); h_SL1L160->SetBinContent(47,3447.143); h_SL1L160->SetBinContent(48,3130); h_SL1L160->SetBinContent(49,2922.857); h_SL1L160->SetBinContent(50,2821.429); h_SL1L160->SetBinContent(51,2462.857); h_SL1L160->SetBinContent(52,2355.714); h_SL1L160->SetBinContent(53,2220); h_SL1L160->SetBinContent(54,2060); h_SL1L160->SetBinContent(55,1950); h_SL1L160->SetBinContent(56,1844.286); h_SL1L160->SetBinContent(57,1897.143); h_SL1L160->SetBinContent(58,1698.571); h_SL1L160->SetBinContent(59,1638.571); h_SL1L160->SetMaximum(95499.45); h_SL1L160->SetEntries(60); h_SL1L160->SetDirectory(0); h_SL1L160->SetStats(0); h_SL1L160->SetLineWidth(2); h_SL1L160->GetXaxis()->SetTitle("Cell"); h_SL1L160->GetXaxis()->SetLabelFont(42); h_SL1L160->GetXaxis()->SetLabelSize(0.035); h_SL1L160->GetXaxis()->SetTitleSize(0.035); h_SL1L160->GetXaxis()->SetTitleFont(42); h_SL1L160->GetYaxis()->SetTitle("Hz"); h_SL1L160->GetYaxis()->SetLabelFont(42); h_SL1L160->GetYaxis()->SetLabelSize(0.035); h_SL1L160->GetYaxis()->SetTitleSize(0.035); h_SL1L160->GetYaxis()->SetTitleOffset(1.45); h_SL1L160->GetYaxis()->SetTitleFont(42); h_SL1L160->GetZaxis()->SetLabelFont(42); h_SL1L160->GetZaxis()->SetLabelSize(0.035); h_SL1L160->GetZaxis()->SetTitleSize(0.035); h_SL1L160->GetZaxis()->SetTitleFont(42); h_SL1L160->Draw(""); TH1D *h_SL1L261 = new TH1D("h_SL1L261","",60,0,60); h_SL1L261->SetBinContent(1,420); h_SL1L261->SetBinContent(2,492.8571); h_SL1L261->SetBinContent(3,521.4286); h_SL1L261->SetBinContent(4,547.1429); h_SL1L261->SetBinContent(5,510); h_SL1L261->SetBinContent(6,575.7143); h_SL1L261->SetBinContent(7,538.5714); h_SL1L261->SetBinContent(8,624.2857); h_SL1L261->SetBinContent(9,635.7143); h_SL1L261->SetBinContent(10,638.5715); h_SL1L261->SetBinContent(11,740); h_SL1L261->SetBinContent(12,818.5715); h_SL1L261->SetBinContent(13,855.7143); h_SL1L261->SetBinContent(14,970); h_SL1L261->SetBinContent(15,931.4286); h_SL1L261->SetBinContent(16,842.8572); h_SL1L261->SetBinContent(17,931.4286); h_SL1L261->SetBinContent(18,1202.857); h_SL1L261->SetBinContent(19,1271.429); h_SL1L261->SetBinContent(20,1448.571); h_SL1L261->SetBinContent(21,1652.857); h_SL1L261->SetBinContent(22,1767.143); h_SL1L261->SetBinContent(23,1894.286); h_SL1L261->SetBinContent(24,2134.286); h_SL1L261->SetBinContent(25,2338.572); h_SL1L261->SetBinContent(26,2291.429); h_SL1L261->SetBinContent(27,2677.143); h_SL1L261->SetBinContent(28,3200); h_SL1L261->SetBinContent(29,3655.714); h_SL1L261->SetBinContent(30,4065.714); h_SL1L261->SetBinContent(31,4722.857); h_SL1L261->SetBinContent(32,7875.714); h_SL1L261->SetBinContent(33,20991.43); h_SL1L261->SetBinContent(34,46718.57); h_SL1L261->SetBinContent(35,55250); h_SL1L261->SetBinContent(36,62765.71); h_SL1L261->SetBinContent(37,70124.29); h_SL1L261->SetBinContent(38,70398.57); h_SL1L261->SetBinContent(39,59438.57); h_SL1L261->SetBinContent(40,21214.29); h_SL1L261->SetBinContent(41,8834.286); h_SL1L261->SetBinContent(42,5857.143); h_SL1L261->SetBinContent(43,5034.286); h_SL1L261->SetBinContent(44,4352.857); h_SL1L261->SetBinContent(45,4044.286); h_SL1L261->SetBinContent(46,3700); h_SL1L261->SetBinContent(47,3571.429); h_SL1L261->SetBinContent(48,3238.572); h_SL1L261->SetBinContent(49,3197.143); h_SL1L261->SetBinContent(50,2864.286); h_SL1L261->SetBinContent(51,2685.714); h_SL1L261->SetBinContent(52,2298.572); h_SL1L261->SetBinContent(53,2280); h_SL1L261->SetBinContent(54,2201.429); h_SL1L261->SetBinContent(55,1978.572); h_SL1L261->SetBinContent(56,1910); h_SL1L261->SetBinContent(57,1831.429); h_SL1L261->SetBinContent(58,1815.714); h_SL1L261->SetBinContent(59,1635.714); h_SL1L261->SetMaximum(83043.14); h_SL1L261->SetEntries(60); h_SL1L261->SetDirectory(0); h_SL1L261->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL1L261->SetLineColor(ci); h_SL1L261->SetLineWidth(2); h_SL1L261->GetXaxis()->SetTitle("Cell"); h_SL1L261->GetXaxis()->SetLabelFont(42); h_SL1L261->GetXaxis()->SetLabelSize(0.035); h_SL1L261->GetXaxis()->SetTitleSize(0.035); h_SL1L261->GetXaxis()->SetTitleFont(42); h_SL1L261->GetYaxis()->SetTitle("Hz"); h_SL1L261->GetYaxis()->SetLabelFont(42); h_SL1L261->GetYaxis()->SetLabelSize(0.035); h_SL1L261->GetYaxis()->SetTitleSize(0.035); h_SL1L261->GetYaxis()->SetTitleOffset(1.45); h_SL1L261->GetYaxis()->SetTitleFont(42); h_SL1L261->GetZaxis()->SetLabelFont(42); h_SL1L261->GetZaxis()->SetLabelSize(0.035); h_SL1L261->GetZaxis()->SetTitleSize(0.035); h_SL1L261->GetZaxis()->SetTitleFont(42); h_SL1L261->Draw("same"); TH1D *h_SL1L362 = new TH1D("h_SL1L362","",60,0,60); h_SL1L362->SetBinContent(1,455.7143); h_SL1L362->SetBinContent(2,457.1429); h_SL1L362->SetBinContent(3,472.8571); h_SL1L362->SetBinContent(4,502.8571); h_SL1L362->SetBinContent(5,474.2857); h_SL1L362->SetBinContent(6,550); h_SL1L362->SetBinContent(7,518.5714); h_SL1L362->SetBinContent(8,591.4286); h_SL1L362->SetBinContent(9,618.5715); h_SL1L362->SetBinContent(10,620); h_SL1L362->SetBinContent(11,691.4286); h_SL1L362->SetBinContent(12,812.8572); h_SL1L362->SetBinContent(13,844.2857); h_SL1L362->SetBinContent(14,950); h_SL1L362->SetBinContent(15,824.2857); h_SL1L362->SetBinContent(16,802.8572); h_SL1L362->SetBinContent(17,1005.714); h_SL1L362->SetBinContent(18,1242.857); h_SL1L362->SetBinContent(19,1307.143); h_SL1L362->SetBinContent(20,1391.429); h_SL1L362->SetBinContent(21,1644.286); h_SL1L362->SetBinContent(22,1668.571); h_SL1L362->SetBinContent(23,1935.714); h_SL1L362->SetBinContent(24,2095.714); h_SL1L362->SetBinContent(25,2167.143); h_SL1L362->SetBinContent(26,2398.572); h_SL1L362->SetBinContent(27,2740); h_SL1L362->SetBinContent(28,3384.286); h_SL1L362->SetBinContent(29,3680); h_SL1L362->SetBinContent(30,4287.143); h_SL1L362->SetBinContent(31,6141.429); h_SL1L362->SetBinContent(32,9552.857); h_SL1L362->SetBinContent(33,38115.71); h_SL1L362->SetBinContent(34,51007.14); h_SL1L362->SetBinContent(35,59255.71); h_SL1L362->SetBinContent(36,67195.72); h_SL1L362->SetBinContent(37,72211.43); h_SL1L362->SetBinContent(38,66071.43); h_SL1L362->SetBinContent(39,44110); h_SL1L362->SetBinContent(40,10577.14); h_SL1L362->SetBinContent(41,6338.572); h_SL1L362->SetBinContent(42,5402.857); h_SL1L362->SetBinContent(43,4600); h_SL1L362->SetBinContent(44,4131.429); h_SL1L362->SetBinContent(45,3731.429); h_SL1L362->SetBinContent(46,3471.429); h_SL1L362->SetBinContent(47,3304.286); h_SL1L362->SetBinContent(48,3028.572); h_SL1L362->SetBinContent(49,2831.429); h_SL1L362->SetBinContent(50,2614.286); h_SL1L362->SetBinContent(51,2387.143); h_SL1L362->SetBinContent(52,2215.714); h_SL1L362->SetBinContent(53,2071.429); h_SL1L362->SetBinContent(54,2042.857); h_SL1L362->SetBinContent(55,1891.429); h_SL1L362->SetBinContent(56,1800); h_SL1L362->SetBinContent(57,1781.429); h_SL1L362->SetBinContent(58,1594.286); h_SL1L362->SetBinContent(59,1485.714); h_SL1L362->SetMaximum(83043.14); h_SL1L362->SetEntries(60); h_SL1L362->SetDirectory(0); h_SL1L362->SetStats(0); ci = TColor::GetColor("#009900"); h_SL1L362->SetLineColor(ci); h_SL1L362->SetLineWidth(2); h_SL1L362->GetXaxis()->SetTitle("Cell"); h_SL1L362->GetXaxis()->SetLabelFont(42); h_SL1L362->GetXaxis()->SetLabelSize(0.035); h_SL1L362->GetXaxis()->SetTitleSize(0.035); h_SL1L362->GetXaxis()->SetTitleFont(42); h_SL1L362->GetYaxis()->SetTitle("Hz"); h_SL1L362->GetYaxis()->SetLabelFont(42); h_SL1L362->GetYaxis()->SetLabelSize(0.035); h_SL1L362->GetYaxis()->SetTitleSize(0.035); h_SL1L362->GetYaxis()->SetTitleOffset(1.45); h_SL1L362->GetYaxis()->SetTitleFont(42); h_SL1L362->GetZaxis()->SetLabelFont(42); h_SL1L362->GetZaxis()->SetLabelSize(0.035); h_SL1L362->GetZaxis()->SetTitleSize(0.035); h_SL1L362->GetZaxis()->SetTitleFont(42); h_SL1L362->Draw("same"); TH1D *h_SL1L463 = new TH1D("h_SL1L463","",60,0,60); h_SL1L463->SetBinContent(2,480); h_SL1L463->SetBinContent(3,447.1429); h_SL1L463->SetBinContent(4,472.8571); h_SL1L463->SetBinContent(5,471.4286); h_SL1L463->SetBinContent(6,532.8572); h_SL1L463->SetBinContent(7,475.7143); h_SL1L463->SetBinContent(8,531.4286); h_SL1L463->SetBinContent(9,558.5715); h_SL1L463->SetBinContent(10,568.5715); h_SL1L463->SetBinContent(11,591.4286); h_SL1L463->SetBinContent(12,732.8572); h_SL1L463->SetBinContent(13,717.1429); h_SL1L463->SetBinContent(14,884.2857); h_SL1L463->SetBinContent(15,840); h_SL1L463->SetBinContent(16,747.1429); h_SL1L463->SetBinContent(17,841.4286); h_SL1L463->SetBinContent(18,1117.143); h_SL1L463->SetBinContent(19,1138.571); h_SL1L463->SetBinContent(20,1290); h_SL1L463->SetBinContent(21,1458.571); h_SL1L463->SetBinContent(22,1577.143); h_SL1L463->SetBinContent(23,1694.286); h_SL1L463->SetBinContent(24,1960); h_SL1L463->SetBinContent(25,2068.572); h_SL1L463->SetBinContent(26,2157.143); h_SL1L463->SetBinContent(27,2554.286); h_SL1L463->SetBinContent(28,2995.714); h_SL1L463->SetBinContent(29,3481.429); h_SL1L463->SetBinContent(30,3935.714); h_SL1L463->SetBinContent(31,4641.429); h_SL1L463->SetBinContent(32,7778.572); h_SL1L463->SetBinContent(33,20725.71); h_SL1L463->SetBinContent(34,47142.86); h_SL1L463->SetBinContent(35,55562.86); h_SL1L463->SetBinContent(36,63210); h_SL1L463->SetBinContent(37,70600); h_SL1L463->SetBinContent(38,70381.43); h_SL1L463->SetBinContent(39,60120); h_SL1L463->SetBinContent(40,21428.57); h_SL1L463->SetBinContent(41,8705.715); h_SL1L463->SetBinContent(42,5802.857); h_SL1L463->SetBinContent(43,4740); h_SL1L463->SetBinContent(44,4271.429); h_SL1L463->SetBinContent(45,3870); h_SL1L463->SetBinContent(46,3537.143); h_SL1L463->SetBinContent(47,3324.286); h_SL1L463->SetBinContent(48,3108.572); h_SL1L463->SetBinContent(49,2810); h_SL1L463->SetBinContent(50,2640); h_SL1L463->SetBinContent(51,2425.714); h_SL1L463->SetBinContent(52,2250); h_SL1L463->SetBinContent(53,2078.572); h_SL1L463->SetBinContent(54,2035.714); h_SL1L463->SetBinContent(55,1.428571); h_SL1L463->SetBinContent(56,1851.429); h_SL1L463->SetBinContent(57,1622.857); h_SL1L463->SetBinContent(58,1752.857); h_SL1L463->SetBinContent(59,1530); h_SL1L463->SetMaximum(83043.14); h_SL1L463->SetEntries(60); h_SL1L463->SetDirectory(0); h_SL1L463->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL1L463->SetLineColor(ci); h_SL1L463->SetLineWidth(2); h_SL1L463->GetXaxis()->SetTitle("Cell"); h_SL1L463->GetXaxis()->SetLabelFont(42); h_SL1L463->GetXaxis()->SetLabelSize(0.035); h_SL1L463->GetXaxis()->SetTitleSize(0.035); h_SL1L463->GetXaxis()->SetTitleFont(42); h_SL1L463->GetYaxis()->SetTitle("Hz"); h_SL1L463->GetYaxis()->SetLabelFont(42); h_SL1L463->GetYaxis()->SetLabelSize(0.035); h_SL1L463->GetYaxis()->SetTitleSize(0.035); h_SL1L463->GetYaxis()->SetTitleOffset(1.45); h_SL1L463->GetYaxis()->SetTitleFont(42); h_SL1L463->GetZaxis()->SetLabelFont(42); h_SL1L463->GetZaxis()->SetLabelSize(0.035); h_SL1L463->GetZaxis()->SetTitleSize(0.035); h_SL1L463->GetZaxis()->SetTitleFont(42); h_SL1L463->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_SL1L1","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_SL1L2","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_SL1L3","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_SL1L4","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("SL1, run 5645"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }