void RatesPerCell_Removing_noisy_cells_run_6257_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:21:37 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-7375.813,67.5,66382.31); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 6257",60,0,60); h_SL1L160->SetBinContent(1,29132.14); h_SL1L160->SetBinContent(2,30139.29); h_SL1L160->SetBinContent(3,29885.71); h_SL1L160->SetBinContent(4,29025); h_SL1L160->SetBinContent(5,26439.29); h_SL1L160->SetBinContent(6,28285.71); h_SL1L160->SetBinContent(7,27196.43); h_SL1L160->SetBinContent(8,28989.29); h_SL1L160->SetBinContent(9,28678.57); h_SL1L160->SetBinContent(10,28764.29); h_SL1L160->SetBinContent(11,29560.71); h_SL1L160->SetBinContent(12,28410.71); h_SL1L160->SetBinContent(13,28367.86); h_SL1L160->SetBinContent(14,26064.29); h_SL1L160->SetBinContent(15,23996.43); h_SL1L160->SetBinContent(16,23296.43); h_SL1L160->SetBinContent(17,22971.43); h_SL1L160->SetBinContent(18,24389.29); h_SL1L160->SetBinContent(19,24682.14); h_SL1L160->SetBinContent(20,24442.86); h_SL1L160->SetBinContent(21,24207.14); h_SL1L160->SetBinContent(22,24464.29); h_SL1L160->SetBinContent(23,22775); h_SL1L160->SetBinContent(24,21271.43); h_SL1L160->SetBinContent(25,20407.14); h_SL1L160->SetBinContent(26,20417.86); h_SL1L160->SetBinContent(27,20017.86); h_SL1L160->SetBinContent(28,21017.86); h_SL1L160->SetBinContent(29,22442.86); h_SL1L160->SetBinContent(30,21410.71); h_SL1L160->SetBinContent(31,21492.86); h_SL1L160->SetBinContent(32,19882.14); h_SL1L160->SetBinContent(33,1325); h_SL1L160->SetBinContent(34,1178.571); h_SL1L160->SetBinContent(35,1282.143); h_SL1L160->SetBinContent(36,1146.429); h_SL1L160->SetBinContent(37,1142.857); h_SL1L160->SetBinContent(38,1200); h_SL1L160->SetBinContent(39,1371.429); h_SL1L160->SetBinContent(40,1235.714); h_SL1L160->SetBinContent(41,1260.714); h_SL1L160->SetBinContent(42,1235.714); h_SL1L160->SetBinContent(43,1096.429); h_SL1L160->SetBinContent(44,1085.714); h_SL1L160->SetBinContent(45,1228.571); h_SL1L160->SetBinContent(46,1167.857); h_SL1L160->SetBinContent(47,1107.143); h_SL1L160->SetBinContent(48,1017.857); h_SL1L160->SetBinContent(49,19682.14); h_SL1L160->SetBinContent(50,20917.86); h_SL1L160->SetBinContent(51,20889.29); h_SL1L160->SetBinContent(52,19910.71); h_SL1L160->SetBinContent(53,19971.43); h_SL1L160->SetBinContent(54,19692.86); h_SL1L160->SetBinContent(55,19853.57); h_SL1L160->SetBinContent(56,21946.43); h_SL1L160->SetBinContent(57,25807.14); h_SL1L160->SetBinContent(58,29810.71); h_SL1L160->SetBinContent(59,31885.71); h_SL1L160->SetMaximum(59006.5); 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,35021.43); h_SL1L261->SetBinContent(2,36678.57); h_SL1L261->SetBinContent(3,37553.57); h_SL1L261->SetBinContent(4,38614.29); h_SL1L261->SetBinContent(5,39089.29); h_SL1L261->SetBinContent(6,40439.29); h_SL1L261->SetBinContent(7,40271.43); h_SL1L261->SetBinContent(8,42046.43); h_SL1L261->SetBinContent(9,42060.71); h_SL1L261->SetBinContent(10,41417.86); h_SL1L261->SetBinContent(11,43739.29); h_SL1L261->SetBinContent(12,43760.71); h_SL1L261->SetBinContent(13,44617.86); h_SL1L261->SetBinContent(14,44389.29); h_SL1L261->SetBinContent(15,44103.57); h_SL1L261->SetBinContent(16,40628.57); h_SL1L261->SetBinContent(17,39514.29); h_SL1L261->SetBinContent(18,41782.14); h_SL1L261->SetBinContent(19,42428.57); h_SL1L261->SetBinContent(20,41450); h_SL1L261->SetBinContent(21,43428.57); h_SL1L261->SetBinContent(22,42767.86); h_SL1L261->SetBinContent(23,41810.71); h_SL1L261->SetBinContent(24,40760.71); h_SL1L261->SetBinContent(25,40742.86); h_SL1L261->SetBinContent(26,37125); h_SL1L261->SetBinContent(27,37260.71); h_SL1L261->SetBinContent(28,39614.29); h_SL1L261->SetBinContent(29,41653.57); h_SL1L261->SetBinContent(30,43171.43); h_SL1L261->SetBinContent(31,43525); h_SL1L261->SetBinContent(32,43721.43); h_SL1L261->SetBinContent(33,2564.286); h_SL1L261->SetBinContent(34,2496.428); h_SL1L261->SetBinContent(35,2203.571); h_SL1L261->SetBinContent(36,2303.571); h_SL1L261->SetBinContent(37,2257.143); h_SL1L261->SetBinContent(38,2339.286); h_SL1L261->SetBinContent(39,2339.286); h_SL1L261->SetBinContent(40,2403.571); h_SL1L261->SetBinContent(41,2400); h_SL1L261->SetBinContent(42,2464.286); h_SL1L261->SetBinContent(43,2532.143); h_SL1L261->SetBinContent(44,2557.143); h_SL1L261->SetBinContent(45,2407.143); h_SL1L261->SetBinContent(46,2457.143); h_SL1L261->SetBinContent(47,2532.143); h_SL1L261->SetBinContent(48,2510.714); h_SL1L261->SetBinContent(49,43046.43); h_SL1L261->SetBinContent(50,42675); h_SL1L261->SetBinContent(51,41917.86); h_SL1L261->SetBinContent(52,42282.14); h_SL1L261->SetBinContent(53,42646.43); h_SL1L261->SetBinContent(54,41157.14); h_SL1L261->SetBinContent(55,42253.57); h_SL1L261->SetBinContent(56,41371.43); h_SL1L261->SetBinContent(57,41685.71); h_SL1L261->SetBinContent(58,42214.29); h_SL1L261->SetBinContent(59,41657.14); h_SL1L261->SetMaximum(51310.53); 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,32653.57); h_SL1L362->SetBinContent(2,34525); h_SL1L362->SetBinContent(3,35792.86); h_SL1L362->SetBinContent(4,36275); h_SL1L362->SetBinContent(5,37485.71); h_SL1L362->SetBinContent(6,38125); h_SL1L362->SetBinContent(7,39439.29); h_SL1L362->SetBinContent(8,40300); h_SL1L362->SetBinContent(9,38928.57); h_SL1L362->SetBinContent(10,40160.71); h_SL1L362->SetBinContent(11,41646.43); h_SL1L362->SetBinContent(12,41975); h_SL1L362->SetBinContent(13,41114.29); h_SL1L362->SetBinContent(14,40907.14); h_SL1L362->SetBinContent(15,38446.43); h_SL1L362->SetBinContent(16,37064.29); h_SL1L362->SetBinContent(17,37535.71); h_SL1L362->SetBinContent(18,39942.86); h_SL1L362->SetBinContent(19,39689.29); h_SL1L362->SetBinContent(20,39782.14); h_SL1L362->SetBinContent(21,40214.29); h_SL1L362->SetBinContent(22,39592.86); h_SL1L362->SetBinContent(23,37935.71); h_SL1L362->SetBinContent(24,37703.57); h_SL1L362->SetBinContent(25,36582.14); h_SL1L362->SetBinContent(26,33703.57); h_SL1L362->SetBinContent(27,35664.29); h_SL1L362->SetBinContent(28,38175); h_SL1L362->SetBinContent(29,40117.86); h_SL1L362->SetBinContent(30,40478.57); h_SL1L362->SetBinContent(31,40100); h_SL1L362->SetBinContent(32,40589.29); h_SL1L362->SetBinContent(33,2317.857); h_SL1L362->SetBinContent(34,2382.143); h_SL1L362->SetBinContent(35,2278.571); h_SL1L362->SetBinContent(36,2178.571); h_SL1L362->SetBinContent(37,2010.714); h_SL1L362->SetBinContent(38,2046.429); h_SL1L362->SetBinContent(39,2289.286); h_SL1L362->SetBinContent(40,2257.143); h_SL1L362->SetBinContent(41,1925); h_SL1L362->SetBinContent(42,2357.143); h_SL1L362->SetBinContent(43,2339.286); h_SL1L362->SetBinContent(44,2521.428); h_SL1L362->SetBinContent(45,2325); h_SL1L362->SetBinContent(46,2307.143); h_SL1L362->SetBinContent(47,2321.428); h_SL1L362->SetBinContent(48,2350); h_SL1L362->SetBinContent(49,40253.57); h_SL1L362->SetBinContent(50,40042.86); h_SL1L362->SetBinContent(51,39053.57); h_SL1L362->SetBinContent(52,39696.43); h_SL1L362->SetBinContent(53,38517.86); h_SL1L362->SetBinContent(54,38510.71); h_SL1L362->SetBinContent(55,38585.71); h_SL1L362->SetBinContent(56,37228.57); h_SL1L362->SetBinContent(57,39300); h_SL1L362->SetBinContent(58,39214.29); h_SL1L362->SetBinContent(59,38539.29); h_SL1L362->SetMaximum(51310.53); 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,26882.14); h_SL1L463->SetBinContent(3,25342.86); h_SL1L463->SetBinContent(4,25007.14); h_SL1L463->SetBinContent(5,24025); h_SL1L463->SetBinContent(6,24089.29); h_SL1L463->SetBinContent(7,24042.86); h_SL1L463->SetBinContent(8,25685.71); h_SL1L463->SetBinContent(9,26432.14); h_SL1L463->SetBinContent(10,29192.86); h_SL1L463->SetBinContent(11,32153.57); h_SL1L463->SetBinContent(12,32907.14); h_SL1L463->SetBinContent(13,33246.43); h_SL1L463->SetBinContent(14,34039.29); h_SL1L463->SetBinContent(15,32207.14); h_SL1L463->SetBinContent(16,29782.14); h_SL1L463->SetBinContent(17,26800); h_SL1L463->SetBinContent(18,27842.86); h_SL1L463->SetBinContent(19,27110.71); h_SL1L463->SetBinContent(20,26810.71); h_SL1L463->SetBinContent(21,26632.14); h_SL1L463->SetBinContent(22,26971.43); h_SL1L463->SetBinContent(23,25328.57); h_SL1L463->SetBinContent(24,25400); h_SL1L463->SetBinContent(25,23228.57); h_SL1L463->SetBinContent(26,22632.14); h_SL1L463->SetBinContent(27,22792.86); h_SL1L463->SetBinContent(28,23439.29); h_SL1L463->SetBinContent(29,23760.71); h_SL1L463->SetBinContent(30,24667.86); h_SL1L463->SetBinContent(31,23867.86); h_SL1L463->SetBinContent(32,22882.14); h_SL1L463->SetBinContent(33,1378.571); h_SL1L463->SetBinContent(34,1235.714); h_SL1L463->SetBinContent(35,1303.571); h_SL1L463->SetBinContent(36,1078.571); h_SL1L463->SetBinContent(37,914.2857); h_SL1L463->SetBinContent(38,1025); h_SL1L463->SetBinContent(39,1200); h_SL1L463->SetBinContent(40,1035.714); h_SL1L463->SetBinContent(41,953.5714); h_SL1L463->SetBinContent(42,1021.429); h_SL1L463->SetBinContent(43,1110.714); h_SL1L463->SetBinContent(44,1132.143); h_SL1L463->SetBinContent(45,914.2857); h_SL1L463->SetBinContent(46,1057.143); h_SL1L463->SetBinContent(47,914.2857); h_SL1L463->SetBinContent(48,1007.143); h_SL1L463->SetBinContent(49,16857.14); h_SL1L463->SetBinContent(50,16821.43); h_SL1L463->SetBinContent(51,17078.57); h_SL1L463->SetBinContent(52,17907.14); h_SL1L463->SetBinContent(53,17550); h_SL1L463->SetBinContent(54,17346.43); h_SL1L463->SetBinContent(56,18957.14); h_SL1L463->SetBinContent(57,21746.43); h_SL1L463->SetBinContent(58,27257.14); h_SL1L463->SetBinContent(59,28482.14); h_SL1L463->SetMaximum(51310.53); 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 6257"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }