void RatesPerCell_Removing_noisy_cells_run_6556_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:20:30 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-12548.51,67.5,112936.6); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6556",60,0,60); h_SL2L164->SetBinContent(1,720); h_SL2L164->SetBinContent(2,867.1429); h_SL2L164->SetBinContent(3,1028.571); h_SL2L164->SetBinContent(4,1062.857); h_SL2L164->SetBinContent(5,1072.857); h_SL2L164->SetBinContent(6,1181.429); h_SL2L164->SetBinContent(7,1230); h_SL2L164->SetBinContent(8,1201.429); h_SL2L164->SetBinContent(9,1362.857); h_SL2L164->SetBinContent(10,1472.857); h_SL2L164->SetBinContent(11,1592.857); h_SL2L164->SetBinContent(12,1674.286); h_SL2L164->SetBinContent(13,1795.714); h_SL2L164->SetBinContent(14,1797.143); h_SL2L164->SetBinContent(15,1984.286); h_SL2L164->SetBinContent(16,2057.143); h_SL2L164->SetBinContent(17,2281.429); h_SL2L164->SetBinContent(18,2344.286); h_SL2L164->SetBinContent(19,2517.143); h_SL2L164->SetBinContent(20,2538.572); h_SL2L164->SetBinContent(21,2632.857); h_SL2L164->SetBinContent(22,2865.714); h_SL2L164->SetBinContent(23,3202.857); h_SL2L164->SetBinContent(24,3710); h_SL2L164->SetBinContent(25,8672.857); h_SL2L164->SetBinContent(26,27095.71); h_SL2L164->SetBinContent(27,41205.71); h_SL2L164->SetBinContent(28,48795.71); h_SL2L164->SetBinContent(29,53147.14); h_SL2L164->SetBinContent(30,51677.14); h_SL2L164->SetBinContent(31,50251.43); h_SL2L164->SetBinContent(32,50078.57); h_SL2L164->SetBinContent(33,48721.43); h_SL2L164->SetBinContent(34,27964.29); h_SL2L164->SetBinContent(35,2.857143); h_SL2L164->SetBinContent(36,3864.286); h_SL2L164->SetBinContent(37,8717.143); h_SL2L164->SetBinContent(38,5268.572); h_SL2L164->SetBinContent(39,6688.572); h_SL2L164->SetBinContent(40,58628.57); h_SL2L164->SetBinContent(41,75908.57); h_SL2L164->SetBinContent(42,13281.43); h_SL2L164->SetBinContent(43,13271.43); h_SL2L164->SetBinContent(44,14020); h_SL2L164->SetBinContent(45,1434.286); h_SL2L164->SetBinContent(46,1291.429); h_SL2L164->SetBinContent(47,1240); h_SL2L164->SetBinContent(48,1161.429); h_SL2L164->SetBinContent(49,1040); h_SL2L164->SetBinContent(50,1002.857); h_SL2L164->SetBinContent(51,911.4286); h_SL2L164->SetBinContent(52,837.1429); h_SL2L164->SetBinContent(53,888.5715); h_SL2L164->SetBinContent(54,812.8572); h_SL2L164->SetBinContent(55,688.5715); h_SL2L164->SetBinContent(56,630); h_SL2L164->SetBinContent(57,5568.572); h_SL2L164->SetMaximum(100388.1); 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,731.4286); h_SL2L265->SetBinContent(3,928.5715); h_SL2L265->SetBinContent(4,1047.143); h_SL2L265->SetBinContent(5,1035.714); h_SL2L265->SetBinContent(6,1127.143); h_SL2L265->SetBinContent(7,1187.143); h_SL2L265->SetBinContent(8,1254.286); h_SL2L265->SetBinContent(9,1220); h_SL2L265->SetBinContent(10,1437.143); h_SL2L265->SetBinContent(11,1480); h_SL2L265->SetBinContent(12,1554.286); h_SL2L265->SetBinContent(13,1768.571); h_SL2L265->SetBinContent(14,1705.714); h_SL2L265->SetBinContent(15,1908.572); h_SL2L265->SetBinContent(16,2008.572); h_SL2L265->SetBinContent(17,2042.857); h_SL2L265->SetBinContent(18,2248.572); h_SL2L265->SetBinContent(19,2428.572); h_SL2L265->SetBinContent(20,2424.286); h_SL2L265->SetBinContent(21,2542.857); h_SL2L265->SetBinContent(22,2752.857); h_SL2L265->SetBinContent(23,2882.857); h_SL2L265->SetBinContent(24,3322.857); h_SL2L265->SetBinContent(25,4438.572); h_SL2L265->SetBinContent(26,17488.57); h_SL2L265->SetBinContent(27,34850); h_SL2L265->SetBinContent(28,45651.43); h_SL2L265->SetBinContent(29,51531.43); h_SL2L265->SetBinContent(30,52457.14); h_SL2L265->SetBinContent(31,50671.43); h_SL2L265->SetBinContent(32,49932.86); h_SL2L265->SetBinContent(33,50277.14); h_SL2L265->SetBinContent(34,41538.57); h_SL2L265->SetBinContent(35,14930); h_SL2L265->SetBinContent(36,4947.143); h_SL2L265->SetBinContent(37,3354.286); h_SL2L265->SetBinContent(38,2772.857); h_SL2L265->SetBinContent(39,3822.857); h_SL2L265->SetBinContent(40,5245.714); h_SL2L265->SetBinContent(41,3684.286); h_SL2L265->SetBinContent(42,3620); h_SL2L265->SetBinContent(43,2427.143); h_SL2L265->SetBinContent(44,3758.572); h_SL2L265->SetBinContent(45,1430); h_SL2L265->SetBinContent(46,1368.571); h_SL2L265->SetBinContent(47,1191.429); h_SL2L265->SetBinContent(48,1195.714); h_SL2L265->SetBinContent(49,1095.714); h_SL2L265->SetBinContent(50,1008.571); h_SL2L265->SetBinContent(51,934.2858); h_SL2L265->SetBinContent(52,802.8572); h_SL2L265->SetBinContent(53,904.2857); h_SL2L265->SetBinContent(54,844.2857); h_SL2L265->SetBinContent(55,721.4286); h_SL2L265->SetBinContent(56,670); h_SL2L265->SetBinContent(57,582.8572); h_SL2L265->SetMaximum(87294.86); 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,735.7143); h_SL2L366->SetBinContent(2,820); h_SL2L366->SetBinContent(3,990); h_SL2L366->SetBinContent(4,992.8572); h_SL2L366->SetBinContent(5,1055.714); h_SL2L366->SetBinContent(6,1127.143); h_SL2L366->SetBinContent(7,1241.429); h_SL2L366->SetBinContent(8,1157.143); h_SL2L366->SetBinContent(9,1332.857); h_SL2L366->SetBinContent(10,1461.429); h_SL2L366->SetBinContent(11,1542.857); h_SL2L366->SetBinContent(12,1634.286); h_SL2L366->SetBinContent(13,1740); h_SL2L366->SetBinContent(14,1788.571); h_SL2L366->SetBinContent(15,1971.429); h_SL2L366->SetBinContent(16,1920); h_SL2L366->SetBinContent(17,2134.286); h_SL2L366->SetBinContent(18,2324.286); h_SL2L366->SetBinContent(19,2537.143); h_SL2L366->SetBinContent(20,2471.429); h_SL2L366->SetBinContent(21,2482.857); h_SL2L366->SetBinContent(22,2810); h_SL2L366->SetBinContent(23,3054.286); h_SL2L366->SetBinContent(24,3648.572); h_SL2L366->SetBinContent(25,8605.715); h_SL2L366->SetBinContent(26,27095.71); h_SL2L366->SetBinContent(27,41150); h_SL2L366->SetBinContent(28,48692.86); h_SL2L366->SetBinContent(29,52722.86); h_SL2L366->SetBinContent(30,51508.57); h_SL2L366->SetBinContent(31,50435.71); h_SL2L366->SetBinContent(32,50271.43); h_SL2L366->SetBinContent(33,48712.86); h_SL2L366->SetBinContent(34,27904.29); h_SL2L366->SetBinContent(35,7541.429); h_SL2L366->SetBinContent(36,3904.286); h_SL2L366->SetBinContent(37,2877.143); h_SL2L366->SetBinContent(38,2505.714); h_SL2L366->SetBinContent(39,2150); h_SL2L366->SetBinContent(40,3978.572); h_SL2L366->SetBinContent(41,2344.286); h_SL2L366->SetBinContent(42,1811.429); h_SL2L366->SetBinContent(43,1614.286); h_SL2L366->SetBinContent(44,1532.857); h_SL2L366->SetBinContent(45,1375.714); h_SL2L366->SetBinContent(46,1225.714); h_SL2L366->SetBinContent(47,1202.857); h_SL2L366->SetBinContent(48,1091.429); h_SL2L366->SetBinContent(49,1010); h_SL2L366->SetBinContent(50,917.1429); h_SL2L366->SetBinContent(51,848.5715); h_SL2L366->SetBinContent(52,817.1429); h_SL2L366->SetBinContent(53,848.5715); h_SL2L366->SetBinContent(54,832.8572); h_SL2L366->SetBinContent(55,665.7143); h_SL2L366->SetBinContent(56,627.1429); h_SL2L366->SetBinContent(57,578.5715); h_SL2L366->SetMaximum(87294.86); 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,770); h_SL2L467->SetBinContent(3,905.7143); h_SL2L467->SetBinContent(4,1002.857); h_SL2L467->SetBinContent(5,990); h_SL2L467->SetBinContent(6,1067.143); h_SL2L467->SetBinContent(7,1137.143); h_SL2L467->SetBinContent(8,1158.571); h_SL2L467->SetBinContent(9,1217.143); h_SL2L467->SetBinContent(10,1367.143); h_SL2L467->SetBinContent(11,1454.286); h_SL2L467->SetBinContent(12,1494.286); h_SL2L467->SetBinContent(13,1722.857); h_SL2L467->SetBinContent(14,1664.286); h_SL2L467->SetBinContent(15,1847.143); h_SL2L467->SetBinContent(16,1892.857); h_SL2L467->SetBinContent(17,1915.714); h_SL2L467->SetBinContent(18,2148.572); h_SL2L467->SetBinContent(19,2408.572); h_SL2L467->SetBinContent(20,2384.286); h_SL2L467->SetBinContent(21,2414.286); h_SL2L467->SetBinContent(22,2645.714); h_SL2L467->SetBinContent(23,2830); h_SL2L467->SetBinContent(24,3178.572); h_SL2L467->SetBinContent(25,4340); h_SL2L467->SetBinContent(26,17487.14); h_SL2L467->SetBinContent(27,34860); h_SL2L467->SetBinContent(28,45610); h_SL2L467->SetBinContent(29,51572.86); h_SL2L467->SetBinContent(30,52947.14); h_SL2L467->SetBinContent(31,50611.43); h_SL2L467->SetBinContent(32,50221.43); h_SL2L467->SetBinContent(33,50357.14); h_SL2L467->SetBinContent(34,41588.57); h_SL2L467->SetBinContent(35,14941.43); h_SL2L467->SetBinContent(36,4781.429); h_SL2L467->SetBinContent(37,3257.143); h_SL2L467->SetBinContent(38,2725.714); h_SL2L467->SetBinContent(39,2195.714); h_SL2L467->SetBinContent(40,1992.857); h_SL2L467->SetBinContent(41,1795.714); h_SL2L467->SetBinContent(42,2232.857); h_SL2L467->SetBinContent(43,1648.571); h_SL2L467->SetBinContent(44,1520); h_SL2L467->SetBinContent(45,1330); h_SL2L467->SetBinContent(46,1254.286); h_SL2L467->SetBinContent(47,1141.429); h_SL2L467->SetBinContent(48,1194.286); h_SL2L467->SetBinContent(49,1015.714); h_SL2L467->SetBinContent(50,965.7143); h_SL2L467->SetBinContent(51,865.7143); h_SL2L467->SetBinContent(52,797.1429); h_SL2L467->SetBinContent(53,825.7143); h_SL2L467->SetBinContent(54,821.4286); h_SL2L467->SetBinContent(55,698.5715); h_SL2L467->SetBinContent(56,618.5715); h_SL2L467->SetBinContent(57,572.8572); h_SL2L467->SetMaximum(87294.86); 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 6556"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }