void RatesPerCell_Removing_noisy_cells_run_4986_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:18:18 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9172.113,67.5,82549.01); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 4986",60,0,60); h_SL2L164->SetBinContent(1,669.7415); h_SL2L164->SetBinContent(2,791.8372); h_SL2L164->SetBinContent(3,922.5011); h_SL2L164->SetBinContent(4,1100.29); h_SL2L164->SetBinContent(5,1135.276); h_SL2L164->SetBinContent(6,1130.992); h_SL2L164->SetBinContent(7,1110.286); h_SL2L164->SetBinContent(8,1268.082); h_SL2L164->SetBinContent(9,8055.462); h_SL2L164->SetBinContent(10,1465.149); h_SL2L164->SetBinContent(11,1690.062); h_SL2L164->SetBinContent(12,1652.219); h_SL2L164->SetBinContent(13,1894.983); h_SL2L164->SetBinContent(14,2012.795); h_SL2L164->SetBinContent(15,2179.159); h_SL2L164->SetBinContent(16,2349.093); h_SL2L164->SetBinContent(17,2466.905); h_SL2L164->SetBinContent(18,2723.235); h_SL2L164->SetBinContent(19,2998.128); h_SL2L164->SetBinContent(20,3165.921); h_SL2L164->SetBinContent(21,3381.552); h_SL2L164->SetBinContent(22,3634.312); h_SL2L164->SetBinContent(23,3907.063); h_SL2L164->SetBinContent(24,4311.907); h_SL2L164->SetBinContent(25,9091.491); h_SL2L164->SetBinContent(26,29065.92); h_SL2L164->SetBinContent(27,44420); h_SL2L164->SetBinContent(28,52186.29); h_SL2L164->SetBinContent(29,55483.59); h_SL2L164->SetBinContent(30,52872.45); h_SL2L164->SetBinContent(31,48807.59); h_SL2L164->SetBinContent(32,49162.45); h_SL2L164->SetBinContent(33,47648.04); h_SL2L164->SetBinContent(34,27199.5); h_SL2L164->SetBinContent(35,7.140101); h_SL2L164->SetBinContent(36,4737.457); h_SL2L164->SetBinContent(37,8168.276); h_SL2L164->SetBinContent(38,5252.973); h_SL2L164->SetBinContent(39,6483.212); h_SL2L164->SetBinContent(40,30543.21); h_SL2L164->SetBinContent(41,8427.462); h_SL2L164->SetBinContent(42,8967.253); h_SL2L164->SetBinContent(43,9032.228); h_SL2L164->SetBinContent(44,9157.894); h_SL2L164->SetBinContent(45,1501.563); h_SL2L164->SetBinContent(46,1343.767); h_SL2L164->SetBinContent(47,1254.516); h_SL2L164->SetBinContent(48,1148.128); h_SL2L164->SetBinContent(49,1051.737); h_SL2L164->SetBinContent(50,949.6335); h_SL2L164->SetBinContent(51,879.6605); h_SL2L164->SetBinContent(52,858.2402); h_SL2L164->SetBinContent(53,842.5319); h_SL2L164->SetBinContent(54,786.8392); h_SL2L164->SetBinContent(55,672.5975); h_SL2L164->SetBinContent(56,553.3578); h_SL2L164->SetBinContent(57,2756.079); h_SL2L164->SetMaximum(73376.9); 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,626.9009); h_SL2L265->SetBinContent(2,734.0024); h_SL2L265->SetBinContent(3,864.6663); h_SL2L265->SetBinContent(4,1016.75); h_SL2L265->SetBinContent(5,1076.013); h_SL2L265->SetBinContent(6,1120.282); h_SL2L265->SetBinContent(7,1085.295); h_SL2L265->SetBinContent(8,1158.124); h_SL2L265->SetBinContent(9,1325.203); h_SL2L265->SetBinContent(10,1390.892); h_SL2L265->SetBinContent(11,1513.701); h_SL2L265->SetBinContent(12,1608.665); h_SL2L265->SetBinContent(13,1761.463); h_SL2L265->SetBinContent(14,1949.962); h_SL2L265->SetBinContent(15,2008.51); h_SL2L265->SetBinContent(16,2173.447); h_SL2L265->SetBinContent(17,2372.656); h_SL2L265->SetBinContent(18,2564.01); h_SL2L265->SetBinContent(19,2791.066); h_SL2L265->SetBinContent(20,3018.121); h_SL2L265->SetBinContent(21,3173.775); h_SL2L265->SetBinContent(22,3447.955); h_SL2L265->SetBinContent(23,3697.144); h_SL2L265->SetBinContent(24,4063.432); h_SL2L265->SetBinContent(25,4875.975); h_SL2L265->SetBinContent(26,18304.36); h_SL2L265->SetBinContent(27,37844.68); h_SL2L265->SetBinContent(28,48956.82); h_SL2L265->SetBinContent(29,53942.75); h_SL2L265->SetBinContent(30,54386.15); h_SL2L265->SetBinContent(31,49882.89); h_SL2L265->SetBinContent(32,48634.8); h_SL2L265->SetBinContent(33,49072.49); h_SL2L265->SetBinContent(34,41231.23); h_SL2L265->SetBinContent(35,14243.07); h_SL2L265->SetBinContent(36,5521.44); h_SL2L265->SetBinContent(37,3802.818); h_SL2L265->SetBinContent(38,3117.368); h_SL2L265->SetBinContent(39,4022.019); h_SL2L265->SetBinContent(40,5124.451); h_SL2L265->SetBinContent(41,2606.137); h_SL2L265->SetBinContent(42,2836.762); h_SL2L265->SetBinContent(43,2207.005); h_SL2L265->SetBinContent(44,2923.157); h_SL2L265->SetBinContent(45,1480.143); h_SL2L265->SetBinContent(46,1371.613); h_SL2L265->SetBinContent(47,1294.5); h_SL2L265->SetBinContent(48,1119.568); h_SL2L265->SetBinContent(49,1082.439); h_SL2L265->SetBinContent(50,944.6354); h_SL2L265->SetBinContent(51,905.3648); h_SL2L265->SetBinContent(52,826.1097); h_SL2L265->SetBinContent(53,786.8392); h_SL2L265->SetBinContent(54,784.6971); h_SL2L265->SetBinContent(55,707.584); h_SL2L265->SetBinContent(56,589.7723); h_SL2L265->SetBinContent(57,545.5037); h_SL2L265->SetMaximum(63806.12); 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,669.0275); h_SL2L366->SetBinContent(2,773.2729); h_SL2L366->SetBinContent(3,915.361); h_SL2L366->SetBinContent(4,1020.32); h_SL2L366->SetBinContent(5,1098.862); h_SL2L366->SetBinContent(6,1061.019); h_SL2L366->SetBinContent(7,1080.297); h_SL2L366->SetBinContent(8,1224.527); h_SL2L366->SetBinContent(9,1309.495); h_SL2L366->SetBinContent(10,1383.752); h_SL2L366->SetBinContent(11,1587.245); h_SL2L366->SetBinContent(12,1572.25); h_SL2L366->SetBinContent(13,1804.304); h_SL2L366->SetBinContent(14,1966.384); h_SL2L366->SetBinContent(15,2097.762); h_SL2L366->SetBinContent(16,2166.307); h_SL2L366->SetBinContent(17,2402.644); h_SL2L366->SetBinContent(18,2640.409); h_SL2L366->SetBinContent(19,2903.879); h_SL2L366->SetBinContent(20,3040.969); h_SL2L366->SetBinContent(21,3231.61); h_SL2L366->SetBinContent(22,3560.769); h_SL2L366->SetBinContent(23,3816.384); h_SL2L366->SetBinContent(24,4219.8); h_SL2L366->SetBinContent(25,8986.531); h_SL2L366->SetBinContent(26,29133.04); h_SL2L366->SetBinContent(27,44345.74); h_SL2L366->SetBinContent(28,51892.83); h_SL2L366->SetBinContent(29,54783.86); h_SL2L366->SetBinContent(30,52477.6); h_SL2L366->SetBinContent(31,48831.87); h_SL2L366->SetBinContent(32,49215.29); h_SL2L366->SetBinContent(33,47433.84); h_SL2L366->SetBinContent(34,27315.17); h_SL2L366->SetBinContent(35,7814.127); h_SL2L366->SetBinContent(36,4392.59); h_SL2L366->SetBinContent(37,3317.291); h_SL2L366->SetBinContent(38,2861.039); h_SL2L366->SetBinContent(39,2439.059); h_SL2L366->SetBinContent(40,3736.415); h_SL2L366->SetBinContent(41,2005.654); h_SL2L366->SetBinContent(42,1816.442); h_SL2L366->SetBinContent(43,1752.895); h_SL2L366->SetBinContent(44,1529.41); h_SL2L366->SetBinContent(45,1395.89); h_SL2L366->SetBinContent(46,1311.637); h_SL2L366->SetBinContent(47,1193.111); h_SL2L366->SetBinContent(48,1087.437); h_SL2L366->SetBinContent(49,986.762); h_SL2L366->SetBinContent(50,911.7909); h_SL2L366->SetBinContent(51,818.9696); h_SL2L366->SetBinContent(52,826.1097); h_SL2L366->SetBinContent(53,762.5628); h_SL2L366->SetBinContent(54,722.5782); h_SL2L366->SetBinContent(55,655.4613); h_SL2L366->SetBinContent(56,578.3482); h_SL2L366->SetBinContent(57,536.9356); h_SL2L366->SetMaximum(63806.12); 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,691.1618); h_SL2L467->SetBinContent(3,811.8295); h_SL2L467->SetBinContent(4,927.4991); h_SL2L467->SetBinContent(5,1035.315); h_SL2L467->SetBinContent(6,1032.459); h_SL2L467->SetBinContent(7,1050.309); h_SL2L467->SetBinContent(8,1094.578); h_SL2L467->SetBinContent(9,1265.226); h_SL2L467->SetBinContent(10,1335.913); h_SL2L467->SetBinContent(11,1432.304); h_SL2L467->SetBinContent(12,1547.26); h_SL2L467->SetBinContent(13,1631.513); h_SL2L467->SetBinContent(14,1859.996); h_SL2L467->SetBinContent(15,1884.987); h_SL2L467->SetBinContent(16,2073.485); h_SL2L467->SetBinContent(17,2220.572); h_SL2L467->SetBinContent(18,2429.776); h_SL2L467->SetBinContent(19,2696.816); h_SL2L467->SetBinContent(20,2956.002); h_SL2L467->SetBinContent(21,3067.387); h_SL2L467->SetBinContent(22,3359.418); h_SL2L467->SetBinContent(23,3575.763); h_SL2L467->SetBinContent(24,3916.345); h_SL2L467->SetBinContent(25,4762.447); h_SL2L467->SetBinContent(26,18278.66); h_SL2L467->SetBinContent(27,38115.29); h_SL2L467->SetBinContent(28,48878.99); h_SL2L467->SetBinContent(29,53878.49); h_SL2L467->SetBinContent(30,55108.73); h_SL2L467->SetBinContent(31,50002.13); h_SL2L467->SetBinContent(32,48836.86); h_SL2L467->SetBinContent(33,49155.31); h_SL2L467->SetBinContent(34,41319.77); h_SL2L467->SetBinContent(35,14255.93); h_SL2L467->SetBinContent(36,5325.087); h_SL2L467->SetBinContent(37,3758.549); h_SL2L467->SetBinContent(38,2906.021); h_SL2L467->SetBinContent(39,2581.146); h_SL2L467->SetBinContent(40,2224.855); h_SL2L467->SetBinContent(41,2028.503); h_SL2L467->SetBinContent(42,1944.25); h_SL2L467->SetBinContent(43,1682.208); h_SL2L467->SetBinContent(44,1554.4); h_SL2L467->SetBinContent(45,1425.878); h_SL2L467->SetBinContent(46,1328.059); h_SL2L467->SetBinContent(47,1258.086); h_SL2L467->SetBinContent(48,1130.992); h_SL2L467->SetBinContent(49,1003.898); h_SL2L467->SetBinContent(50,865.3802); h_SL2L467->SetBinContent(51,832.5358); h_SL2L467->SetBinContent(52,783.9831); h_SL2L467->SetBinContent(53,753.9947); h_SL2L467->SetBinContent(54,729.0043); h_SL2L467->SetBinContent(55,697.5879); h_SL2L467->SetBinContent(56,569.7801); h_SL2L467->SetBinContent(57,566.21); h_SL2L467->SetMaximum(63806.12); 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 4986"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }