void RatesPerCell_Removing_noisy_cells_run_5662_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:23:56 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9813.382,67.5,88320.43); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5662",60,0,60); h_SL2L164->SetBinContent(1,804.2857); h_SL2L164->SetBinContent(2,901.4286); h_SL2L164->SetBinContent(3,1105.714); h_SL2L164->SetBinContent(4,1138.571); h_SL2L164->SetBinContent(5,1215.714); h_SL2L164->SetBinContent(6,1270); h_SL2L164->SetBinContent(7,1272.857); h_SL2L164->SetBinContent(8,1407.143); h_SL2L164->SetBinContent(9,1540); h_SL2L164->SetBinContent(10,1654.286); h_SL2L164->SetBinContent(11,1822.857); h_SL2L164->SetBinContent(12,1964.286); h_SL2L164->SetBinContent(13,2167.143); h_SL2L164->SetBinContent(14,2325.714); h_SL2L164->SetBinContent(15,2544.286); h_SL2L164->SetBinContent(16,2694.286); h_SL2L164->SetBinContent(17,2824.286); h_SL2L164->SetBinContent(18,2972.857); h_SL2L164->SetBinContent(19,3404.286); h_SL2L164->SetBinContent(20,3608.572); h_SL2L164->SetBinContent(21,3637.143); h_SL2L164->SetBinContent(22,3914.286); h_SL2L164->SetBinContent(23,4248.571); h_SL2L164->SetBinContent(24,4608.572); h_SL2L164->SetBinContent(25,9972.857); h_SL2L164->SetBinContent(26,32448.57); h_SL2L164->SetBinContent(27,50235.71); h_SL2L164->SetBinContent(28,57985.71); h_SL2L164->SetBinContent(29,58730); h_SL2L164->SetBinContent(30,52607.14); h_SL2L164->SetBinContent(31,44761.43); h_SL2L164->SetBinContent(32,42032.86); h_SL2L164->SetBinContent(33,39747.14); h_SL2L164->SetBinContent(34,21951.43); h_SL2L164->SetBinContent(36,4150); h_SL2L164->SetBinContent(37,3307.143); h_SL2L164->SetBinContent(38,2802.857); h_SL2L164->SetBinContent(39,2432.857); h_SL2L164->SetBinContent(40,1927.143); h_SL2L164->SetBinContent(41,1861.429); h_SL2L164->SetBinContent(42,1911.429); h_SL2L164->SetBinContent(43,1755.714); h_SL2L164->SetBinContent(44,1638.571); h_SL2L164->SetBinContent(45,1520); h_SL2L164->SetBinContent(46,1380); h_SL2L164->SetBinContent(47,1377.143); h_SL2L164->SetBinContent(48,1270); h_SL2L164->SetBinContent(49,1251.429); h_SL2L164->SetBinContent(50,1125.714); h_SL2L164->SetBinContent(51,1160); h_SL2L164->SetBinContent(52,1087.143); h_SL2L164->SetBinContent(53,1022.857); h_SL2L164->SetBinContent(54,950); h_SL2L164->SetBinContent(55,941.4286); h_SL2L164->SetBinContent(56,798.5715); h_SL2L164->SetBinContent(57,778.5715); h_SL2L164->SetMaximum(78507.05); 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,722.8572); h_SL2L265->SetBinContent(2,852.8572); h_SL2L265->SetBinContent(3,962.8572); h_SL2L265->SetBinContent(4,1138.571); h_SL2L265->SetBinContent(5,1152.857); h_SL2L265->SetBinContent(6,1145.714); h_SL2L265->SetBinContent(7,1285.714); h_SL2L265->SetBinContent(8,1260); h_SL2L265->SetBinContent(9,1468.571); h_SL2L265->SetBinContent(10,1541.429); h_SL2L265->SetBinContent(11,1738.571); h_SL2L265->SetBinContent(12,1890); h_SL2L265->SetBinContent(13,1950); h_SL2L265->SetBinContent(14,2195.714); h_SL2L265->SetBinContent(15,2472.857); h_SL2L265->SetBinContent(16,2527.143); h_SL2L265->SetBinContent(17,2702.857); h_SL2L265->SetBinContent(18,2800); h_SL2L265->SetBinContent(19,3174.286); h_SL2L265->SetBinContent(20,3474.286); h_SL2L265->SetBinContent(21,3572.857); h_SL2L265->SetBinContent(22,3602.857); h_SL2L265->SetBinContent(23,4008.572); h_SL2L265->SetBinContent(24,4420); h_SL2L265->SetBinContent(25,4955.714); h_SL2L265->SetBinContent(26,20761.43); h_SL2L265->SetBinContent(27,42302.86); h_SL2L265->SetBinContent(28,54691.43); h_SL2L265->SetBinContent(29,59362.86); h_SL2L265->SetBinContent(30,56341.43); h_SL2L265->SetBinContent(31,47527.14); h_SL2L265->SetBinContent(32,42770); h_SL2L265->SetBinContent(33,41344.29); h_SL2L265->SetBinContent(34,33081.43); h_SL2L265->SetBinContent(35,11902.86); h_SL2L265->SetBinContent(36,4907.143); h_SL2L265->SetBinContent(37,3612.857); h_SL2L265->SetBinContent(38,3082.857); h_SL2L265->SetBinContent(39,2457.143); h_SL2L265->SetBinContent(40,2175.714); h_SL2L265->SetBinContent(41,2068.572); h_SL2L265->SetBinContent(42,1890); h_SL2L265->SetBinContent(43,1744.286); h_SL2L265->SetBinContent(44,1647.143); h_SL2L265->SetBinContent(45,1521.429); h_SL2L265->SetBinContent(46,1535.714); h_SL2L265->SetBinContent(47,1291.429); h_SL2L265->SetBinContent(48,1248.571); h_SL2L265->SetBinContent(49,1290); h_SL2L265->SetBinContent(50,1091.429); h_SL2L265->SetBinContent(51,1065.714); h_SL2L265->SetBinContent(52,1085.714); h_SL2L265->SetBinContent(53,1065.714); h_SL2L265->SetBinContent(54,924.2858); h_SL2L265->SetBinContent(55,972.8572); h_SL2L265->SetBinContent(56,788.5715); h_SL2L265->SetBinContent(57,818.5715); h_SL2L265->SetMaximum(68267.29); 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,830); h_SL2L366->SetBinContent(2,874.2857); h_SL2L366->SetBinContent(3,1072.857); h_SL2L366->SetBinContent(4,1085.714); h_SL2L366->SetBinContent(5,1140); h_SL2L366->SetBinContent(6,1128.571); h_SL2L366->SetBinContent(7,1262.857); h_SL2L366->SetBinContent(8,1351.429); h_SL2L366->SetBinContent(9,1438.571); h_SL2L366->SetBinContent(10,1561.429); h_SL2L366->SetBinContent(11,1767.143); h_SL2L366->SetBinContent(12,1858.572); h_SL2L366->SetBinContent(13,2097.143); h_SL2L366->SetBinContent(14,2267.143); h_SL2L366->SetBinContent(15,2440); h_SL2L366->SetBinContent(16,2550); h_SL2L366->SetBinContent(17,2685.714); h_SL2L366->SetBinContent(18,2921.429); h_SL2L366->SetBinContent(19,3227.143); h_SL2L366->SetBinContent(20,3514.286); h_SL2L366->SetBinContent(21,3492.857); h_SL2L366->SetBinContent(22,3778.572); h_SL2L366->SetBinContent(23,4092.857); h_SL2L366->SetBinContent(24,4407.143); h_SL2L366->SetBinContent(25,9858.571); h_SL2L366->SetBinContent(26,32285.71); h_SL2L366->SetBinContent(27,50242.86); h_SL2L366->SetBinContent(28,57960); h_SL2L366->SetBinContent(29,58241.43); h_SL2L366->SetBinContent(30,52324.29); h_SL2L366->SetBinContent(31,44450); h_SL2L366->SetBinContent(32,41960); h_SL2L366->SetBinContent(33,39452.86); h_SL2L366->SetBinContent(34,21845.71); h_SL2L366->SetBinContent(35,6645.714); h_SL2L366->SetBinContent(36,3977.143); h_SL2L366->SetBinContent(37,3174.286); h_SL2L366->SetBinContent(38,2721.429); h_SL2L366->SetBinContent(39,2254.286); h_SL2L366->SetBinContent(40,2027.143); h_SL2L366->SetBinContent(41,1940); h_SL2L366->SetBinContent(42,1818.571); h_SL2L366->SetBinContent(43,1705.714); h_SL2L366->SetBinContent(44,1510); h_SL2L366->SetBinContent(45,1440); h_SL2L366->SetBinContent(46,1377.143); h_SL2L366->SetBinContent(47,1280); h_SL2L366->SetBinContent(48,1222.857); h_SL2L366->SetBinContent(49,1201.429); h_SL2L366->SetBinContent(50,1047.143); h_SL2L366->SetBinContent(51,1084.286); h_SL2L366->SetBinContent(52,1025.714); h_SL2L366->SetBinContent(53,987.1429); h_SL2L366->SetBinContent(54,908.5715); h_SL2L366->SetBinContent(55,881.4286); h_SL2L366->SetBinContent(56,817.1429); h_SL2L366->SetBinContent(57,758.5715); h_SL2L366->SetMaximum(68267.29); 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,850); h_SL2L467->SetBinContent(3,968.5715); h_SL2L467->SetBinContent(4,1081.429); h_SL2L467->SetBinContent(5,1110); h_SL2L467->SetBinContent(6,1095.714); h_SL2L467->SetBinContent(7,1235.714); h_SL2L467->SetBinContent(8,1238.571); h_SL2L467->SetBinContent(9,1408.571); h_SL2L467->SetBinContent(10,1444.286); h_SL2L467->SetBinContent(11,1622.857); h_SL2L467->SetBinContent(12,1818.571); h_SL2L467->SetBinContent(13,1911.429); h_SL2L467->SetBinContent(14,2168.572); h_SL2L467->SetBinContent(15,2351.429); h_SL2L467->SetBinContent(16,2370); h_SL2L467->SetBinContent(17,2621.429); h_SL2L467->SetBinContent(18,2651.429); h_SL2L467->SetBinContent(19,3031.429); h_SL2L467->SetBinContent(20,3364.286); h_SL2L467->SetBinContent(21,3488.572); h_SL2L467->SetBinContent(22,3520); h_SL2L467->SetBinContent(23,3948.572); h_SL2L467->SetBinContent(24,4292.857); h_SL2L467->SetBinContent(25,4854.286); h_SL2L467->SetBinContent(26,20702.86); h_SL2L467->SetBinContent(27,42281.43); h_SL2L467->SetBinContent(28,54667.14); h_SL2L467->SetBinContent(29,59192.86); h_SL2L467->SetBinContent(30,56702.86); h_SL2L467->SetBinContent(31,47371.43); h_SL2L467->SetBinContent(32,42967.14); h_SL2L467->SetBinContent(33,41230); h_SL2L467->SetBinContent(34,33091.43); h_SL2L467->SetBinContent(35,11875.71); h_SL2L467->SetBinContent(36,4804.286); h_SL2L467->SetBinContent(37,3502.857); h_SL2L467->SetBinContent(38,2930); h_SL2L467->SetBinContent(39,2447.143); h_SL2L467->SetBinContent(40,2001.429); h_SL2L467->SetBinContent(41,1965.714); h_SL2L467->SetBinContent(42,1815.714); h_SL2L467->SetBinContent(43,1690); h_SL2L467->SetBinContent(44,1542.857); h_SL2L467->SetBinContent(45,1474.286); h_SL2L467->SetBinContent(46,1391.429); h_SL2L467->SetBinContent(47,1328.571); h_SL2L467->SetBinContent(48,1190); h_SL2L467->SetBinContent(49,1255.714); h_SL2L467->SetBinContent(50,1038.571); h_SL2L467->SetBinContent(51,1047.143); h_SL2L467->SetBinContent(52,1034.286); h_SL2L467->SetBinContent(53,971.4286); h_SL2L467->SetBinContent(54,880); h_SL2L467->SetBinContent(55,930); h_SL2L467->SetBinContent(56,824.2857); h_SL2L467->SetBinContent(57,815.7143); h_SL2L467->SetMaximum(68267.29); 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 5662"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }