void RatesPerCell_Removing_noisy_cells_run_6569_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:23:43 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-12218.89,67.5,109970); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6569",60,0,60); h_SL2L164->SetBinContent(1,682.8572); h_SL2L164->SetBinContent(2,805.7143); h_SL2L164->SetBinContent(3,1060); h_SL2L164->SetBinContent(4,1070); h_SL2L164->SetBinContent(5,1125.714); h_SL2L164->SetBinContent(6,1187.143); h_SL2L164->SetBinContent(7,1275.714); h_SL2L164->SetBinContent(8,1252.857); h_SL2L164->SetBinContent(9,1424.286); h_SL2L164->SetBinContent(10,1580); h_SL2L164->SetBinContent(11,1631.429); h_SL2L164->SetBinContent(12,1735.714); h_SL2L164->SetBinContent(13,1790); h_SL2L164->SetBinContent(14,1960); h_SL2L164->SetBinContent(15,2047.143); h_SL2L164->SetBinContent(16,2162.857); h_SL2L164->SetBinContent(17,2238.572); h_SL2L164->SetBinContent(18,2362.857); h_SL2L164->SetBinContent(19,2512.857); h_SL2L164->SetBinContent(20,2717.143); h_SL2L164->SetBinContent(21,2757.143); h_SL2L164->SetBinContent(22,2728.572); h_SL2L164->SetBinContent(23,3157.143); h_SL2L164->SetBinContent(24,3670); h_SL2L164->SetBinContent(25,8814.286); h_SL2L164->SetBinContent(26,27237.14); h_SL2L164->SetBinContent(27,41678.57); h_SL2L164->SetBinContent(28,49594.29); h_SL2L164->SetBinContent(29,52788.57); h_SL2L164->SetBinContent(30,51740); h_SL2L164->SetBinContent(31,50725.71); h_SL2L164->SetBinContent(32,49758.57); h_SL2L164->SetBinContent(33,48437.14); h_SL2L164->SetBinContent(34,27995.71); h_SL2L164->SetBinContent(35,2.857143); h_SL2L164->SetBinContent(36,4010); h_SL2L164->SetBinContent(37,8974.286); h_SL2L164->SetBinContent(38,5320); h_SL2L164->SetBinContent(39,6807.143); h_SL2L164->SetBinContent(40,39588.57); h_SL2L164->SetBinContent(41,73914.29); h_SL2L164->SetBinContent(42,13814.29); h_SL2L164->SetBinContent(43,14030); h_SL2L164->SetBinContent(44,14587.14); h_SL2L164->SetBinContent(45,1442.857); h_SL2L164->SetBinContent(46,1352.857); h_SL2L164->SetBinContent(47,1298.571); h_SL2L164->SetBinContent(48,1164.286); h_SL2L164->SetBinContent(49,1107.143); h_SL2L164->SetBinContent(50,974.2858); h_SL2L164->SetBinContent(51,947.1429); h_SL2L164->SetBinContent(52,858.5715); h_SL2L164->SetBinContent(53,865.7143); h_SL2L164->SetBinContent(54,755.7143); h_SL2L164->SetBinContent(55,711.4286); h_SL2L164->SetBinContent(56,627.1429); h_SL2L164->SetBinContent(57,5957.143); h_SL2L164->SetMaximum(97751.15); 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,688.5715); h_SL2L265->SetBinContent(2,810); h_SL2L265->SetBinContent(3,927.1429); h_SL2L265->SetBinContent(4,1021.429); h_SL2L265->SetBinContent(5,1068.571); h_SL2L265->SetBinContent(6,1147.143); h_SL2L265->SetBinContent(7,1084.286); h_SL2L265->SetBinContent(8,1317.143); h_SL2L265->SetBinContent(9,1344.286); h_SL2L265->SetBinContent(10,1418.571); h_SL2L265->SetBinContent(11,1601.429); h_SL2L265->SetBinContent(12,1604.286); h_SL2L265->SetBinContent(13,1700); h_SL2L265->SetBinContent(14,1888.572); h_SL2L265->SetBinContent(15,2004.286); h_SL2L265->SetBinContent(16,2117.143); h_SL2L265->SetBinContent(17,2117.143); h_SL2L265->SetBinContent(18,2245.714); h_SL2L265->SetBinContent(19,2330); h_SL2L265->SetBinContent(20,2548.572); h_SL2L265->SetBinContent(21,2634.286); h_SL2L265->SetBinContent(22,2674.286); h_SL2L265->SetBinContent(23,2908.572); h_SL2L265->SetBinContent(24,3292.857); h_SL2L265->SetBinContent(25,4394.286); h_SL2L265->SetBinContent(26,17820); h_SL2L265->SetBinContent(27,35018.57); h_SL2L265->SetBinContent(28,46827.14); h_SL2L265->SetBinContent(29,51328.57); h_SL2L265->SetBinContent(30,52514.29); h_SL2L265->SetBinContent(31,50568.57); h_SL2L265->SetBinContent(32,49905.71); h_SL2L265->SetBinContent(33,50228.57); h_SL2L265->SetBinContent(34,41560); h_SL2L265->SetBinContent(35,14757.14); h_SL2L265->SetBinContent(36,4941.429); h_SL2L265->SetBinContent(37,3511.429); h_SL2L265->SetBinContent(38,2827.143); h_SL2L265->SetBinContent(39,3860); h_SL2L265->SetBinContent(40,5315.714); h_SL2L265->SetBinContent(41,3945.714); h_SL2L265->SetBinContent(42,3665.714); h_SL2L265->SetBinContent(43,2620); h_SL2L265->SetBinContent(44,3811.429); h_SL2L265->SetBinContent(45,1505.714); h_SL2L265->SetBinContent(46,1365.714); h_SL2L265->SetBinContent(47,1248.571); h_SL2L265->SetBinContent(48,1194.286); h_SL2L265->SetBinContent(49,1064.286); h_SL2L265->SetBinContent(50,1068.571); h_SL2L265->SetBinContent(51,994.2858); h_SL2L265->SetBinContent(52,934.2858); h_SL2L265->SetBinContent(53,810); h_SL2L265->SetBinContent(54,768.5715); h_SL2L265->SetBinContent(55,732.8572); h_SL2L265->SetBinContent(56,697.1429); h_SL2L265->SetBinContent(57,610); h_SL2L265->SetMaximum(85001.43); 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,747.1429); h_SL2L366->SetBinContent(2,828.5715); h_SL2L366->SetBinContent(3,980); h_SL2L366->SetBinContent(4,1008.571); h_SL2L366->SetBinContent(5,1104.286); h_SL2L366->SetBinContent(6,1132.857); h_SL2L366->SetBinContent(7,1177.143); h_SL2L366->SetBinContent(8,1250); h_SL2L366->SetBinContent(9,1335.714); h_SL2L366->SetBinContent(10,1525.714); h_SL2L366->SetBinContent(11,1577.143); h_SL2L366->SetBinContent(12,1654.286); h_SL2L366->SetBinContent(13,1715.714); h_SL2L366->SetBinContent(14,1924.286); h_SL2L366->SetBinContent(15,2022.857); h_SL2L366->SetBinContent(16,2064.286); h_SL2L366->SetBinContent(17,2105.714); h_SL2L366->SetBinContent(18,2302.857); h_SL2L366->SetBinContent(19,2338.572); h_SL2L366->SetBinContent(20,2617.143); h_SL2L366->SetBinContent(21,2647.143); h_SL2L366->SetBinContent(22,2665.714); h_SL2L366->SetBinContent(23,3045.714); h_SL2L366->SetBinContent(24,3547.143); h_SL2L366->SetBinContent(25,8792.857); h_SL2L366->SetBinContent(26,27278.57); h_SL2L366->SetBinContent(27,41607.14); h_SL2L366->SetBinContent(28,49647.14); h_SL2L366->SetBinContent(29,52345.71); h_SL2L366->SetBinContent(30,51397.14); h_SL2L366->SetBinContent(31,50722.86); h_SL2L366->SetBinContent(32,49871.43); h_SL2L366->SetBinContent(33,48482.86); h_SL2L366->SetBinContent(34,28138.57); h_SL2L366->SetBinContent(35,7362.857); h_SL2L366->SetBinContent(36,3971.429); h_SL2L366->SetBinContent(37,2891.429); h_SL2L366->SetBinContent(38,2652.857); h_SL2L366->SetBinContent(39,2238.572); h_SL2L366->SetBinContent(40,4135.714); h_SL2L366->SetBinContent(41,2370); h_SL2L366->SetBinContent(42,1835.714); h_SL2L366->SetBinContent(43,1841.429); h_SL2L366->SetBinContent(44,1595.714); h_SL2L366->SetBinContent(45,1460); h_SL2L366->SetBinContent(46,1255.714); h_SL2L366->SetBinContent(47,1210); h_SL2L366->SetBinContent(48,1160); h_SL2L366->SetBinContent(49,1127.143); h_SL2L366->SetBinContent(50,957.1429); h_SL2L366->SetBinContent(51,904.2857); h_SL2L366->SetBinContent(52,828.5715); h_SL2L366->SetBinContent(53,828.5715); h_SL2L366->SetBinContent(54,728.5715); h_SL2L366->SetBinContent(55,687.1429); h_SL2L366->SetBinContent(56,607.1429); h_SL2L366->SetBinContent(57,661.4286); h_SL2L366->SetMaximum(85001.43); 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,824.2857); h_SL2L467->SetBinContent(3,861.4286); h_SL2L467->SetBinContent(4,1002.857); h_SL2L467->SetBinContent(5,1067.143); h_SL2L467->SetBinContent(6,1071.429); h_SL2L467->SetBinContent(7,1130); h_SL2L467->SetBinContent(8,1220); h_SL2L467->SetBinContent(9,1287.143); h_SL2L467->SetBinContent(10,1344.286); h_SL2L467->SetBinContent(11,1542.857); h_SL2L467->SetBinContent(12,1542.857); h_SL2L467->SetBinContent(13,1697.143); h_SL2L467->SetBinContent(14,1825.714); h_SL2L467->SetBinContent(15,1920); h_SL2L467->SetBinContent(16,2032.857); h_SL2L467->SetBinContent(17,2012.857); h_SL2L467->SetBinContent(18,2127.143); h_SL2L467->SetBinContent(19,2298.572); h_SL2L467->SetBinContent(20,2520); h_SL2L467->SetBinContent(21,2548.572); h_SL2L467->SetBinContent(22,2582.857); h_SL2L467->SetBinContent(23,2857.143); h_SL2L467->SetBinContent(24,3158.572); h_SL2L467->SetBinContent(25,4341.429); h_SL2L467->SetBinContent(26,17781.43); h_SL2L467->SetBinContent(27,35194.29); h_SL2L467->SetBinContent(28,46741.43); h_SL2L467->SetBinContent(29,51308.57); h_SL2L467->SetBinContent(30,52902.86); h_SL2L467->SetBinContent(31,50477.14); h_SL2L467->SetBinContent(32,50157.14); h_SL2L467->SetBinContent(33,50237.14); h_SL2L467->SetBinContent(34,41611.43); h_SL2L467->SetBinContent(35,14914.29); h_SL2L467->SetBinContent(36,4871.429); h_SL2L467->SetBinContent(37,3358.572); h_SL2L467->SetBinContent(38,2707.143); h_SL2L467->SetBinContent(39,2407.143); h_SL2L467->SetBinContent(40,2082.857); h_SL2L467->SetBinContent(41,1890); h_SL2L467->SetBinContent(42,2295.714); h_SL2L467->SetBinContent(43,1761.429); h_SL2L467->SetBinContent(44,1598.571); h_SL2L467->SetBinContent(45,1487.143); h_SL2L467->SetBinContent(46,1361.429); h_SL2L467->SetBinContent(47,1221.429); h_SL2L467->SetBinContent(48,1134.286); h_SL2L467->SetBinContent(49,1077.143); h_SL2L467->SetBinContent(50,1012.857); h_SL2L467->SetBinContent(51,957.1429); h_SL2L467->SetBinContent(52,884.2857); h_SL2L467->SetBinContent(53,754.2857); h_SL2L467->SetBinContent(54,788.5715); h_SL2L467->SetBinContent(55,685.7143); h_SL2L467->SetBinContent(56,672.8572); h_SL2L467->SetBinContent(57,602.8572); h_SL2L467->SetMaximum(85001.43); 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 6569"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }