void RatesPerCell_Removing_noisy_cells_run_4999_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 14:54:39 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-8877.138,67.5,79894.24); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 4999",60,0,60); h_SL2L164->SetBinContent(1,508.0201); h_SL2L164->SetBinContent(2,479.7968); h_SL2L164->SetBinContent(3,658.5446); h_SL2L164->SetBinContent(4,663.2485); h_SL2L164->SetBinContent(5,790.2536); h_SL2L164->SetBinContent(6,809.0692); h_SL2L164->SetBinContent(7,762.0302); h_SL2L164->SetBinContent(8,870.2197); h_SL2L164->SetBinContent(9,1025.448); h_SL2L164->SetBinContent(10,992.5209); h_SL2L164->SetBinContent(11,1185.38); h_SL2L164->SetBinContent(12,1232.419); h_SL2L164->SetBinContent(13,1340.609); h_SL2L164->SetBinContent(14,1528.764); h_SL2L164->SetBinContent(15,1556.988); h_SL2L164->SetBinContent(16,1778.071); h_SL2L164->SetBinContent(17,1923.891); h_SL2L164->SetBinContent(18,1938.003); h_SL2L164->SetBinContent(19,2173.197); h_SL2L164->SetBinContent(20,2229.644); h_SL2L164->SetBinContent(21,2342.537); h_SL2L164->SetBinContent(22,2784.703); h_SL2L164->SetBinContent(23,3071.64); h_SL2L164->SetBinContent(24,3363.281); h_SL2L164->SetBinContent(25,7879.016); h_SL2L164->SetBinContent(26,28086.93); h_SL2L164->SetBinContent(27,43129.97); h_SL2L164->SetBinContent(28,50261.07); h_SL2L164->SetBinContent(29,53520.86); h_SL2L164->SetBinContent(30,51634.61); h_SL2L164->SetBinContent(31,46700.22); h_SL2L164->SetBinContent(32,47325.84); h_SL2L164->SetBinContent(33,46286.28); h_SL2L164->SetBinContent(34,25965.47); h_SL2L164->SetBinContent(36,3781.928); h_SL2L164->SetBinContent(37,4924.973); h_SL2L164->SetBinContent(38,3170.422); h_SL2L164->SetBinContent(39,3772.52); h_SL2L164->SetBinContent(40,18354.58); h_SL2L164->SetBinContent(41,5442.401); h_SL2L164->SetBinContent(42,5950.421); h_SL2L164->SetBinContent(43,6199.728); h_SL2L164->SetBinContent(44,6011.572); h_SL2L164->SetBinContent(45,992.5209); h_SL2L164->SetBinContent(46,973.7053); h_SL2L164->SetBinContent(47,870.2197); h_SL2L164->SetBinContent(48,799.6614); h_SL2L164->SetBinContent(49,780.8458); h_SL2L164->SetBinContent(50,682.0641); h_SL2L164->SetBinContent(51,578.5785); h_SL2L164->SetBinContent(52,564.4669); h_SL2L164->SetBinContent(53,503.3163); h_SL2L164->SetBinContent(54,569.1707); h_SL2L164->SetBinContent(55,442.1657); h_SL2L164->SetBinContent(56,376.3112); h_SL2L164->SetBinContent(57,305.7529); h_SL2L164->SetMaximum(71017.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,413.9424); h_SL2L265->SetBinContent(2,508.0201); h_SL2L265->SetBinContent(3,606.8019); h_SL2L265->SetBinContent(4,606.8019); h_SL2L265->SetBinContent(5,733.8069); h_SL2L265->SetBinContent(6,818.4769); h_SL2L265->SetBinContent(7,846.7003); h_SL2L265->SetBinContent(8,762.0302); h_SL2L265->SetBinContent(9,893.7391); h_SL2L265->SetBinContent(10,1053.671); h_SL2L265->SetBinContent(11,1006.633); h_SL2L265->SetBinContent(12,1190.084); h_SL2L265->SetBinContent(13,1048.968); h_SL2L265->SetBinContent(14,1429.983); h_SL2L265->SetBinContent(15,1472.318); h_SL2L265->SetBinContent(16,1528.764); h_SL2L265->SetBinContent(17,1839.221); h_SL2L265->SetBinContent(18,1768.663); h_SL2L265->SetBinContent(19,1938.003); h_SL2L265->SetBinContent(20,2229.644); h_SL2L265->SetBinContent(21,2300.202); h_SL2L265->SetBinContent(22,2521.285); h_SL2L265->SetBinContent(23,2751.776); h_SL2L265->SetBinContent(24,3057.529); h_SL2L265->SetBinContent(25,3828.967); h_SL2L265->SetBinContent(26,17319.72); h_SL2L265->SetBinContent(27,36723.27); h_SL2L265->SetBinContent(28,47768.01); h_SL2L265->SetBinContent(29,51761.61); h_SL2L265->SetBinContent(30,53323.3); h_SL2L265->SetBinContent(31,48440.66); h_SL2L265->SetBinContent(32,46465.03); h_SL2L265->SetBinContent(33,47335.25); h_SL2L265->SetBinContent(34,39437.42); h_SL2L265->SetBinContent(35,13241.45); h_SL2L265->SetBinContent(36,4534.55); h_SL2L265->SetBinContent(37,3052.825); h_SL2L265->SetBinContent(38,2328.426); h_SL2L265->SetBinContent(39,2681.218); h_SL2L265->SetBinContent(40,3462.063); h_SL2L265->SetBinContent(41,1552.284); h_SL2L265->SetBinContent(42,1491.133); h_SL2L265->SetBinContent(43,1241.827); h_SL2L265->SetBinContent(44,1500.541); h_SL2L265->SetBinContent(45,1053.671); h_SL2L265->SetBinContent(46,898.4431); h_SL2L265->SetBinContent(47,813.773); h_SL2L265->SetBinContent(48,809.0692); h_SL2L265->SetBinContent(49,780.8458); h_SL2L265->SetBinContent(50,724.3991); h_SL2L265->SetBinContent(51,540.9474); h_SL2L265->SetBinContent(52,597.394); h_SL2L265->SetBinContent(53,493.9085); h_SL2L265->SetBinContent(54,592.6902); h_SL2L265->SetBinContent(55,460.9813); h_SL2L265->SetBinContent(56,376.3112); h_SL2L265->SetBinContent(57,418.6462); h_SL2L265->SetMaximum(61754.56); 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,465.6852); h_SL2L366->SetBinContent(2,531.5396); h_SL2L366->SetBinContent(3,540.9474); h_SL2L366->SetBinContent(4,649.1368); h_SL2L366->SetBinContent(5,705.5836); h_SL2L366->SetBinContent(6,813.773); h_SL2L366->SetBinContent(7,696.1758); h_SL2L366->SetBinContent(8,823.1808); h_SL2L366->SetBinContent(9,931.3703); h_SL2L366->SetBinContent(10,1011.336); h_SL2L366->SetBinContent(11,1110.118); h_SL2L366->SetBinContent(12,1143.045); h_SL2L366->SetBinContent(13,1091.303); h_SL2L366->SetBinContent(14,1411.167); h_SL2L366->SetBinContent(15,1406.463); h_SL2L366->SetBinContent(16,1679.289); h_SL2L366->SetBinContent(17,1825.109); h_SL2L366->SetBinContent(18,1825.109); h_SL2L366->SetBinContent(19,1994.449); h_SL2L366->SetBinContent(20,2097.935); h_SL2L366->SetBinContent(21,2398.984); h_SL2L366->SetBinContent(22,2638.883); h_SL2L366->SetBinContent(23,2728.256); h_SL2L366->SetBinContent(24,3123.383); h_SL2L366->SetBinContent(25,7799.05); h_SL2L366->SetBinContent(26,28124.56); h_SL2L366->SetBinContent(27,43233.46); h_SL2L366->SetBinContent(28,50021.17); h_SL2L366->SetBinContent(29,53026.96); h_SL2L366->SetBinContent(30,51390); h_SL2L366->SetBinContent(31,46352.14); h_SL2L366->SetBinContent(32,47250.58); h_SL2L366->SetBinContent(33,46046.38); h_SL2L366->SetBinContent(34,25814.95); h_SL2L366->SetBinContent(35,6797.122); h_SL2L366->SetBinContent(36,3400.913); h_SL2L366->SetBinContent(37,2408.392); h_SL2L366->SetBinContent(38,2389.576); h_SL2L366->SetBinContent(39,1674.585); h_SL2L366->SetBinContent(40,2652.994); h_SL2L366->SetBinContent(41,1246.531); h_SL2L366->SetBinContent(42,1204.196); h_SL2L366->SetBinContent(43,1119.526); h_SL2L366->SetBinContent(44,1067.783); h_SL2L366->SetBinContent(45,856.108); h_SL2L366->SetBinContent(46,889.0353); h_SL2L366->SetBinContent(47,799.6614); h_SL2L366->SetBinContent(48,743.2147); h_SL2L366->SetBinContent(49,658.5446); h_SL2L366->SetBinContent(50,700.8796); h_SL2L366->SetBinContent(51,508.0201); h_SL2L366->SetBinContent(52,517.4279); h_SL2L366->SetBinContent(53,446.8696); h_SL2L366->SetBinContent(54,484.5007); h_SL2L366->SetBinContent(55,348.0879); h_SL2L366->SetBinContent(56,395.1268); h_SL2L366->SetBinContent(57,352.7918); h_SL2L366->SetMaximum(61754.56); 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,503.3163); h_SL2L467->SetBinContent(3,555.0591); h_SL2L467->SetBinContent(4,583.2824); h_SL2L467->SetBinContent(5,696.1758); h_SL2L467->SetBinContent(6,780.8458); h_SL2L467->SetBinContent(7,780.8458); h_SL2L467->SetBinContent(8,705.5836); h_SL2L467->SetBinContent(9,846.7003); h_SL2L467->SetBinContent(10,950.1859); h_SL2L467->SetBinContent(11,964.2975); h_SL2L467->SetBinContent(12,1048.968); h_SL2L467->SetBinContent(13,987.817); h_SL2L467->SetBinContent(14,1350.016); h_SL2L467->SetBinContent(15,1378.24); h_SL2L467->SetBinContent(16,1542.876); h_SL2L467->SetBinContent(17,1731.032); h_SL2L467->SetBinContent(18,1745.143); h_SL2L467->SetBinContent(19,1848.629); h_SL2L467->SetBinContent(20,2107.343); h_SL2L467->SetBinContent(21,2210.828); h_SL2L467->SetBinContent(22,2286.091); h_SL2L467->SetBinContent(23,2643.586); h_SL2L467->SetBinContent(24,2855.261); h_SL2L467->SetBinContent(25,3645.515); h_SL2L467->SetBinContent(26,17051.6); h_SL2L467->SetBinContent(27,36619.79); h_SL2L467->SetBinContent(28,47810.34); h_SL2L467->SetBinContent(29,51606.38); h_SL2L467->SetBinContent(30,53699.61); h_SL2L467->SetBinContent(31,48261.91); h_SL2L467->SetBinContent(32,46446.21); h_SL2L467->SetBinContent(33,47457.55); h_SL2L467->SetBinContent(34,39555.02); h_SL2L467->SetBinContent(35,13170.89); h_SL2L467->SetBinContent(36,4402.841); h_SL2L467->SetBinContent(37,2765.887); h_SL2L467->SetBinContent(38,2243.756); h_SL2L467->SetBinContent(39,2036.785); h_SL2L467->SetBinContent(40,1571.099); h_SL2L467->SetBinContent(41,1340.609); h_SL2L467->SetBinContent(42,1387.648); h_SL2L467->SetBinContent(43,1152.453); h_SL2L467->SetBinContent(44,1020.744); h_SL2L467->SetBinContent(45,969.0014); h_SL2L467->SetBinContent(46,804.3652); h_SL2L467->SetBinContent(47,813.773); h_SL2L467->SetBinContent(48,776.1419); h_SL2L467->SetBinContent(49,790.2536); h_SL2L467->SetBinContent(50,663.2485); h_SL2L467->SetBinContent(51,489.2046); h_SL2L467->SetBinContent(52,508.0201); h_SL2L467->SetBinContent(53,432.7579); h_SL2L467->SetBinContent(54,489.2046); h_SL2L467->SetBinContent(55,456.2774); h_SL2L467->SetBinContent(56,352.7918); h_SL2L467->SetBinContent(57,343.384); h_SL2L467->SetMaximum(61754.56); 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 4999"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }