void RatesPerCell_Removing_noisy_cells_run_5491_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 14:56:03 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-18538.72,67.5,166848.5); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5491",60,0,60); h_SL1L160->SetBinContent(1,408.4066); h_SL1L160->SetBinContent(2,495.673); h_SL1L160->SetBinContent(3,485.201); h_SL1L160->SetBinContent(4,439.8225); h_SL1L160->SetBinContent(5,460.7664); h_SL1L160->SetBinContent(6,460.7664); h_SL1L160->SetBinContent(7,467.7477); h_SL1L160->SetBinContent(8,488.6917); h_SL1L160->SetBinContent(9,499.1636); h_SL1L160->SetBinContent(10,527.0889); h_SL1L160->SetBinContent(11,628.3179); h_SL1L160->SetBinContent(12,747.0001); h_SL1L160->SetBinContent(13,722.5656); h_SL1L160->SetBinContent(14,781.9067); h_SL1L160->SetBinContent(15,555.0141); h_SL1L160->SetBinContent(16,677.187); h_SL1L160->SetBinContent(17,701.6216); h_SL1L160->SetBinContent(18,928.5142); h_SL1L160->SetBinContent(19,925.0235); h_SL1L160->SetBinContent(20,1165.879); h_SL1L160->SetBinContent(21,1417.206); h_SL1L160->SetBinContent(22,1326.449); h_SL1L160->SetBinContent(23,1514.944); h_SL1L160->SetBinContent(24,1710.421); h_SL1L160->SetBinContent(25,1780.234); h_SL1L160->SetBinContent(26,1888.444); h_SL1L160->SetBinContent(27,1937.313); h_SL1L160->SetBinContent(28,2617.991); h_SL1L160->SetBinContent(29,3141.589); h_SL1L160->SetBinContent(30,3455.748); h_SL1L160->SetBinContent(31,3881.608); h_SL1L160->SetBinContent(32,5159.188); h_SL1L160->SetBinContent(33,14234.89); h_SL1L160->SetBinContent(34,21788.67); h_SL1L160->SetBinContent(35,32225.72); h_SL1L160->SetBinContent(36,50192.12); h_SL1L160->SetBinContent(37,86676.45); h_SL1L160->SetBinContent(38,111456.6); h_SL1L160->SetBinContent(39,67345.2); h_SL1L160->SetBinContent(40,11396.99); h_SL1L160->SetBinContent(41,5599.01); h_SL1L160->SetBinContent(42,4625.118); h_SL1L160->SetBinContent(43,3773.398); h_SL1L160->SetBinContent(44,3473.201); h_SL1L160->SetBinContent(45,3239.328); h_SL1L160->SetBinContent(46,3134.608); h_SL1L160->SetBinContent(47,2809.977); h_SL1L160->SetBinContent(48,2488.837); h_SL1L160->SetBinContent(49,2244.491); h_SL1L160->SetBinContent(50,2272.416); h_SL1L160->SetBinContent(51,2042.033); h_SL1L160->SetBinContent(52,1769.762); h_SL1L160->SetBinContent(53,1769.762); h_SL1L160->SetBinContent(54,1532.397); h_SL1L160->SetBinContent(55,1494); h_SL1L160->SetBinContent(56,1340.411); h_SL1L160->SetBinContent(57,1221.729); h_SL1L160->SetBinContent(58,1277.58); h_SL1L160->SetBinContent(59,1183.332); h_SL1L160->SetMaximum(148309.8); h_SL1L160->SetEntries(60); h_SL1L160->SetDirectory(0); h_SL1L160->SetStats(0); h_SL1L160->SetLineWidth(2); h_SL1L160->GetXaxis()->SetTitle("Cell"); h_SL1L160->GetXaxis()->SetLabelFont(42); h_SL1L160->GetXaxis()->SetLabelSize(0.035); h_SL1L160->GetXaxis()->SetTitleSize(0.035); h_SL1L160->GetXaxis()->SetTitleFont(42); h_SL1L160->GetYaxis()->SetTitle("Hz"); h_SL1L160->GetYaxis()->SetLabelFont(42); h_SL1L160->GetYaxis()->SetLabelSize(0.035); h_SL1L160->GetYaxis()->SetTitleSize(0.035); h_SL1L160->GetYaxis()->SetTitleOffset(1.45); h_SL1L160->GetYaxis()->SetTitleFont(42); h_SL1L160->GetZaxis()->SetLabelFont(42); h_SL1L160->GetZaxis()->SetLabelSize(0.035); h_SL1L160->GetZaxis()->SetTitleSize(0.035); h_SL1L160->GetZaxis()->SetTitleFont(42); h_SL1L160->Draw(""); TH1D *h_SL1L261 = new TH1D("h_SL1L261","",60,0,60); h_SL1L261->SetBinContent(1,363.0281); h_SL1L261->SetBinContent(2,460.7664); h_SL1L261->SetBinContent(3,401.4253); h_SL1L261->SetBinContent(4,376.9907); h_SL1L261->SetBinContent(5,363.0281); h_SL1L261->SetBinContent(6,411.8972); h_SL1L261->SetBinContent(7,432.8412); h_SL1L261->SetBinContent(8,404.916); h_SL1L261->SetBinContent(9,457.2758); h_SL1L261->SetBinContent(10,467.7477); h_SL1L261->SetBinContent(11,561.9954); h_SL1L261->SetBinContent(12,614.3552); h_SL1L261->SetBinContent(13,635.2991); h_SL1L261->SetBinContent(14,705.1122); h_SL1L261->SetBinContent(15,628.3179); h_SL1L261->SetBinContent(16,572.4673); h_SL1L261->SetBinContent(17,548.0328); h_SL1L261->SetBinContent(18,774.9254); h_SL1L261->SetBinContent(19,785.3973); h_SL1L261->SetBinContent(20,1036.724); h_SL1L261->SetBinContent(21,1225.22); h_SL1L261->SetBinContent(22,1284.561); h_SL1L261->SetBinContent(23,1413.715); h_SL1L261->SetBinContent(24,1462.584); h_SL1L261->SetBinContent(25,1738.346); h_SL1L261->SetBinContent(26,1640.608); h_SL1L261->SetBinContent(27,1783.725); h_SL1L261->SetBinContent(28,2328.267); h_SL1L261->SetBinContent(29,2775.071); h_SL1L261->SetBinContent(30,3131.117); h_SL1L261->SetBinContent(31,3504.617); h_SL1L261->SetBinContent(32,4234.164); h_SL1L261->SetBinContent(33,8901.17); h_SL1L261->SetBinContent(34,18130.46); h_SL1L261->SetBinContent(35,26204.35); h_SL1L261->SetBinContent(36,39454.87); h_SL1L261->SetBinContent(37,65962.9); h_SL1L261->SetBinContent(38,105934.4); h_SL1L261->SetBinContent(39,101770); h_SL1L261->SetBinContent(40,26057.74); h_SL1L261->SetBinContent(41,9253.726); h_SL1L261->SetBinContent(42,4806.631); h_SL1L261->SetBinContent(43,4171.333); h_SL1L261->SetBinContent(44,3490.655); h_SL1L261->SetBinContent(45,3288.197); h_SL1L261->SetBinContent(46,3078.758); h_SL1L261->SetBinContent(47,2960.075); h_SL1L261->SetBinContent(48,2701.767); h_SL1L261->SetBinContent(49,2251.472); h_SL1L261->SetBinContent(50,2160.715); h_SL1L261->SetBinContent(51,2014.108); h_SL1L261->SetBinContent(52,1766.271); h_SL1L261->SetBinContent(53,1738.346); h_SL1L261->SetBinContent(54,1616.173); h_SL1L261->SetBinContent(55,1490.51); h_SL1L261->SetBinContent(56,1350.883); h_SL1L261->SetBinContent(57,1204.276); h_SL1L261->SetBinContent(58,1246.164); h_SL1L261->SetBinContent(59,1099.556); h_SL1L261->SetMaximum(128965.9); h_SL1L261->SetEntries(60); h_SL1L261->SetDirectory(0); h_SL1L261->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL1L261->SetLineColor(ci); h_SL1L261->SetLineWidth(2); h_SL1L261->GetXaxis()->SetTitle("Cell"); h_SL1L261->GetXaxis()->SetLabelFont(42); h_SL1L261->GetXaxis()->SetLabelSize(0.035); h_SL1L261->GetXaxis()->SetTitleSize(0.035); h_SL1L261->GetXaxis()->SetTitleFont(42); h_SL1L261->GetYaxis()->SetTitle("Hz"); h_SL1L261->GetYaxis()->SetLabelFont(42); h_SL1L261->GetYaxis()->SetLabelSize(0.035); h_SL1L261->GetYaxis()->SetTitleSize(0.035); h_SL1L261->GetYaxis()->SetTitleOffset(1.45); h_SL1L261->GetYaxis()->SetTitleFont(42); h_SL1L261->GetZaxis()->SetLabelFont(42); h_SL1L261->GetZaxis()->SetLabelSize(0.035); h_SL1L261->GetZaxis()->SetTitleSize(0.035); h_SL1L261->GetZaxis()->SetTitleFont(42); h_SL1L261->Draw("same"); TH1D *h_SL1L362 = new TH1D("h_SL1L362","",60,0,60); h_SL1L362->SetBinContent(1,300.1963); h_SL1L362->SetBinContent(2,394.444); h_SL1L362->SetBinContent(3,356.0468); h_SL1L362->SetBinContent(4,370.0094); h_SL1L362->SetBinContent(5,356.0468); h_SL1L362->SetBinContent(6,335.1028); h_SL1L362->SetBinContent(7,390.9533); h_SL1L362->SetBinContent(8,415.3879); h_SL1L362->SetBinContent(9,457.2758); h_SL1L362->SetBinContent(10,446.8038); h_SL1L362->SetBinContent(11,520.1075); h_SL1L362->SetBinContent(12,568.9767); h_SL1L362->SetBinContent(13,631.8085); h_SL1L362->SetBinContent(14,617.8459); h_SL1L362->SetBinContent(15,457.2758); h_SL1L362->SetBinContent(16,548.0328); h_SL1L362->SetBinContent(17,673.6964); h_SL1L362->SetBinContent(18,715.5842); h_SL1L362->SetBinContent(19,806.3412); h_SL1L362->SetBinContent(20,1082.103); h_SL1L362->SetBinContent(21,1267.108); h_SL1L362->SetBinContent(22,1155.407); h_SL1L362->SetBinContent(23,1406.734); h_SL1L362->SetBinContent(24,1570.795); h_SL1L362->SetBinContent(25,1612.682); h_SL1L362->SetBinContent(26,1626.645); h_SL1L362->SetBinContent(27,2007.126); h_SL1L362->SetBinContent(28,2398.08); h_SL1L362->SetBinContent(29,2848.374); h_SL1L362->SetBinContent(30,3302.159); h_SL1L362->SetBinContent(31,3679.15); h_SL1L362->SetBinContent(32,5103.337); h_SL1L362->SetBinContent(33,14140.64); h_SL1L362->SetBinContent(34,21589.7); h_SL1L362->SetBinContent(35,32403.75); h_SL1L362->SetBinContent(36,50488.83); h_SL1L362->SetBinContent(37,86781.16); h_SL1L362->SetBinContent(38,112144.3); h_SL1L362->SetBinContent(39,68099.18); h_SL1L362->SetBinContent(40,11173.59); h_SL1L362->SetBinContent(41,5564.104); h_SL1L362->SetBinContent(42,4433.131); h_SL1L362->SetBinContent(43,3588.393); h_SL1L362->SetBinContent(44,3340.557); h_SL1L362->SetBinContent(45,3005.454); h_SL1L362->SetBinContent(46,2949.603); h_SL1L362->SetBinContent(47,2624.972); h_SL1L362->SetBinContent(48,2380.626); h_SL1L362->SetBinContent(49,2038.542); h_SL1L362->SetBinContent(50,2097.884); h_SL1L362->SetBinContent(51,1853.538); h_SL1L362->SetBinContent(52,1633.626); h_SL1L362->SetBinContent(53,1696.458); h_SL1L362->SetBinContent(54,1448.622); h_SL1L362->SetBinContent(55,1347.393); h_SL1L362->SetBinContent(56,1127.481); h_SL1L362->SetBinContent(57,1092.575); h_SL1L362->SetBinContent(58,1144.935); h_SL1L362->SetBinContent(59,952.9487); h_SL1L362->SetMaximum(128965.9); h_SL1L362->SetEntries(60); h_SL1L362->SetDirectory(0); h_SL1L362->SetStats(0); ci = TColor::GetColor("#009900"); h_SL1L362->SetLineColor(ci); h_SL1L362->SetLineWidth(2); h_SL1L362->GetXaxis()->SetTitle("Cell"); h_SL1L362->GetXaxis()->SetLabelFont(42); h_SL1L362->GetXaxis()->SetLabelSize(0.035); h_SL1L362->GetXaxis()->SetTitleSize(0.035); h_SL1L362->GetXaxis()->SetTitleFont(42); h_SL1L362->GetYaxis()->SetTitle("Hz"); h_SL1L362->GetYaxis()->SetLabelFont(42); h_SL1L362->GetYaxis()->SetLabelSize(0.035); h_SL1L362->GetYaxis()->SetTitleSize(0.035); h_SL1L362->GetYaxis()->SetTitleOffset(1.45); h_SL1L362->GetYaxis()->SetTitleFont(42); h_SL1L362->GetZaxis()->SetLabelFont(42); h_SL1L362->GetZaxis()->SetLabelSize(0.035); h_SL1L362->GetZaxis()->SetTitleSize(0.035); h_SL1L362->GetZaxis()->SetTitleFont(42); h_SL1L362->Draw("same"); TH1D *h_SL1L463 = new TH1D("h_SL1L463","",60,0,60); h_SL1L463->SetBinContent(2,390.9533); h_SL1L463->SetBinContent(3,289.7243); h_SL1L463->SetBinContent(4,328.1216); h_SL1L463->SetBinContent(5,331.6122); h_SL1L463->SetBinContent(6,363.0281); h_SL1L463->SetBinContent(7,366.5187); h_SL1L463->SetBinContent(8,335.1028); h_SL1L463->SetBinContent(9,492.1823); h_SL1L463->SetBinContent(10,352.5561); h_SL1L463->SetBinContent(11,488.6917); h_SL1L463->SetBinContent(12,523.5982); h_SL1L463->SetBinContent(13,516.6169); h_SL1L463->SetBinContent(14,600.3926); h_SL1L463->SetBinContent(15,600.3926); h_SL1L463->SetBinContent(16,516.6169); h_SL1L463->SetBinContent(17,527.0889); h_SL1L463->SetBinContent(18,659.7338); h_SL1L463->SetBinContent(19,631.8085); h_SL1L463->SetBinContent(20,823.7945); h_SL1L463->SetBinContent(21,1221.729); h_SL1L463->SetBinContent(22,1078.612); h_SL1L463->SetBinContent(23,1221.729); h_SL1L463->SetBinContent(24,1239.182); h_SL1L463->SetBinContent(25,1420.696); h_SL1L463->SetBinContent(26,1591.739); h_SL1L463->SetBinContent(27,1637.117); h_SL1L463->SetBinContent(28,2265.435); h_SL1L463->SetBinContent(29,2478.365); h_SL1L463->SetBinContent(30,3026.398); h_SL1L463->SetBinContent(31,3267.253); h_SL1L463->SetBinContent(32,4108.5); h_SL1L463->SetBinContent(33,8754.562); h_SL1L463->SetBinContent(34,18074.61); h_SL1L463->SetBinContent(35,26357.93); h_SL1L463->SetBinContent(36,39618.93); h_SL1L463->SetBinContent(37,66730.84); h_SL1L463->SetBinContent(38,106154.3); h_SL1L463->SetBinContent(39,102785.8); h_SL1L463->SetBinContent(40,26406.8); h_SL1L463->SetBinContent(41,9128.062); h_SL1L463->SetBinContent(42,4764.744); h_SL1L463->SetBinContent(43,4118.973); h_SL1L463->SetBinContent(44,3361.5); h_SL1L463->SetBinContent(45,3120.645); h_SL1L463->SetBinContent(46,3068.285); h_SL1L463->SetBinContent(47,2694.785); h_SL1L463->SetBinContent(48,2370.155); h_SL1L463->SetBinContent(49,2115.337); h_SL1L463->SetBinContent(50,1972.22); h_SL1L463->SetBinContent(51,1853.538); h_SL1L463->SetBinContent(52,1654.57); h_SL1L463->SetBinContent(53,1605.701); h_SL1L463->SetBinContent(54,1340.411); h_SL1L463->SetBinContent(56,1186.823); h_SL1L463->SetBinContent(57,1158.897); h_SL1L463->SetBinContent(58,1008.799); h_SL1L463->SetBinContent(59,977.3833); h_SL1L463->SetMaximum(128965.9); h_SL1L463->SetEntries(60); h_SL1L463->SetDirectory(0); h_SL1L463->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL1L463->SetLineColor(ci); h_SL1L463->SetLineWidth(2); h_SL1L463->GetXaxis()->SetTitle("Cell"); h_SL1L463->GetXaxis()->SetLabelFont(42); h_SL1L463->GetXaxis()->SetLabelSize(0.035); h_SL1L463->GetXaxis()->SetTitleSize(0.035); h_SL1L463->GetXaxis()->SetTitleFont(42); h_SL1L463->GetYaxis()->SetTitle("Hz"); h_SL1L463->GetYaxis()->SetLabelFont(42); h_SL1L463->GetYaxis()->SetLabelSize(0.035); h_SL1L463->GetYaxis()->SetTitleSize(0.035); h_SL1L463->GetYaxis()->SetTitleOffset(1.45); h_SL1L463->GetYaxis()->SetTitleFont(42); h_SL1L463->GetZaxis()->SetLabelFont(42); h_SL1L463->GetZaxis()->SetLabelSize(0.035); h_SL1L463->GetZaxis()->SetTitleSize(0.035); h_SL1L463->GetZaxis()->SetTitleFont(42); h_SL1L463->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_SL1L1","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_SL1L2","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_SL1L3","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_SL1L4","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("SL1, run 5491"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }