void RatesPerCell_Removing_noisy_cells_run_5170_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:31:04 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-8968.276,67.5,80714.48); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5170",60,0,60); h_SL2L164->SetBinContent(1,628.4817); h_SL2L164->SetBinContent(2,782.8932); h_SL2L164->SetBinContent(3,918.3418); h_SL2L164->SetBinContent(4,1018.574); h_SL2L164->SetBinContent(5,1009.092); h_SL2L164->SetBinContent(6,1109.324); h_SL2L164->SetBinContent(7,1038.891); h_SL2L164->SetBinContent(8,1094.425); h_SL2L164->SetBinContent(9,1320.624); h_SL2L164->SetBinContent(10,1431.692); h_SL2L164->SetBinContent(11,1584.749); h_SL2L164->SetBinContent(12,1652.474); h_SL2L164->SetBinContent(13,1836.684); h_SL2L164->SetBinContent(14,1908.471); h_SL2L164->SetBinContent(15,2035.793); h_SL2L164->SetBinContent(16,2196.977); h_SL2L164->SetBinContent(17,2343.261); h_SL2L164->SetBinContent(18,2562.688); h_SL2L164->SetBinContent(19,2824.104); h_SL2L164->SetBinContent(20,2966.325); h_SL2L164->SetBinContent(21,3141.054); h_SL2L164->SetBinContent(22,3311.719); h_SL2L164->SetBinContent(23,3673.367); h_SL2L164->SetBinContent(24,4090.549); h_SL2L164->SetBinContent(25,8610.471); h_SL2L164->SetBinContent(26,28492.98); h_SL2L164->SetBinContent(27,43588.73); h_SL2L164->SetBinContent(28,51421.72); h_SL2L164->SetBinContent(29,54251.25); h_SL2L164->SetBinContent(30,50882.64); h_SL2L164->SetBinContent(31,46724.36); h_SL2L164->SetBinContent(32,46889.61); h_SL2L164->SetBinContent(33,45686.83); h_SL2L164->SetBinContent(34,25846.31); h_SL2L164->SetBinContent(36,4362.801); h_SL2L164->SetBinContent(37,4465.742); h_SL2L164->SetBinContent(38,3092.292); h_SL2L164->SetBinContent(39,3562.299); h_SL2L164->SetBinContent(40,47355.55); h_SL2L164->SetBinContent(41,4463.033); h_SL2L164->SetBinContent(42,4911.368); h_SL2L164->SetBinContent(43,5236.445); h_SL2L164->SetBinContent(44,5046.816); h_SL2L164->SetBinContent(45,1321.979); h_SL2L164->SetBinContent(46,1200.075); h_SL2L164->SetBinContent(47,1107.97); h_SL2L164->SetBinContent(48,1000.966); h_SL2L164->SetBinContent(49,960.3309); h_SL2L164->SetBinContent(50,809.9829); h_SL2L164->SetBinContent(51,736.8406); h_SL2L164->SetBinContent(52,688.0791); h_SL2L164->SetBinContent(53,711.1054); h_SL2L164->SetBinContent(54,666.4073); h_SL2L164->SetBinContent(55,604.101); h_SL2L164->SetBinContent(56,536.3766); h_SL2L164->SetBinContent(57,479.4882); h_SL2L164->SetMaximum(71746.2); 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,581.0747); h_SL2L265->SetBinContent(2,735.4861); h_SL2L265->SetBinContent(3,841.1361); h_SL2L265->SetBinContent(4,987.4207); h_SL2L265->SetBinContent(5,948.1405); h_SL2L265->SetBinContent(6,1071.399); h_SL2L265->SetBinContent(7,1018.574); h_SL2L265->SetBinContent(8,1051.082); h_SL2L265->SetBinContent(9,1186.53); h_SL2L265->SetBinContent(10,1361.259); h_SL2L265->SetBinContent(11,1420.856); h_SL2L265->SetBinContent(12,1615.902); h_SL2L265->SetBinContent(13,1640.283); h_SL2L265->SetBinContent(14,1813.657); h_SL2L265->SetBinContent(15,1867.837); h_SL2L265->SetBinContent(16,2043.92); h_SL2L265->SetBinContent(17,2211.876); h_SL2L265->SetBinContent(18,2486.837); h_SL2L265->SetBinContent(19,2526.117); h_SL2L265->SetBinContent(20,2863.384); h_SL2L265->SetBinContent(21,2977.161); h_SL2L265->SetBinContent(22,3177.625); h_SL2L265->SetBinContent(23,3357.772); h_SL2L265->SetBinContent(24,3803.398); h_SL2L265->SetBinContent(25,4689.232); h_SL2L265->SetBinContent(26,17671.98); h_SL2L265->SetBinContent(27,37158.98); h_SL2L265->SetBinContent(28,48704.62); h_SL2L265->SetBinContent(29,53219.13); h_SL2L265->SetBinContent(30,53136.5); h_SL2L265->SetBinContent(31,47920.38); h_SL2L265->SetBinContent(32,46346.46); h_SL2L265->SetBinContent(33,46626.84); h_SL2L265->SetBinContent(34,39097.25); h_SL2L265->SetBinContent(35,13841.5); h_SL2L265->SetBinContent(36,5205.292); h_SL2L265->SetBinContent(37,3673.367); h_SL2L265->SetBinContent(38,2868.802); h_SL2L265->SetBinContent(39,2866.093); h_SL2L265->SetBinContent(40,3344.227); h_SL2L265->SetBinContent(41,2045.275); h_SL2L265->SetBinContent(42,1880.027); h_SL2L265->SetBinContent(43,1651.119); h_SL2L265->SetBinContent(44,1556.305); h_SL2L265->SetBinContent(45,1347.714); h_SL2L265->SetBinContent(46,1246.128); h_SL2L265->SetBinContent(47,1101.198); h_SL2L265->SetBinContent(48,1061.917); h_SL2L265->SetBinContent(49,965.7488); h_SL2L265->SetBinContent(50,849.263); h_SL2L265->SetBinContent(51,796.438); h_SL2L265->SetBinContent(52,753.0945); h_SL2L265->SetBinContent(53,658.2804); h_SL2L265->SetBinContent(54,658.2804); h_SL2L265->SetBinContent(55,651.508); h_SL2L265->SetBinContent(56,619.0003); h_SL2L265->SetBinContent(57,494.3876); h_SL2L265->SetMaximum(62388.93); 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,642.0266); h_SL2L366->SetBinContent(2,785.6022); h_SL2L366->SetBinContent(3,885.8342); h_SL2L366->SetBinContent(4,940.0136); h_SL2L366->SetBinContent(5,991.4841); h_SL2L366->SetBinContent(6,1013.156); h_SL2L366->SetBinContent(7,980.6482); h_SL2L366->SetBinContent(8,1087.653); h_SL2L366->SetBinContent(9,1292.18); h_SL2L366->SetBinContent(10,1370.74); h_SL2L366->SetBinContent(11,1521.088); h_SL2L366->SetBinContent(12,1575.268); h_SL2L366->SetBinContent(13,1709.362); h_SL2L366->SetBinContent(14,1833.975); h_SL2L366->SetBinContent(15,1922.016); h_SL2L366->SetBinContent(16,2118.417); h_SL2L366->SetBinContent(17,2217.294); h_SL2L366->SetBinContent(18,2494.964); h_SL2L366->SetBinContent(19,2677.82); h_SL2L366->SetBinContent(20,2897.247); h_SL2L366->SetBinContent(21,3054.367); h_SL2L366->SetBinContent(22,3218.26); h_SL2L366->SetBinContent(23,3470.194); h_SL2L366->SetBinContent(24,4007.926); h_SL2L366->SetBinContent(25,8518.365); h_SL2L366->SetBinContent(26,28525.48); h_SL2L366->SetBinContent(27,43468.18); h_SL2L366->SetBinContent(28,51395.99); h_SL2L366->SetBinContent(29,54138.82); h_SL2L366->SetBinContent(30,50450.56); h_SL2L366->SetBinContent(31,46339.69); h_SL2L366->SetBinContent(32,46816.47); h_SL2L366->SetBinContent(33,45533.77); h_SL2L366->SetBinContent(34,25976.34); h_SL2L366->SetBinContent(35,7375.179); h_SL2L366->SetBinContent(36,4265.278); h_SL2L366->SetBinContent(37,3115.319); h_SL2L366->SetBinContent(38,2685.947); h_SL2L366->SetBinContent(39,2268.765); h_SL2L366->SetBinContent(40,2760.443); h_SL2L366->SetBinContent(41,1878.673); h_SL2L366->SetBinContent(42,1633.511); h_SL2L366->SetBinContent(43,1527.861); h_SL2L366->SetBinContent(44,1304.37); h_SL2L366->SetBinContent(45,1270.508); h_SL2L366->SetBinContent(46,1166.213); h_SL2L366->SetBinContent(47,1005.029); h_SL2L366->SetBinContent(48,972.5213); h_SL2L366->SetBinContent(49,904.7969); h_SL2L366->SetBinContent(50,758.5125); h_SL2L366->SetBinContent(51,738.1951); h_SL2L366->SetBinContent(52,682.6612); h_SL2L366->SetBinContent(53,640.6721); h_SL2L366->SetBinContent(54,646.09); h_SL2L366->SetBinContent(55,581.0747); h_SL2L366->SetBinContent(56,553.985); h_SL2L366->SetBinContent(57,470.0068); h_SL2L366->SetMaximum(62388.93); 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,686.7246); h_SL2L467->SetBinContent(3,792.3746); h_SL2L467->SetBinContent(4,906.1514); h_SL2L467->SetBinContent(5,918.3418); h_SL2L467->SetBinContent(6,954.913); h_SL2L467->SetBinContent(7,1009.092); h_SL2L467->SetBinContent(8,982.0027); h_SL2L467->SetBinContent(9,1122.869); h_SL2L467->SetBinContent(10,1301.661); h_SL2L467->SetBinContent(11,1391.058); h_SL2L467->SetBinContent(12,1541.406); h_SL2L467->SetBinContent(13,1527.861); h_SL2L467->SetBinContent(14,1740.515); h_SL2L467->SetBinContent(15,1759.478); h_SL2L467->SetBinContent(16,1950.46); h_SL2L467->SetBinContent(17,2100.809); h_SL2L467->SetBinContent(18,2389.314); h_SL2L467->SetBinContent(19,2424.531); h_SL2L467->SetBinContent(20,2803.787); h_SL2L467->SetBinContent(21,2840.358); h_SL2L467->SetBinContent(22,3090.938); h_SL2L467->SetBinContent(23,3322.555); h_SL2L467->SetBinContent(24,3701.812); h_SL2L467->SetBinContent(25,4507.731); h_SL2L467->SetBinContent(26,17624.58); h_SL2L467->SetBinContent(27,37214.52); h_SL2L467->SetBinContent(28,48678.89); h_SL2L467->SetBinContent(29,53078.26); h_SL2L467->SetBinContent(30,53469.71); h_SL2L467->SetBinContent(31,48008.42); h_SL2L467->SetBinContent(32,46536.09); h_SL2L467->SetBinContent(33,46641.74); h_SL2L467->SetBinContent(34,39350.54); h_SL2L467->SetBinContent(35,13800.86); h_SL2L467->SetBinContent(36,5080.679); h_SL2L467->SetBinContent(37,3598.871); h_SL2L467->SetBinContent(38,2759.089); h_SL2L467->SetBinContent(39,2461.102); h_SL2L467->SetBinContent(40,2084.555); h_SL2L467->SetBinContent(41,1923.371); h_SL2L467->SetBinContent(42,1729.679); h_SL2L467->SetBinContent(43,1554.95); h_SL2L467->SetBinContent(44,1385.64); h_SL2L467->SetBinContent(45,1296.244); h_SL2L467->SetBinContent(46,1172.985); h_SL2L467->SetBinContent(47,1019.928); h_SL2L467->SetBinContent(48,1018.574); h_SL2L467->SetBinContent(49,903.4424); h_SL2L467->SetBinContent(50,830.3002); h_SL2L467->SetBinContent(51,693.4971); h_SL2L467->SetBinContent(52,723.2958); h_SL2L467->SetBinContent(53,663.6984); h_SL2L467->SetBinContent(54,602.7465); h_SL2L467->SetBinContent(55,583.7837); h_SL2L467->SetBinContent(56,586.4926); h_SL2L467->SetBinContent(57,482.1972); h_SL2L467->SetMaximum(62388.93); 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 5170"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }