void RatesPerCell_Removing_noisy_cells_run_5491_SL3() { //=========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,-18760.38,67.5,168843.4); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL3L168 = new TH1D("h_SL3L168","SL3, run 5491",60,0,60); h_SL3L168->SetBinContent(1,216.4206); h_SL3L168->SetBinContent(2,247.8365); h_SL3L168->SetBinContent(4,258.3084); h_SL3L168->SetBinContent(5,230.3832); h_SL3L168->SetBinContent(6,272.2711); h_SL3L168->SetBinContent(7,251.3271); h_SL3L168->SetBinContent(8,279.2524); h_SL3L168->SetBinContent(9,282.743); h_SL3L168->SetBinContent(10,303.687); h_SL3L168->SetBinContent(11,328.1216); h_SL3L168->SetBinContent(12,380.4814); h_SL3L168->SetBinContent(13,415.3879); h_SL3L168->SetBinContent(14,408.4066); h_SL3L168->SetBinContent(15,418.8786); h_SL3L168->SetBinContent(16,366.5187); h_SL3L168->SetBinContent(17,453.7851); h_SL3L168->SetBinContent(18,478.2197); h_SL3L168->SetBinContent(19,586.43); h_SL3L168->SetBinContent(20,558.5048); h_SL3L168->SetBinContent(21,656.2431); h_SL3L168->SetBinContent(22,802.8506); h_SL3L168->SetBinContent(23,726.0562); h_SL3L168->SetBinContent(24,862.1917); h_SL3L168->SetBinContent(25,970.402); h_SL3L168->SetBinContent(26,1120.5); h_SL3L168->SetBinContent(27,1235.692); h_SL3L168->SetBinContent(28,1525.416); h_SL3L168->SetBinContent(29,1870.991); h_SL3L168->SetBinContent(30,2188.64); h_SL3L168->SetBinContent(31,2631.954); h_SL3L168->SetBinContent(32,3173.005); h_SL3L168->SetBinContent(33,4701.912); h_SL3L168->SetBinContent(34,13952.15); h_SL3L168->SetBinContent(35,21380.26); h_SL3L168->SetBinContent(36,32407.24); h_SL3L168->SetBinContent(37,51312.62); h_SL3L168->SetBinContent(38,88163.47); h_SL3L168->SetBinContent(39,113299.7); h_SL3L168->SetBinContent(40,70169.14); h_SL3L168->SetBinContent(41,11599.45); h_SL3L168->SetBinContent(42,5543.16); h_SL3L168->SetBinContent(43,3975.856); h_SL3L168->SetBinContent(44,3166.024); h_SL3L168->SetBinContent(45,2733.183); h_SL3L168->SetBinContent(46,2415.533); h_SL3L168->SetBinContent(47,2307.323); h_SL3L168->SetBinContent(48,1979.201); h_SL3L168->SetBinContent(49,9798.268); h_SL3L168->SetBinContent(50,1581.267); h_SL3L168->SetBinContent(51,1455.603); h_SL3L168->SetBinContent(52,1305.505); h_SL3L168->SetBinContent(53,1378.809); h_SL3L168->SetBinContent(54,1218.239); h_SL3L168->SetBinContent(55,1127.481); h_SL3L168->SetBinContent(56,998.3273); h_SL3L168->SetBinContent(57,827.2852); h_SL3L168->SetBinContent(58,638.7898); h_SL3L168->SetBinContent(59,541.0515); h_SL3L168->SetMaximum(150083); 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,216.4206); h_SL3L269->SetBinContent(2,216.4206); h_SL3L269->SetBinContent(4,226.8926); h_SL3L269->SetBinContent(5,247.8365); h_SL3L269->SetBinContent(6,230.3832); h_SL3L269->SetBinContent(7,233.8739); h_SL3L269->SetBinContent(8,282.743); h_SL3L269->SetBinContent(9,286.2337); h_SL3L269->SetBinContent(10,254.8178); h_SL3L269->SetBinContent(11,268.7804); h_SL3L269->SetBinContent(12,373.5001); h_SL3L269->SetBinContent(13,356.0468); h_SL3L269->SetBinContent(14,376.9907); h_SL3L269->SetBinContent(15,408.4066); h_SL3L269->SetBinContent(16,373.5001); h_SL3L269->SetBinContent(17,506.1449); h_SL3L269->SetBinContent(18,404.916); h_SL3L269->SetBinContent(19,537.5609); h_SL3L269->SetBinContent(20,568.9767); h_SL3L269->SetBinContent(21,600.3926); h_SL3L269->SetBinContent(22,694.6403); h_SL3L269->SetBinContent(23,757.472); h_SL3L269->SetBinContent(24,830.7758); h_SL3L269->SetBinContent(25,932.0048); h_SL3L269->SetBinContent(26,994.8366); h_SL3L269->SetBinContent(27,1137.953); h_SL3L269->SetBinContent(28,1410.224); h_SL3L269->SetBinContent(29,1689.477); h_SL3L269->SetBinContent(30,1989.673); h_SL3L269->SetBinContent(31,2331.757); h_SL3L269->SetBinContent(32,2645.916); h_SL3L269->SetBinContent(33,3762.926); h_SL3L269->SetBinContent(34,8286.814); h_SL3L269->SetBinContent(35,17861.68); h_SL3L269->SetBinContent(36,26040.28); h_SL3L269->SetBinContent(37,39556.1); h_SL3L269->SetBinContent(38,67439.45); h_SL3L269->SetBinContent(39,107519.1); h_SL3L269->SetBinContent(40,103274.5); h_SL3L269->SetBinContent(41,27743.72); h_SL3L269->SetBinContent(42,8998.908); h_SL3L269->SetBinContent(43,4265.58); h_SL3L269->SetBinContent(44,3602.356); h_SL3L269->SetBinContent(45,2977.529); h_SL3L269->SetBinContent(46,2527.234); h_SL3L269->SetBinContent(47,2188.64); h_SL3L269->SetBinContent(48,2101.374); h_SL3L269->SetBinContent(49,1808.159); h_SL3L269->SetBinContent(50,1661.552); h_SL3L269->SetBinContent(51,1399.753); h_SL3L269->SetBinContent(52,1396.262); h_SL3L269->SetBinContent(53,1371.827); h_SL3L269->SetBinContent(54,1298.524); h_SL3L269->SetBinContent(55,1144.935); h_SL3L269->SetBinContent(56,1012.29); h_SL3L269->SetBinContent(57,897.0983); h_SL3L269->SetBinContent(58,687.659); h_SL3L269->SetBinContent(59,575.958); h_SL3L269->SetMaximum(130507.4); 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,240.8552); h_SL3L370->SetBinContent(2,205.9486); h_SL3L370->SetBinContent(3,233.8739); h_SL3L370->SetBinContent(4,247.8365); h_SL3L370->SetBinContent(5,233.8739); h_SL3L370->SetBinContent(6,244.3458); h_SL3L370->SetBinContent(7,265.2898); h_SL3L370->SetBinContent(8,240.8552); h_SL3L370->SetBinContent(9,289.7243); h_SL3L370->SetBinContent(10,296.7057); h_SL3L370->SetBinContent(11,338.5935); h_SL3L370->SetBinContent(12,303.687); h_SL3L370->SetBinContent(13,404.916); h_SL3L370->SetBinContent(14,404.916); h_SL3L370->SetBinContent(15,408.4066); h_SL3L370->SetBinContent(16,408.4066); h_SL3L370->SetBinContent(17,422.3692); h_SL3L370->SetBinContent(18,481.7104); h_SL3L370->SetBinContent(19,516.6169); h_SL3L370->SetBinContent(20,558.5048); h_SL3L370->SetBinContent(21,624.8272); h_SL3L370->SetBinContent(22,760.9627); h_SL3L370->SetBinContent(23,733.0375); h_SL3L370->SetBinContent(24,844.7385); h_SL3L370->SetBinContent(25,945.9674); h_SL3L370->SetBinContent(26,1082.103); h_SL3L370->SetBinContent(27,1256.636); h_SL3L370->SetBinContent(28,1431.168); h_SL3L370->SetBinContent(29,1815.141); h_SL3L370->SetBinContent(30,2083.921); h_SL3L370->SetBinContent(31,2460.912); h_SL3L370->SetBinContent(32,3103.192); h_SL3L370->SetBinContent(33,4639.08); h_SL3L370->SetBinContent(34,13819.5); h_SL3L370->SetBinContent(35,21495.45); h_SL3L370->SetBinContent(36,32581.77); h_SL3L370->SetBinContent(37,50893.75); h_SL3L370->SetBinContent(38,88125.07); h_SL3L370->SetBinContent(39,113484.7); h_SL3L370->SetBinContent(40,70270.37); h_SL3L370->SetBinContent(41,11484.25); h_SL3L370->SetBinContent(42,5417.496); h_SL3L370->SetBinContent(43,3954.912); h_SL3L370->SetBinContent(44,3096.211); h_SL3L370->SetBinContent(45,2604.028); h_SL3L370->SetBinContent(46,2296.851); h_SL3L370->SetBinContent(47,2111.846); h_SL3L370->SetBinContent(48,1940.804); h_SL3L370->SetBinContent(49,1720.893); h_SL3L370->SetBinContent(50,1514.944); h_SL3L370->SetBinContent(51,1487.019); h_SL3L370->SetBinContent(52,1274.089); h_SL3L370->SetBinContent(53,1239.182); h_SL3L370->SetBinContent(54,1186.823); h_SL3L370->SetBinContent(55,998.3273); h_SL3L370->SetBinContent(56,952.9487); h_SL3L370->SetBinContent(57,785.3973); h_SL3L370->SetBinContent(58,600.3926); h_SL3L370->SetBinContent(59,537.5609); h_SL3L370->SetMaximum(130507.4); 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,216.4206); h_SL3L471->SetBinContent(3,223.4019); h_SL3L471->SetBinContent(4,251.3271); h_SL3L471->SetBinContent(5,251.3271); h_SL3L471->SetBinContent(6,300.1963); h_SL3L471->SetBinContent(7,254.8178); h_SL3L471->SetBinContent(8,268.7804); h_SL3L471->SetBinContent(9,261.7991); h_SL3L471->SetBinContent(10,300.1963); h_SL3L471->SetBinContent(11,314.1589); h_SL3L471->SetBinContent(12,380.4814); h_SL3L471->SetBinContent(13,380.4814); h_SL3L471->SetBinContent(14,418.8786); h_SL3L471->SetBinContent(15,467.7477); h_SL3L471->SetBinContent(16,467.7477); h_SL3L471->SetBinContent(17,446.8038); h_SL3L471->SetBinContent(18,422.3692); h_SL3L471->SetBinContent(19,492.1823); h_SL3L471->SetBinContent(20,568.9767); h_SL3L471->SetBinContent(21,621.3365); h_SL3L471->SetBinContent(22,733.0375); h_SL3L471->SetBinContent(23,781.9067); h_SL3L471->SetBinContent(24,851.7197); h_SL3L471->SetBinContent(25,1012.29); h_SL3L471->SetBinContent(26,1047.196); h_SL3L471->SetBinContent(27,1197.295); h_SL3L471->SetBinContent(28,1281.07); h_SL3L471->SetBinContent(29,1745.327); h_SL3L471->SetBinContent(30,2028.07); h_SL3L471->SetBinContent(31,2310.813); h_SL3L471->SetBinContent(32,2673.842); h_SL3L471->SetBinContent(33,3773.398); h_SL3L471->SetBinContent(34,8524.179); h_SL3L471->SetBinContent(35,18008.29); h_SL3L471->SetBinContent(36,26392.84); h_SL3L471->SetBinContent(37,39744.59); h_SL3L471->SetBinContent(38,67359.16); h_SL3L471->SetBinContent(39,107306.2); h_SL3L471->SetBinContent(40,103672.4); h_SL3L471->SetBinContent(41,28078.83); h_SL3L471->SetBinContent(42,9114.1); h_SL3L471->SetBinContent(43,4342.375); h_SL3L471->SetBinContent(44,3679.15); h_SL3L471->SetBinContent(45,2708.748); h_SL3L471->SetBinContent(46,2541.197); h_SL3L471->SetBinContent(47,2094.393); h_SL3L471->SetBinContent(48,1912.879); h_SL3L471->SetBinContent(49,1759.29); h_SL3L471->SetBinContent(50,1689.477); h_SL3L471->SetBinContent(51,1410.224); h_SL3L471->SetBinContent(52,1340.411); h_SL3L471->SetBinContent(53,1291.542); h_SL3L471->SetBinContent(54,1232.201); h_SL3L471->SetBinContent(55,1099.556); h_SL3L471->SetBinContent(56,1019.271); h_SL3L471->SetBinContent(57,918.0422); h_SL3L471->SetBinContent(58,652.7524); h_SL3L471->SetBinContent(59,516.6169); h_SL3L471->SetMaximum(130507.4); 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.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("SL3, run 5491"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }