void RatesPerCell_Removing_noisy_cells_run_5132_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 14:55:32 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9107.426,67.5,81966.83); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5132",60,0,60); h_SL2L164->SetBinContent(1,560.7143); h_SL2L164->SetBinContent(2,689.2857); h_SL2L164->SetBinContent(3,910.7143); h_SL2L164->SetBinContent(4,1039.286); h_SL2L164->SetBinContent(5,1007.143); h_SL2L164->SetBinContent(6,982.1428); h_SL2L164->SetBinContent(7,985.7143); h_SL2L164->SetBinContent(8,1139.286); h_SL2L164->SetBinContent(9,1217.857); h_SL2L164->SetBinContent(10,1371.429); h_SL2L164->SetBinContent(11,1564.286); h_SL2L164->SetBinContent(12,1532.143); h_SL2L164->SetBinContent(13,1735.714); h_SL2L164->SetBinContent(14,1889.286); h_SL2L164->SetBinContent(15,1953.571); h_SL2L164->SetBinContent(16,2303.571); h_SL2L164->SetBinContent(17,2325); h_SL2L164->SetBinContent(18,2550); h_SL2L164->SetBinContent(19,2942.857); h_SL2L164->SetBinContent(20,2885.714); h_SL2L164->SetBinContent(21,3214.286); h_SL2L164->SetBinContent(22,3421.428); h_SL2L164->SetBinContent(23,3542.857); h_SL2L164->SetBinContent(24,3942.857); h_SL2L164->SetBinContent(25,8835.714); h_SL2L164->SetBinContent(26,29403.57); h_SL2L164->SetBinContent(27,44900); h_SL2L164->SetBinContent(28,51721.43); h_SL2L164->SetBinContent(29,55092.86); h_SL2L164->SetBinContent(30,52532.14); h_SL2L164->SetBinContent(31,46750); h_SL2L164->SetBinContent(32,47303.57); h_SL2L164->SetBinContent(33,45789.29); h_SL2L164->SetBinContent(34,25703.57); h_SL2L164->SetBinContent(36,4232.143); h_SL2L164->SetBinContent(37,3232.143); h_SL2L164->SetBinContent(38,2789.286); h_SL2L164->SetBinContent(39,2350); h_SL2L164->SetBinContent(40,1878.571); h_SL2L164->SetBinContent(41,1910.714); h_SL2L164->SetBinContent(42,1857.143); h_SL2L164->SetBinContent(43,1582.143); h_SL2L164->SetBinContent(44,1442.857); h_SL2L164->SetBinContent(45,1250); h_SL2L164->SetBinContent(46,1203.571); h_SL2L164->SetBinContent(47,1203.571); h_SL2L164->SetBinContent(48,1167.857); h_SL2L164->SetBinContent(49,917.8571); h_SL2L164->SetBinContent(50,850); h_SL2L164->SetBinContent(51,807.1428); h_SL2L164->SetBinContent(52,675); h_SL2L164->SetBinContent(53,728.5714); h_SL2L164->SetBinContent(54,567.8571); h_SL2L164->SetBinContent(55,621.4286); h_SL2L164->SetBinContent(56,528.5714); h_SL2L164->SetBinContent(57,460.7143); h_SL2L164->SetMaximum(72859.4); 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,517.8571); h_SL2L265->SetBinContent(2,675); h_SL2L265->SetBinContent(3,785.7143); h_SL2L265->SetBinContent(4,982.1428); h_SL2L265->SetBinContent(5,925); h_SL2L265->SetBinContent(6,1010.714); h_SL2L265->SetBinContent(7,992.8571); h_SL2L265->SetBinContent(8,1082.143); h_SL2L265->SetBinContent(9,1203.571); h_SL2L265->SetBinContent(10,1200); h_SL2L265->SetBinContent(11,1553.571); h_SL2L265->SetBinContent(12,1503.571); h_SL2L265->SetBinContent(13,1539.286); h_SL2L265->SetBinContent(14,1746.429); h_SL2L265->SetBinContent(15,1896.429); h_SL2L265->SetBinContent(16,1975); h_SL2L265->SetBinContent(17,2232.143); h_SL2L265->SetBinContent(18,2403.571); h_SL2L265->SetBinContent(19,2678.571); h_SL2L265->SetBinContent(20,2950); h_SL2L265->SetBinContent(21,3092.857); h_SL2L265->SetBinContent(22,3153.571); h_SL2L265->SetBinContent(23,3521.428); h_SL2L265->SetBinContent(24,3625); h_SL2L265->SetBinContent(25,4614.286); h_SL2L265->SetBinContent(26,18553.57); h_SL2L265->SetBinContent(27,37828.57); h_SL2L265->SetBinContent(28,49035.71); h_SL2L265->SetBinContent(29,53803.57); h_SL2L265->SetBinContent(30,53925); h_SL2L265->SetBinContent(31,48464.29); h_SL2L265->SetBinContent(32,46375); h_SL2L265->SetBinContent(33,46828.57); h_SL2L265->SetBinContent(34,39232.14); h_SL2L265->SetBinContent(35,13485.71); h_SL2L265->SetBinContent(36,5164.286); h_SL2L265->SetBinContent(37,3535.714); h_SL2L265->SetBinContent(38,2860.714); h_SL2L265->SetBinContent(39,2567.857); h_SL2L265->SetBinContent(40,2164.286); h_SL2L265->SetBinContent(41,1942.857); h_SL2L265->SetBinContent(42,1910.714); h_SL2L265->SetBinContent(43,1675); h_SL2L265->SetBinContent(44,1467.857); h_SL2L265->SetBinContent(45,1257.143); h_SL2L265->SetBinContent(46,1189.286); h_SL2L265->SetBinContent(47,1292.857); h_SL2L265->SetBinContent(48,1021.429); h_SL2L265->SetBinContent(49,1067.857); h_SL2L265->SetBinContent(50,832.1428); h_SL2L265->SetBinContent(51,825); h_SL2L265->SetBinContent(52,692.8571); h_SL2L265->SetBinContent(53,664.2857); h_SL2L265->SetBinContent(54,614.2857); h_SL2L265->SetBinContent(55,546.4286); h_SL2L265->SetBinContent(56,575); h_SL2L265->SetBinContent(57,521.4286); h_SL2L265->SetMaximum(63356.78); 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,592.8571); h_SL2L366->SetBinContent(2,732.1428); h_SL2L366->SetBinContent(3,871.4286); h_SL2L366->SetBinContent(4,917.8571); h_SL2L366->SetBinContent(5,942.8571); h_SL2L366->SetBinContent(6,978.5714); h_SL2L366->SetBinContent(7,1007.143); h_SL2L366->SetBinContent(8,1117.857); h_SL2L366->SetBinContent(9,1225); h_SL2L366->SetBinContent(10,1332.143); h_SL2L366->SetBinContent(11,1442.857); h_SL2L366->SetBinContent(12,1507.143); h_SL2L366->SetBinContent(13,1592.857); h_SL2L366->SetBinContent(14,1867.857); h_SL2L366->SetBinContent(15,1871.429); h_SL2L366->SetBinContent(16,2217.857); h_SL2L366->SetBinContent(17,2125); h_SL2L366->SetBinContent(18,2585.714); h_SL2L366->SetBinContent(19,2835.714); h_SL2L366->SetBinContent(20,2739.286); h_SL2L366->SetBinContent(21,3060.714); h_SL2L366->SetBinContent(22,3242.857); h_SL2L366->SetBinContent(23,3385.714); h_SL2L366->SetBinContent(24,3896.428); h_SL2L366->SetBinContent(25,8864.285); h_SL2L366->SetBinContent(26,29082.14); h_SL2L366->SetBinContent(27,44689.29); h_SL2L366->SetBinContent(28,51610.71); h_SL2L366->SetBinContent(29,54846.43); h_SL2L366->SetBinContent(30,52010.71); h_SL2L366->SetBinContent(31,46589.29); h_SL2L366->SetBinContent(32,47221.43); h_SL2L366->SetBinContent(33,45439.29); h_SL2L366->SetBinContent(34,25507.14); h_SL2L366->SetBinContent(35,7300); h_SL2L366->SetBinContent(36,4014.286); h_SL2L366->SetBinContent(37,3060.714); h_SL2L366->SetBinContent(38,2753.571); h_SL2L366->SetBinContent(39,2267.857); h_SL2L366->SetBinContent(40,1825); h_SL2L366->SetBinContent(41,1835.714); h_SL2L366->SetBinContent(42,1575); h_SL2L366->SetBinContent(43,1525); h_SL2L366->SetBinContent(44,1264.286); h_SL2L366->SetBinContent(45,1242.857); h_SL2L366->SetBinContent(46,1210.714); h_SL2L366->SetBinContent(47,1189.286); h_SL2L366->SetBinContent(48,971.4286); h_SL2L366->SetBinContent(49,828.5714); h_SL2L366->SetBinContent(50,821.4286); h_SL2L366->SetBinContent(51,692.8571); h_SL2L366->SetBinContent(52,621.4286); h_SL2L366->SetBinContent(53,678.5714); h_SL2L366->SetBinContent(54,514.2857); h_SL2L366->SetBinContent(55,553.5714); h_SL2L366->SetBinContent(56,542.8571); h_SL2L366->SetBinContent(57,467.8571); h_SL2L366->SetMaximum(63356.78); 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,678.5714); h_SL2L467->SetBinContent(3,767.8571); h_SL2L467->SetBinContent(4,828.5714); h_SL2L467->SetBinContent(5,850); h_SL2L467->SetBinContent(6,875); h_SL2L467->SetBinContent(7,989.2857); h_SL2L467->SetBinContent(8,1007.143); h_SL2L467->SetBinContent(9,1085.714); h_SL2L467->SetBinContent(10,1135.714); h_SL2L467->SetBinContent(11,1485.714); h_SL2L467->SetBinContent(12,1360.714); h_SL2L467->SetBinContent(13,1500); h_SL2L467->SetBinContent(14,1678.571); h_SL2L467->SetBinContent(15,1732.143); h_SL2L467->SetBinContent(16,1914.286); h_SL2L467->SetBinContent(17,2171.428); h_SL2L467->SetBinContent(18,2253.571); h_SL2L467->SetBinContent(19,2550); h_SL2L467->SetBinContent(20,2750); h_SL2L467->SetBinContent(21,2892.857); h_SL2L467->SetBinContent(22,3117.857); h_SL2L467->SetBinContent(23,3271.428); h_SL2L467->SetBinContent(24,3582.143); h_SL2L467->SetBinContent(25,4453.571); h_SL2L467->SetBinContent(26,18432.14); h_SL2L467->SetBinContent(27,37950); h_SL2L467->SetBinContent(28,48950); h_SL2L467->SetBinContent(29,53825); h_SL2L467->SetBinContent(30,54346.43); h_SL2L467->SetBinContent(31,48839.29); h_SL2L467->SetBinContent(32,46400); h_SL2L467->SetBinContent(33,47178.57); h_SL2L467->SetBinContent(34,39121.43); h_SL2L467->SetBinContent(35,13367.86); h_SL2L467->SetBinContent(36,5046.429); h_SL2L467->SetBinContent(37,3396.428); h_SL2L467->SetBinContent(38,2689.286); h_SL2L467->SetBinContent(39,2332.143); h_SL2L467->SetBinContent(40,2107.143); h_SL2L467->SetBinContent(41,1785.714); h_SL2L467->SetBinContent(42,1664.286); h_SL2L467->SetBinContent(43,1482.143); h_SL2L467->SetBinContent(44,1253.571); h_SL2L467->SetBinContent(45,1178.571); h_SL2L467->SetBinContent(46,1242.857); h_SL2L467->SetBinContent(47,1153.571); h_SL2L467->SetBinContent(48,996.4286); h_SL2L467->SetBinContent(49,925); h_SL2L467->SetBinContent(50,767.8571); h_SL2L467->SetBinContent(51,792.8571); h_SL2L467->SetBinContent(52,685.7143); h_SL2L467->SetBinContent(53,657.1428); h_SL2L467->SetBinContent(54,575); h_SL2L467->SetBinContent(55,542.8571); h_SL2L467->SetBinContent(56,535.7143); h_SL2L467->SetBinContent(57,489.2857); h_SL2L467->SetMaximum(63356.78); 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 5132"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }