void RatesPerCell_Removing_noisy_cells_run_6538_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:42:56 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-8623.132,67.5,77608.18); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6538",60,0,60); h_SL2L164->SetBinContent(1,641.1885); h_SL2L164->SetBinContent(2,732.5452); h_SL2L164->SetBinContent(3,876.3474); h_SL2L164->SetBinContent(4,955.0156); h_SL2L164->SetBinContent(5,929.6388); h_SL2L164->SetBinContent(6,965.1664); h_SL2L164->SetBinContent(7,1062.444); h_SL2L164->SetBinContent(8,1085.283); h_SL2L164->SetBinContent(9,1202.863); h_SL2L164->SetBinContent(10,1286.607); h_SL2L164->SetBinContent(11,1357.662); h_SL2L164->SetBinContent(12,1508.231); h_SL2L164->SetBinContent(13,1620.735); h_SL2L164->SetBinContent(14,1706.171); h_SL2L164->SetBinContent(15,1759.462); h_SL2L164->SetBinContent(16,1888.038); h_SL2L164->SetBinContent(17,1959.939); h_SL2L164->SetBinContent(18,2140.115); h_SL2L164->SetBinContent(19,2211.17); h_SL2L164->SetBinContent(20,2294.914); h_SL2L164->SetBinContent(21,2321.982); h_SL2L164->SetBinContent(22,2585.902); h_SL2L164->SetBinContent(23,2849.821); h_SL2L164->SetBinContent(24,3479.167); h_SL2L164->SetBinContent(25,8609.521); h_SL2L164->SetBinContent(26,26062.03); h_SL2L164->SetBinContent(27,40431.25); h_SL2L164->SetBinContent(28,48249.02); h_SL2L164->SetBinContent(29,52162.97); h_SL2L164->SetBinContent(30,51085.3); h_SL2L164->SetBinContent(31,50049.93); h_SL2L164->SetBinContent(32,51275.63); h_SL2L164->SetBinContent(33,49857.91); h_SL2L164->SetBinContent(34,28324.8); h_SL2L164->SetBinContent(35,1.69179); h_SL2L164->SetBinContent(36,3637.349); h_SL2L164->SetBinContent(37,8340.526); h_SL2L164->SetBinContent(38,4696.41); h_SL2L164->SetBinContent(39,6603.058); h_SL2L164->SetBinContent(40,31150.09); h_SL2L164->SetBinContent(41,47761.78); h_SL2L164->SetBinContent(42,12871.14); h_SL2L164->SetBinContent(43,12751.87); h_SL2L164->SetBinContent(44,13257.71); h_SL2L164->SetBinContent(45,1262.922); h_SL2L164->SetBinContent(46,1163.106); h_SL2L164->SetBinContent(47,1028.609); h_SL2L164->SetBinContent(48,1045.526); h_SL2L164->SetBinContent(49,918.6422); h_SL2L164->SetBinContent(50,849.2787); h_SL2L164->SetBinContent(51,799.3709); h_SL2L164->SetBinContent(52,742.696); h_SL2L164->SetBinContent(53,742.696); h_SL2L164->SetBinContent(54,707.1683); h_SL2L164->SetBinContent(55,666.5654); h_SL2L164->SetBinContent(56,573.5169); h_SL2L164->SetBinContent(57,6218.175); h_SL2L164->SetMaximum(68985.05); 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,556.599); h_SL2L265->SetBinContent(2,696.1718); h_SL2L265->SetBinContent(3,810.3676); h_SL2L265->SetBinContent(4,883.9604); h_SL2L265->SetBinContent(5,947.4026); h_SL2L265->SetBinContent(6,925.4093); h_SL2L265->SetBinContent(7,995.6186); h_SL2L265->SetBinContent(8,1049.756); h_SL2L265->SetBinContent(9,1115.736); h_SL2L265->SetBinContent(10,1267.151); h_SL2L265->SetBinContent(11,1278.994); h_SL2L265->SetBinContent(12,1410.107); h_SL2L265->SetBinContent(13,1543.759); h_SL2L265->SetBinContent(14,1638.499); h_SL2L265->SetBinContent(15,1690.944); h_SL2L265->SetBinContent(16,1787.376); h_SL2L265->SetBinContent(17,1938.792); h_SL2L265->SetBinContent(18,2030.994); h_SL2L265->SetBinContent(19,2112.2); h_SL2L265->SetBinContent(20,2217.091); h_SL2L265->SetBinContent(21,2289.838); h_SL2L265->SetBinContent(22,2376.965); h_SL2L265->SetBinContent(23,2623.967); h_SL2L265->SetBinContent(24,3068.062); h_SL2L265->SetBinContent(25,4120.355); h_SL2L265->SetBinContent(26,17193.67); h_SL2L265->SetBinContent(27,33561.74); h_SL2L265->SetBinContent(28,45167.42); h_SL2L265->SetBinContent(29,50367.14); h_SL2L265->SetBinContent(30,51556.46); h_SL2L265->SetBinContent(31,50207.26); h_SL2L265->SetBinContent(32,50156.51); h_SL2L265->SetBinContent(33,51841.53); h_SL2L265->SetBinContent(34,42675.41); h_SL2L265->SetBinContent(35,14796.4); h_SL2L265->SetBinContent(36,4630.43); h_SL2L265->SetBinContent(37,3199.176); h_SL2L265->SetBinContent(38,2579.134); h_SL2L265->SetBinContent(39,3654.267); h_SL2L265->SetBinContent(40,5240.321); h_SL2L265->SetBinContent(41,4259.082); h_SL2L265->SetBinContent(42,3464.787); h_SL2L265->SetBinContent(43,2058.909); h_SL2L265->SetBinContent(44,3380.197); h_SL2L265->SetBinContent(45,1277.302); h_SL2L265->SetBinContent(46,1231.623); h_SL2L265->SetBinContent(47,1138.575); h_SL2L265->SetBinContent(48,1026.071); h_SL2L265->SetBinContent(49,962.6287); h_SL2L265->SetBinContent(50,861.1213); h_SL2L265->SetBinContent(51,834.0526); h_SL2L265->SetBinContent(52,752.8467); h_SL2L265->SetBinContent(53,708.0143); h_SL2L265->SetBinContent(54,709.7061); h_SL2L265->SetBinContent(55,652.1852); h_SL2L265->SetBinContent(56,612.4281); h_SL2L265->SetBinContent(57,546.4483); h_SL2L265->SetMaximum(59987.42); 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,651.3393); h_SL2L366->SetBinContent(2,745.2336); h_SL2L366->SetBinContent(3,838.2821); h_SL2L366->SetBinContent(4,887.3441); h_SL2L366->SetBinContent(5,908.4914); h_SL2L366->SetBinContent(6,900.0325); h_SL2L366->SetBinContent(7,1015.92); h_SL2L366->SetBinContent(8,1043.835); h_SL2L366->SetBinContent(9,1181.716); h_SL2L366->SetBinContent(10,1231.623); h_SL2L366->SetBinContent(11,1345.819); h_SL2L366->SetBinContent(12,1465.09); h_SL2L366->SetBinContent(13,1558.139); h_SL2L366->SetBinContent(14,1664.722); h_SL2L366->SetBinContent(15,1711.246); h_SL2L366->SetBinContent(16,1807.678); h_SL2L366->SetBinContent(17,1932.87); h_SL2L366->SetBinContent(18,2049.604); h_SL2L366->SetBinContent(19,2147.728); h_SL2L366->SetBinContent(20,2195.944); h_SL2L366->SetBinContent(21,2216.245); h_SL2L366->SetBinContent(22,2445.483); h_SL2L366->SetBinContent(23,2793.146); h_SL2L366->SetBinContent(24,3339.594); h_SL2L366->SetBinContent(25,8491.941); h_SL2L366->SetBinContent(26,26188.07); h_SL2L366->SetBinContent(27,40255.3); h_SL2L366->SetBinContent(28,48133.97); h_SL2L366->SetBinContent(29,51693.5); h_SL2L366->SetBinContent(30,51053.16); h_SL2L366->SetBinContent(31,50164.97); h_SL2L366->SetBinContent(32,51437.2); h_SL2L366->SetBinContent(33,49786.01); h_SL2L366->SetBinContent(34,28506.67); h_SL2L366->SetBinContent(35,7167.27); h_SL2L366->SetBinContent(36,3623.815); h_SL2L366->SetBinContent(37,2780.458); h_SL2L366->SetBinContent(38,2371.044); h_SL2L366->SetBinContent(39,1982.778); h_SL2L366->SetBinContent(40,4070.448); h_SL2L366->SetBinContent(41,2285.609); h_SL2L366->SetBinContent(42,1564.906); h_SL2L366->SetBinContent(43,1452.402); h_SL2L366->SetBinContent(44,1373.734); h_SL2L366->SetBinContent(45,1189.329); h_SL2L366->SetBinContent(46,1151.263); h_SL2L366->SetBinContent(47,1019.304); h_SL2L366->SetBinContent(48,1018.458); h_SL2L366->SetBinContent(49,891.5735); h_SL2L366->SetBinContent(50,829.8232); h_SL2L366->SetBinContent(51,746.0795); h_SL2L366->SetBinContent(52,703.7848); h_SL2L366->SetBinContent(53,698.7094); h_SL2L366->SetBinContent(54,654.7228); h_SL2L366->SetBinContent(55,654.7228); h_SL2L366->SetBinContent(56,577.7464); h_SL2L366->SetBinContent(57,561.6744); h_SL2L366->SetMaximum(59987.42); 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,701.2471); h_SL2L467->SetBinContent(3,777.3777); h_SL2L467->SetBinContent(4,829.8232); h_SL2L467->SetBinContent(5,903.416); h_SL2L467->SetBinContent(6,871.272); h_SL2L467->SetBinContent(7,995.6186); h_SL2L467->SetBinContent(8,1020.15); h_SL2L467->SetBinContent(9,1038.759); h_SL2L467->SetBinContent(10,1208.784); h_SL2L467->SetBinContent(11,1230.777); h_SL2L467->SetBinContent(12,1366.967); h_SL2L467->SetBinContent(13,1496.389); h_SL2L467->SetBinContent(14,1580.978); h_SL2L467->SetBinContent(15,1637.653); h_SL2L467->SetBinContent(16,1688.407); h_SL2L467->SetBinContent(17,1816.983); h_SL2L467->SetBinContent(18,1936.254); h_SL2L467->SetBinContent(19,2049.604); h_SL2L467->SetBinContent(20,2173.105); h_SL2L467->SetBinContent(21,2207.786); h_SL2L467->SetBinContent(22,2266.153); h_SL2L467->SetBinContent(23,2530.918); h_SL2L467->SetBinContent(24,2955.558); h_SL2L467->SetBinContent(25,4035.766); h_SL2L467->SetBinContent(26,17164.9); h_SL2L467->SetBinContent(27,33813.81); h_SL2L467->SetBinContent(28,44958.48); h_SL2L467->SetBinContent(29,50285.09); h_SL2L467->SetBinContent(30,51926.97); h_SL2L467->SetBinContent(31,50326.54); h_SL2L467->SetBinContent(32,50359.52); h_SL2L467->SetBinContent(33,51900.74); h_SL2L467->SetBinContent(34,42562.06); h_SL2L467->SetBinContent(35,14771.87); h_SL2L467->SetBinContent(36,4511.159); h_SL2L467->SetBinContent(37,3118.815); h_SL2L467->SetBinContent(38,2425.181); h_SL2L467->SetBinContent(39,2160.416); h_SL2L467->SetBinContent(40,1805.986); h_SL2L467->SetBinContent(41,1658.8); h_SL2L467->SetBinContent(42,2168.875); h_SL2L467->SetBinContent(43,1454.094); h_SL2L467->SetBinContent(44,1354.278); h_SL2L467->SetBinContent(45,1219.781); h_SL2L467->SetBinContent(46,1178.332); h_SL2L467->SetBinContent(47,1079.362); h_SL2L467->SetBinContent(48,997.3104); h_SL2L467->SetBinContent(49,944.019); h_SL2L467->SetBinContent(50,845.0493); h_SL2L467->SetBinContent(51,773.9941); h_SL2L467->SetBinContent(52,722.3945); h_SL2L467->SetBinContent(53,666.5654); h_SL2L467->SetBinContent(54,669.1031); h_SL2L467->SetBinContent(55,622.5789); h_SL2L467->SetBinContent(56,598.8938); h_SL2L467->SetBinContent(57,559.1367); h_SL2L467->SetMaximum(59987.42); 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 6538"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }