void RatesPerCell_Removing_noisy_cells_run_5627_SL3() { //=========Macro generated from canvas: c/c //========= (Mon Jan 14 19:41:20 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11947.06,67.5,107523.6); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL3L168 = new TH1D("h_SL3L168","SL3, run 5627",60,0,60); h_SL3L168->SetBinContent(1,279.1465); h_SL3L168->SetBinContent(2,250.5161); h_SL3L168->SetBinContent(4,221.8857); h_SL3L168->SetBinContent(5,221.8857); h_SL3L168->SetBinContent(6,314.9345); h_SL3L168->SetBinContent(7,293.4617); h_SL3L168->SetBinContent(8,336.4073); h_SL3L168->SetBinContent(9,365.0377); h_SL3L168->SetBinContent(10,336.4073); h_SL3L168->SetBinContent(11,443.7713); h_SL3L168->SetBinContent(12,386.5105); h_SL3L168->SetBinContent(13,386.5105); h_SL3L168->SetBinContent(14,501.0321); h_SL3L168->SetBinContent(15,493.8745); h_SL3L168->SetBinContent(16,543.9777); h_SL3L168->SetBinContent(17,629.869); h_SL3L168->SetBinContent(18,694.2874); h_SL3L168->SetBinContent(19,801.6514); h_SL3L168->SetBinContent(20,830.2818); h_SL3L168->SetBinContent(21,880.385); h_SL3L168->SetBinContent(22,1087.955); h_SL3L168->SetBinContent(23,1059.325); h_SL3L168->SetBinContent(24,1209.635); h_SL3L168->SetBinContent(25,1431.52); h_SL3L168->SetBinContent(26,1381.417); h_SL3L168->SetBinContent(27,1682.036); h_SL3L168->SetBinContent(28,2254.645); h_SL3L168->SetBinContent(29,2304.748); h_SL3L168->SetBinContent(30,3106.399); h_SL3L168->SetBinContent(31,3800.687); h_SL3L168->SetBinContent(32,5146.316); h_SL3L168->SetBinContent(33,8424.497); h_SL3L168->SetBinContent(34,37255.32); h_SL3L168->SetBinContent(35,51241.27); h_SL3L168->SetBinContent(36,58506.24); h_SL3L168->SetBinContent(37,67811.12); h_SL3L168->SetBinContent(38,72270.3); h_SL3L168->SetBinContent(39,66293.71); h_SL3L168->SetBinContent(40,45107.21); h_SL3L168->SetBinContent(41,9734.339); h_SL3L168->SetBinContent(42,5561.457); h_SL3L168->SetBinContent(43,4344.665); h_SL3L168->SetBinContent(44,3700.48); h_SL3L168->SetBinContent(45,3292.497); h_SL3L168->SetBinContent(46,2891.671); h_SL3L168->SetBinContent(47,2891.671); h_SL3L168->SetBinContent(48,2311.905); h_SL3L168->SetBinContent(49,19669.09); h_SL3L168->SetBinContent(50,2082.862); h_SL3L168->SetBinContent(51,1954.025); h_SL3L168->SetBinContent(52,1524.569); h_SL3L168->SetBinContent(53,1839.504); h_SL3L168->SetBinContent(54,1603.303); h_SL3L168->SetBinContent(55,1367.102); h_SL3L168->SetBinContent(56,1252.58); h_SL3L168->SetBinContent(57,1195.319); h_SL3L168->SetBinContent(58,1016.379); h_SL3L168->SetBinContent(59,930.4882); h_SL3L168->SetMaximum(95576.5); h_SL3L168->SetEntries(60); h_SL3L168->SetDirectory(0); h_SL3L168->SetStats(0); h_SL3L168->SetLineWidth(2); h_SL3L168->GetXaxis()->SetTitle("Cell"); h_SL3L168->GetXaxis()->SetLabelFont(42); h_SL3L168->GetXaxis()->SetLabelSize(0.035); h_SL3L168->GetXaxis()->SetTitleSize(0.035); h_SL3L168->GetXaxis()->SetTitleFont(42); h_SL3L168->GetYaxis()->SetTitle("Hz"); h_SL3L168->GetYaxis()->SetLabelFont(42); h_SL3L168->GetYaxis()->SetLabelSize(0.035); h_SL3L168->GetYaxis()->SetTitleSize(0.035); h_SL3L168->GetYaxis()->SetTitleOffset(1.45); h_SL3L168->GetYaxis()->SetTitleFont(42); h_SL3L168->GetZaxis()->SetLabelFont(42); h_SL3L168->GetZaxis()->SetLabelSize(0.035); h_SL3L168->GetZaxis()->SetTitleSize(0.035); h_SL3L168->GetZaxis()->SetTitleFont(42); h_SL3L168->Draw(""); TH1D *h_SL3L269 = new TH1D("h_SL3L269","",60,0,60); h_SL3L269->SetBinContent(1,271.9889); h_SL3L269->SetBinContent(2,264.8313); h_SL3L269->SetBinContent(4,229.0433); h_SL3L269->SetBinContent(5,271.9889); h_SL3L269->SetBinContent(6,271.9889); h_SL3L269->SetBinContent(7,293.4617); h_SL3L269->SetBinContent(8,357.8801); h_SL3L269->SetBinContent(9,336.4073); h_SL3L269->SetBinContent(10,386.5105); h_SL3L269->SetBinContent(11,422.2985); h_SL3L269->SetBinContent(12,372.1953); h_SL3L269->SetBinContent(13,501.0321); h_SL3L269->SetBinContent(14,472.4017); h_SL3L269->SetBinContent(15,486.7169); h_SL3L269->SetBinContent(16,536.8201); h_SL3L269->SetBinContent(17,508.1897); h_SL3L269->SetBinContent(18,586.9233); h_SL3L269->SetBinContent(19,844.597); h_SL3L269->SetBinContent(20,758.7058); h_SL3L269->SetBinContent(21,780.1786); h_SL3L269->SetBinContent(22,1016.379); h_SL3L269->SetBinContent(23,851.7546); h_SL3L269->SetBinContent(24,1216.792); h_SL3L269->SetBinContent(25,1288.368); h_SL3L269->SetBinContent(26,1266.896); h_SL3L269->SetBinContent(27,1517.412); h_SL3L269->SetBinContent(28,1968.34); h_SL3L269->SetBinContent(29,2397.797); h_SL3L269->SetBinContent(30,2684.101); h_SL3L269->SetBinContent(31,3271.024); h_SL3L269->SetBinContent(32,4065.518); h_SL3L269->SetBinContent(33,6534.891); h_SL3L269->SetBinContent(34,20012.65); h_SL3L269->SetBinContent(35,46910.92); h_SL3L269->SetBinContent(36,55170.8); h_SL3L269->SetBinContent(37,62693.43); h_SL3L269->SetBinContent(38,70774.37); h_SL3L269->SetBinContent(39,70896.05); h_SL3L269->SetBinContent(40,59780.29); h_SL3L269->SetBinContent(41,21358.28); h_SL3L269->SetBinContent(42,7730.21); h_SL3L269->SetBinContent(43,4752.647); h_SL3L269->SetBinContent(44,3872.263); h_SL3L269->SetBinContent(45,3471.437); h_SL3L269->SetBinContent(46,3092.084); h_SL3L269->SetBinContent(47,2762.834); h_SL3L269->SetBinContent(48,2648.313); h_SL3L269->SetBinContent(49,2140.123); h_SL3L269->SetBinContent(50,1946.868); h_SL3L269->SetBinContent(51,1968.34); h_SL3L269->SetBinContent(52,1596.145); h_SL3L269->SetBinContent(53,1610.46); h_SL3L269->SetBinContent(54,1667.721); h_SL3L269->SetBinContent(55,1395.732); h_SL3L269->SetBinContent(56,1209.635); h_SL3L269->SetBinContent(57,1324.156); h_SL3L269->SetBinContent(58,1002.064); h_SL3L269->SetBinContent(59,901.8578); h_SL3L269->SetMaximum(83110.85); h_SL3L269->SetEntries(60); h_SL3L269->SetDirectory(0); h_SL3L269->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL3L269->SetLineColor(ci); h_SL3L269->SetLineWidth(2); h_SL3L269->GetXaxis()->SetTitle("Cell"); h_SL3L269->GetXaxis()->SetLabelFont(42); h_SL3L269->GetXaxis()->SetLabelSize(0.035); h_SL3L269->GetXaxis()->SetTitleSize(0.035); h_SL3L269->GetXaxis()->SetTitleFont(42); h_SL3L269->GetYaxis()->SetTitle("Hz"); h_SL3L269->GetYaxis()->SetLabelFont(42); h_SL3L269->GetYaxis()->SetLabelSize(0.035); h_SL3L269->GetYaxis()->SetTitleSize(0.035); h_SL3L269->GetYaxis()->SetTitleOffset(1.45); h_SL3L269->GetYaxis()->SetTitleFont(42); h_SL3L269->GetZaxis()->SetLabelFont(42); h_SL3L269->GetZaxis()->SetLabelSize(0.035); h_SL3L269->GetZaxis()->SetTitleSize(0.035); h_SL3L269->GetZaxis()->SetTitleFont(42); h_SL3L269->Draw("same"); TH1D *h_SL3L370 = new TH1D("h_SL3L370","",60,0,60); h_SL3L370->SetBinContent(1,322.0921); h_SL3L370->SetBinContent(2,264.8313); h_SL3L370->SetBinContent(3,214.7281); h_SL3L370->SetBinContent(4,250.5161); h_SL3L370->SetBinContent(5,250.5161); h_SL3L370->SetBinContent(6,293.4617); h_SL3L370->SetBinContent(7,250.5161); h_SL3L370->SetBinContent(8,286.3041); h_SL3L370->SetBinContent(9,336.4073); h_SL3L370->SetBinContent(10,343.5649); h_SL3L370->SetBinContent(11,379.3529); h_SL3L370->SetBinContent(12,458.0865); h_SL3L370->SetBinContent(13,415.1409); h_SL3L370->SetBinContent(14,472.4017); h_SL3L370->SetBinContent(15,515.3474); h_SL3L370->SetBinContent(16,501.0321); h_SL3L370->SetBinContent(17,579.7657); h_SL3L370->SetBinContent(18,651.3418); h_SL3L370->SetBinContent(19,715.7602); h_SL3L370->SetBinContent(20,722.9178); h_SL3L370->SetBinContent(21,1016.379); h_SL3L370->SetBinContent(22,901.8578); h_SL3L370->SetBinContent(23,1009.222); h_SL3L370->SetBinContent(24,1316.999); h_SL3L370->SetBinContent(25,1281.211); h_SL3L370->SetBinContent(26,1402.89); h_SL3L370->SetBinContent(27,1667.721); h_SL3L370->SetBinContent(28,2132.965); h_SL3L370->SetBinContent(29,2319.063); h_SL3L370->SetBinContent(30,2898.829); h_SL3L370->SetBinContent(31,3671.85); h_SL3L370->SetBinContent(32,5289.468); h_SL3L370->SetBinContent(33,8345.764); h_SL3L370->SetBinContent(34,37233.84); h_SL3L370->SetBinContent(35,51162.54); h_SL3L370->SetBinContent(36,58406.03); h_SL3L370->SetBinContent(37,67503.34); h_SL3L370->SetBinContent(38,71776.43); h_SL3L370->SetBinContent(39,65821.3); h_SL3L370->SetBinContent(40,45150.15); h_SL3L370->SetBinContent(41,9519.61); h_SL3L370->SetBinContent(42,5647.348); h_SL3L370->SetBinContent(43,4251.616); h_SL3L370->SetBinContent(44,3399.861); h_SL3L370->SetBinContent(45,3213.763); h_SL3L370->SetBinContent(46,2920.302); h_SL3L370->SetBinContent(47,2769.992); h_SL3L370->SetBinContent(48,2311.905); h_SL3L370->SetBinContent(49,1925.395); h_SL3L370->SetBinContent(50,2068.547); h_SL3L370->SetBinContent(51,1775.085); h_SL3L370->SetBinContent(52,1452.993); h_SL3L370->SetBinContent(53,1660.564); h_SL3L370->SetBinContent(54,1553.2); h_SL3L370->SetBinContent(55,1281.211); h_SL3L370->SetBinContent(56,1245.423); h_SL3L370->SetBinContent(57,1116.586); h_SL3L370->SetBinContent(58,994.9067); h_SL3L370->SetBinContent(59,916.173); h_SL3L370->SetMaximum(83110.85); h_SL3L370->SetEntries(60); h_SL3L370->SetDirectory(0); h_SL3L370->SetStats(0); ci = TColor::GetColor("#009900"); h_SL3L370->SetLineColor(ci); h_SL3L370->SetLineWidth(2); h_SL3L370->GetXaxis()->SetTitle("Cell"); h_SL3L370->GetXaxis()->SetLabelFont(42); h_SL3L370->GetXaxis()->SetLabelSize(0.035); h_SL3L370->GetXaxis()->SetTitleSize(0.035); h_SL3L370->GetXaxis()->SetTitleFont(42); h_SL3L370->GetYaxis()->SetTitle("Hz"); h_SL3L370->GetYaxis()->SetLabelFont(42); h_SL3L370->GetYaxis()->SetLabelSize(0.035); h_SL3L370->GetYaxis()->SetTitleSize(0.035); h_SL3L370->GetYaxis()->SetTitleOffset(1.45); h_SL3L370->GetYaxis()->SetTitleFont(42); h_SL3L370->GetZaxis()->SetLabelFont(42); h_SL3L370->GetZaxis()->SetLabelSize(0.035); h_SL3L370->GetZaxis()->SetTitleSize(0.035); h_SL3L370->GetZaxis()->SetTitleFont(42); h_SL3L370->Draw("same"); TH1D *h_SL3L471 = new TH1D("h_SL3L471","",60,0,60); h_SL3L471->SetBinContent(2,279.1465); h_SL3L471->SetBinContent(3,314.9345); h_SL3L471->SetBinContent(4,250.5161); h_SL3L471->SetBinContent(5,286.3041); h_SL3L471->SetBinContent(6,350.7225); h_SL3L471->SetBinContent(7,307.7769); h_SL3L471->SetBinContent(8,300.6193); h_SL3L471->SetBinContent(9,300.6193); h_SL3L471->SetBinContent(10,393.6681); h_SL3L471->SetBinContent(11,415.1409); h_SL3L471->SetBinContent(12,357.8801); h_SL3L471->SetBinContent(13,565.4506); h_SL3L471->SetBinContent(14,508.1897); h_SL3L471->SetBinContent(15,565.4506); h_SL3L471->SetBinContent(16,615.5538); h_SL3L471->SetBinContent(17,508.1897); h_SL3L471->SetBinContent(18,637.0266); h_SL3L471->SetBinContent(19,787.3362); h_SL3L471->SetBinContent(20,844.597); h_SL3L471->SetBinContent(21,801.6514); h_SL3L471->SetBinContent(22,1087.955); h_SL3L471->SetBinContent(23,951.9611); h_SL3L471->SetBinContent(24,1259.738); h_SL3L471->SetBinContent(25,1238.265); h_SL3L471->SetBinContent(26,1352.787); h_SL3L471->SetBinContent(27,1546.042); h_SL3L471->SetBinContent(28,1961.183); h_SL3L471->SetBinContent(29,2390.639); h_SL3L471->SetBinContent(30,2662.628); h_SL3L471->SetBinContent(31,3299.655); h_SL3L471->SetBinContent(32,4208.67); h_SL3L471->SetBinContent(33,6678.042); h_SL3L471->SetBinContent(34,20098.55); h_SL3L471->SetBinContent(35,47340.38); h_SL3L471->SetBinContent(36,55120.69); h_SL3L471->SetBinContent(37,62972.58); h_SL3L471->SetBinContent(38,70752.89); h_SL3L471->SetBinContent(39,70946.15); h_SL3L471->SetBinContent(40,60109.54); h_SL3L471->SetBinContent(41,21258.08); h_SL3L471->SetBinContent(42,7708.737); h_SL3L471->SetBinContent(43,4960.218); h_SL3L471->SetBinContent(44,3521.54); h_SL3L471->SetBinContent(45,3464.279); h_SL3L471->SetBinContent(46,3142.187); h_SL3L471->SetBinContent(47,2762.834); h_SL3L471->SetBinContent(48,2526.634); h_SL3L471->SetBinContent(49,2104.335); h_SL3L471->SetBinContent(50,1982.656); h_SL3L471->SetBinContent(51,2004.129); h_SL3L471->SetBinContent(52,1631.933); h_SL3L471->SetBinContent(53,1588.988); h_SL3L471->SetBinContent(54,1724.982); h_SL3L471->SetBinContent(55,1388.575); h_SL3L471->SetBinContent(56,1095.113); h_SL3L471->SetBinContent(57,1209.635); h_SL3L471->SetBinContent(58,1030.695); h_SL3L471->SetBinContent(59,1045.01); h_SL3L471->SetMaximum(83110.85); h_SL3L471->SetEntries(60); h_SL3L471->SetDirectory(0); h_SL3L471->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL3L471->SetLineColor(ci); h_SL3L471->SetLineWidth(2); h_SL3L471->GetXaxis()->SetTitle("Cell"); h_SL3L471->GetXaxis()->SetLabelFont(42); h_SL3L471->GetXaxis()->SetLabelSize(0.035); h_SL3L471->GetXaxis()->SetTitleSize(0.035); h_SL3L471->GetXaxis()->SetTitleFont(42); h_SL3L471->GetYaxis()->SetTitle("Hz"); h_SL3L471->GetYaxis()->SetLabelFont(42); h_SL3L471->GetYaxis()->SetLabelSize(0.035); h_SL3L471->GetYaxis()->SetTitleSize(0.035); h_SL3L471->GetYaxis()->SetTitleOffset(1.45); h_SL3L471->GetYaxis()->SetTitleFont(42); h_SL3L471->GetZaxis()->SetLabelFont(42); h_SL3L471->GetZaxis()->SetLabelSize(0.035); h_SL3L471->GetZaxis()->SetTitleSize(0.035); h_SL3L471->GetZaxis()->SetTitleFont(42); h_SL3L471->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_SL3L1","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_SL3L2","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_SL3L3","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_SL3L4","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("SL3, run 5627"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }