void RatesPerCell_Removing_noisy_cells_run_4981_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:16:51 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-8876.707,67.5,79890.36); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 4981",60,0,60); h_SL2L164->SetBinContent(1,705.7413); h_SL2L164->SetBinContent(2,798.1758); h_SL2L164->SetBinContent(3,913.5504); h_SL2L164->SetBinContent(4,1006.66); h_SL2L164->SetBinContent(5,1082.901); h_SL2L164->SetBinContent(6,1145.649); h_SL2L164->SetBinContent(7,1133.504); h_SL2L164->SetBinContent(8,1227.963); h_SL2L164->SetBinContent(9,1371.675); h_SL2L164->SetBinContent(10,1420.254); h_SL2L164->SetBinContent(11,1525.508); h_SL2L164->SetBinContent(12,1707.003); h_SL2L164->SetBinContent(13,1852.065); h_SL2L164->SetBinContent(14,2008.596); h_SL2L164->SetBinContent(15,2181.321); h_SL2L164->SetBinContent(16,2243.394); h_SL2L164->SetBinContent(17,2478.866); h_SL2L164->SetBinContent(18,2600.312); h_SL2L164->SetBinContent(19,2858.05); h_SL2L164->SetBinContent(20,2981.521); h_SL2L164->SetBinContent(21,3210.92); h_SL2L164->SetBinContent(22,3447.067); h_SL2L164->SetBinContent(23,3806.01); h_SL2L164->SetBinContent(24,4142.688); h_SL2L164->SetBinContent(25,8752.946); h_SL2L164->SetBinContent(26,28374.04); h_SL2L164->SetBinContent(27,43795.77); h_SL2L164->SetBinContent(28,51148.02); h_SL2L164->SetBinContent(29,53697.06); h_SL2L164->SetBinContent(30,51613.57); h_SL2L164->SetBinContent(31,47852.09); h_SL2L164->SetBinContent(32,48852); h_SL2L164->SetBinContent(33,46999.94); h_SL2L164->SetBinContent(34,26968.63); h_SL2L164->SetBinContent(35,2.698819); h_SL2L164->SetBinContent(36,4643.319); h_SL2L164->SetBinContent(37,6576.348); h_SL2L164->SetBinContent(38,3903.167); h_SL2L164->SetBinContent(39,5457.688); h_SL2L164->SetBinContent(40,20071.12); h_SL2L164->SetBinContent(41,7307.728); h_SL2L164->SetBinContent(42,7863.685); h_SL2L164->SetBinContent(43,8310.34); h_SL2L164->SetBinContent(44,7711.202); h_SL2L164->SetBinContent(45,1362.229); h_SL2L164->SetBinContent(46,1303.53); h_SL2L164->SetBinContent(47,1226.613); h_SL2L164->SetBinContent(48,1126.757); h_SL2L164->SetBinContent(49,1052.54); h_SL2L164->SetBinContent(50,885.2128); h_SL2L164->SetBinContent(51,823.8146); h_SL2L164->SetBinContent(52,832.5858); h_SL2L164->SetBinContent(53,798.1758); h_SL2L164->SetBinContent(54,710.4642); h_SL2L164->SetBinContent(55,699.6689); h_SL2L164->SetBinContent(56,568.7762); h_SL2L164->SetBinContent(57,518.1733); h_SL2L164->SetMaximum(71013.65); 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,620.7285); h_SL2L265->SetBinContent(2,759.7177); h_SL2L265->SetBinContent(3,860.9234); h_SL2L265->SetBinContent(4,911.5262); h_SL2L265->SetBinContent(5,997.8885); h_SL2L265->SetBinContent(6,1074.13); h_SL2L265->SetBinContent(7,1080.877); h_SL2L265->SetBinContent(8,1167.239); h_SL2L265->SetBinContent(9,1269.795); h_SL2L265->SetBinContent(10,1302.855); h_SL2L265->SetBinContent(11,1453.314); h_SL2L265->SetBinContent(12,1557.219); h_SL2L265->SetBinContent(13,1735.341); h_SL2L265->SetBinContent(14,1935.053); h_SL2L265->SetBinContent(15,2013.319); h_SL2L265->SetBinContent(16,2146.911); h_SL2L265->SetBinContent(17,2336.503); h_SL2L265->SetBinContent(18,2459.299); h_SL2L265->SetBinContent(19,2670.482); h_SL2L265->SetBinContent(20,2910.002); h_SL2L265->SetBinContent(21,3088.799); h_SL2L265->SetBinContent(22,3233.86); h_SL2L265->SetBinContent(23,3531.405); h_SL2L265->SetBinContent(24,3857.288); h_SL2L265->SetBinContent(25,4687.175); h_SL2L265->SetBinContent(26,17872.26); h_SL2L265->SetBinContent(27,37105.39); h_SL2L265->SetBinContent(28,48309.54); h_SL2L265->SetBinContent(29,52743.03); h_SL2L265->SetBinContent(30,53070.93); h_SL2L265->SetBinContent(31,48853.36); h_SL2L265->SetBinContent(32,48175.28); h_SL2L265->SetBinContent(33,48122.65); h_SL2L265->SetBinContent(34,40582.82); h_SL2L265->SetBinContent(35,14105.38); h_SL2L265->SetBinContent(36,5310.602); h_SL2L265->SetBinContent(37,3679.84); h_SL2L265->SetBinContent(38,2989.617); h_SL2L265->SetBinContent(39,3738.54); h_SL2L265->SetBinContent(40,4933.442); h_SL2L265->SetBinContent(41,2054.476); h_SL2L265->SetBinContent(42,2065.946); h_SL2L265->SetBinContent(43,1723.871); h_SL2L265->SetBinContent(44,1919.535); h_SL2L265->SetBinContent(45,1412.157); h_SL2L265->SetBinContent(46,1312.976); h_SL2L265->SetBinContent(47,1221.891); h_SL2L265->SetBinContent(48,1140.251); h_SL2L265->SetBinContent(49,1064.01); h_SL2L265->SetBinContent(50,960.105); h_SL2L265->SetBinContent(51,871.7187); h_SL2L265->SetBinContent(52,783.3323); h_SL2L265->SetBinContent(53,808.9711); h_SL2L265->SetBinContent(54,730.7053); h_SL2L265->SetBinContent(55,693.5966); h_SL2L265->SetBinContent(56,620.7285); h_SL2L265->SetBinContent(57,544.4868); h_SL2L265->SetMaximum(61751.62); 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,700.3436); h_SL2L366->SetBinContent(2,784.6818); h_SL2L366->SetBinContent(3,870.3693); h_SL2L366->SetBinContent(4,921.6469); h_SL2L366->SetBinContent(5,1018.13); h_SL2L366->SetBinContent(6,1056.588); h_SL2L366->SetBinContent(7,1105.167); h_SL2L366->SetBinContent(8,1171.962); h_SL2L366->SetBinContent(9,1275.867); h_SL2L366->SetBinContent(10,1367.627); h_SL2L366->SetBinContent(11,1475.579); h_SL2L366->SetBinContent(12,1648.304); h_SL2L366->SetBinContent(13,1741.413); h_SL2L366->SetBinContent(14,1944.499); h_SL2L366->SetBinContent(15,2000.5); h_SL2L366->SetBinContent(16,2182.67); h_SL2L366->SetBinContent(17,2372.262); h_SL2L366->SetBinContent(18,2480.89); h_SL2L366->SetBinContent(19,2748.748); h_SL2L366->SetBinContent(20,2932.267); h_SL2L366->SetBinContent(21,3084.75); h_SL2L366->SetBinContent(22,3385.669); h_SL2L366->SetBinContent(23,3588.755); h_SL2L366->SetBinContent(24,4044.855); h_SL2L366->SetBinContent(25,8669.957); h_SL2L366->SetBinContent(26,28345.03); h_SL2L366->SetBinContent(27,43676.34); h_SL2L366->SetBinContent(28,50992.17); h_SL2L366->SetBinContent(29,53430.55); h_SL2L366->SetBinContent(30,51314.68); h_SL2L366->SetBinContent(31,47740.09); h_SL2L366->SetBinContent(32,48666.46); h_SL2L366->SetBinContent(33,46834.64); h_SL2L366->SetBinContent(34,26770.26); h_SL2L366->SetBinContent(35,7560.743); h_SL2L366->SetBinContent(36,4206.785); h_SL2L366->SetBinContent(37,3216.993); h_SL2L366->SetBinContent(38,2706.916); h_SL2L366->SetBinContent(39,2319.635); h_SL2L366->SetBinContent(40,3832.998); h_SL2L366->SetBinContent(41,1912.788); h_SL2L366->SetBinContent(42,1753.558); h_SL2L366->SetBinContent(43,1583.532); h_SL2L366->SetBinContent(44,1455.338); h_SL2L366->SetBinContent(45,1317.699); h_SL2L366->SetBinContent(46,1195.577); h_SL2L366->SetBinContent(47,1157.119); h_SL2L366->SetBinContent(48,1059.961); h_SL2L366->SetBinContent(49,978.322); h_SL2L366->SetBinContent(50,855.5258); h_SL2L366->SetBinContent(51,791.4288); h_SL2L366->SetBinContent(52,776.5853); h_SL2L366->SetBinContent(53,715.8618); h_SL2L366->SetBinContent(54,634.8973); h_SL2L366->SetBinContent(55,630.8491); h_SL2L366->SetBinContent(56,568.7762); h_SL2L366->SetBinContent(57,500.631); h_SL2L366->SetMaximum(61751.62); 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,719.2354); h_SL2L467->SetBinContent(3,833.9352); h_SL2L467->SetBinContent(4,860.9234); h_SL2L467->SetBinContent(5,906.8033); h_SL2L467->SetBinContent(6,1052.54); h_SL2L467->SetBinContent(7,1024.202); h_SL2L467->SetBinContent(8,1118.661); h_SL2L467->SetBinContent(9,1197.601); h_SL2L467->SetBinContent(10,1229.312); h_SL2L467->SetBinContent(11,1352.783); h_SL2L467->SetBinContent(12,1495.821); h_SL2L467->SetBinContent(13,1634.81); h_SL2L467->SetBinContent(14,1796.064); h_SL2L467->SetBinContent(15,1933.029); h_SL2L467->SetBinContent(16,2030.187); h_SL2L467->SetBinContent(17,2206.285); h_SL2L467->SetBinContent(18,2345.949); h_SL2L467->SetBinContent(19,2557.131); h_SL2L467->SetBinContent(20,2816.893); h_SL2L467->SetBinContent(21,2985.569); h_SL2L467->SetBinContent(22,3202.149); h_SL2L467->SetBinContent(23,3367.452); h_SL2L467->SetBinContent(24,3734.491); h_SL2L467->SetBinContent(25,4581.92); h_SL2L467->SetBinContent(26,17791.97); h_SL2L467->SetBinContent(27,36971.8); h_SL2L467->SetBinContent(28,48150.98); h_SL2L467->SetBinContent(29,52657.34); h_SL2L467->SetBinContent(30,53415.71); h_SL2L467->SetBinContent(31,48796); h_SL2L467->SetBinContent(32,48086.89); h_SL2L467->SetBinContent(33,48212.38); h_SL2L467->SetBinContent(34,40531.54); h_SL2L467->SetBinContent(35,14046.68); h_SL2L467->SetBinContent(36,5160.817); h_SL2L467->SetBinContent(37,3576.61); h_SL2L467->SetBinContent(38,2854.001); h_SL2L467->SetBinContent(39,2509.902); h_SL2L467->SetBinContent(40,2150.959); h_SL2L467->SetBinContent(41,1955.969); h_SL2L467->SetBinContent(42,1820.354); h_SL2L467->SetBinContent(43,1621.316); h_SL2L467->SetBinContent(44,1488.399); h_SL2L467->SetBinContent(45,1345.361); h_SL2L467->SetBinContent(46,1256.3); h_SL2L467->SetBinContent(47,1132.155); h_SL2L467->SetBinContent(48,1036.347); h_SL2L467->SetBinContent(49,974.9485); h_SL2L467->SetBinContent(50,891.2851); h_SL2L467->SetBinContent(51,789.4047); h_SL2L467->SetBinContent(52,769.8383); h_SL2L467->SetBinContent(53,750.9465); h_SL2L467->SetBinContent(54,680.1025); h_SL2L467->SetBinContent(55,655.8131); h_SL2L467->SetBinContent(56,595.7644); h_SL2L467->SetBinContent(57,555.9568); h_SL2L467->SetMaximum(61751.62); 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.3744221,0.9362587,0.6255779,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("SL2, run 4981"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }