void RatesPerCell_Removing_noisy_cells_run_7258_SL1() { //=========Macro generated from canvas: c/c //========= (Fri Jan 18 19:23:30 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-16568.91,67.5,149120.2); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7258",60,0,60); h_SL1L160->SetBinContent(1,514.3217); h_SL1L160->SetBinContent(2,496.4633); h_SL1L160->SetBinContent(3,532.1801); h_SL1L160->SetBinContent(4,514.3217); h_SL1L160->SetBinContent(5,617.9004); h_SL1L160->SetBinContent(6,617.9004); h_SL1L160->SetBinContent(7,642.9022); h_SL1L160->SetBinContent(8,717.9074); h_SL1L160->SetBinContent(9,703.6207); h_SL1L160->SetBinContent(10,867.9179); h_SL1L160->SetBinContent(11,896.4913); h_SL1L160->SetBinContent(12,896.4913); h_SL1L160->SetBinContent(13,1739.407); h_SL1L160->SetBinContent(14,2293.018); h_SL1L160->SetBinContent(15,2175.152); h_SL1L160->SetBinContent(16,1217.942); h_SL1L160->SetBinContent(17,1535.822); h_SL1L160->SetBinContent(18,2093.004); h_SL1L160->SetBinContent(19,2443.028); h_SL1L160->SetBinContent(20,2693.046); h_SL1L160->SetBinContent(21,3189.509); h_SL1L160->SetBinContent(22,3900.273); h_SL1L160->SetBinContent(23,4728.902); h_SL1L160->SetBinContent(24,6686.183); h_SL1L160->SetBinContent(25,15740.39); h_SL1L160->SetBinContent(26,32073.67); h_SL1L160->SetBinContent(27,51785.77); h_SL1L160->SetBinContent(28,80394.91); h_SL1L160->SetBinContent(29,94331.6); h_SL1L160->SetBinContent(30,72162.2); h_SL1L160->SetBinContent(31,36231.11); h_SL1L160->SetBinContent(32,9664.962); h_SL1L160->SetBinContent(33,6854.051); h_SL1L160->SetBinContent(34,5093.214); h_SL1L160->SetBinContent(35,3860.985); h_SL1L160->SetBinContent(36,3339.52); h_SL1L160->SetBinContent(37,2875.201); h_SL1L160->SetBinContent(38,2389.453); h_SL1L160->SetBinContent(39,2328.734); h_SL1L160->SetBinContent(41,1907.276); h_SL1L160->SetBinContent(42,1782.268); h_SL1L160->SetBinContent(43,1746.551); h_SL1L160->SetBinContent(44,1485.818); h_SL1L160->SetBinContent(45,1496.533); h_SL1L160->SetBinContent(46,1314.378); h_SL1L160->SetBinContent(47,1260.803); h_SL1L160->SetBinContent(48,1228.657); h_SL1L160->SetBinContent(49,1171.511); h_SL1L160->SetBinContent(50,1146.509); h_SL1L160->SetBinContent(51,1150.081); h_SL1L160->SetBinContent(52,1128.65); h_SL1L160->SetBinContent(53,1114.364); h_SL1L160->SetBinContent(54,967.9249); h_SL1L160->SetBinContent(55,857.2029); h_SL1L160->SetBinContent(56,760.7676); h_SL1L160->SetMaximum(132551.3); 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,542.8951); h_SL1L261->SetBinContent(2,692.9056); h_SL1L261->SetBinContent(3,853.6312); h_SL1L261->SetBinContent(4,489.32); h_SL1L261->SetBinContent(5,607.1854); h_SL1L261->SetBinContent(6,575.0403); h_SL1L261->SetBinContent(7,600.042); h_SL1L261->SetBinContent(8,596.4703); h_SL1L261->SetBinContent(9,11750.82); h_SL1L261->SetBinContent(10,678.619); h_SL1L261->SetBinContent(11,875.0613); h_SL1L261->SetBinContent(12,903.6347); h_SL1L261->SetBinContent(13,921.4931); h_SL1L261->SetBinContent(14,1092.934); h_SL1L261->SetBinContent(15,1167.939); h_SL1L261->SetBinContent(16,1239.372); h_SL1L261->SetBinContent(17,1353.666); h_SL1L261->SetBinContent(18,1803.698); h_SL1L261->SetBinContent(19,2089.432); h_SL1L261->SetBinContent(20,2353.736); h_SL1L261->SetBinContent(21,2864.486); h_SL1L261->SetBinContent(22,3375.236); h_SL1L261->SetBinContent(23,3925.275); h_SL1L261->SetBinContent(24,5211.079); h_SL1L261->SetBinContent(25,8836.333); h_SL1L261->SetBinContent(26,25223.2); h_SL1L261->SetBinContent(27,40627.84); h_SL1L261->SetBinContent(28,66004.62); h_SL1L261->SetBinContent(29,95913.86); h_SL1L261->SetBinContent(30,92927.94); h_SL1L261->SetBinContent(31,55818.2); h_SL1L261->SetBinContent(32,20126.41); h_SL1L261->SetBinContent(33,7275.509); h_SL1L261->SetBinContent(34,5336.088); h_SL1L261->SetBinContent(35,4068.142); h_SL1L261->SetBinContent(36,3246.656); h_SL1L261->SetBinContent(37,2939.491); h_SL1L261->SetBinContent(38,2550.178); h_SL1L261->SetBinContent(39,2182.296); h_SL1L261->SetBinContent(40,2107.29); h_SL1L261->SetBinContent(41,1810.841); h_SL1L261->SetBinContent(42,1767.981); h_SL1L261->SetBinContent(43,1575.11); h_SL1L261->SetBinContent(44,1603.684); h_SL1L261->SetBinContent(45,1467.96); h_SL1L261->SetBinContent(46,1357.238); h_SL1L261->SetBinContent(47,1296.519); h_SL1L261->SetBinContent(48,1228.657); h_SL1L261->SetBinContent(49,1164.367); h_SL1L261->SetBinContent(50,1117.935); h_SL1L261->SetBinContent(51,1067.932); h_SL1L261->SetBinContent(52,1142.937); h_SL1L261->SetBinContent(53,1142.937); h_SL1L261->SetBinContent(54,967.9249); h_SL1L261->SetBinContent(55,846.4879); h_SL1L261->SetBinContent(56,767.9109); h_SL1L261->SetMaximum(115262.7); 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,392.8846); h_SL1L362->SetBinContent(2,382.1696); h_SL1L362->SetBinContent(3,460.7466); h_SL1L362->SetBinContent(4,503.6067); h_SL1L362->SetBinContent(5,521.4651); h_SL1L362->SetBinContent(6,560.7535); h_SL1L362->SetBinContent(7,482.1766); h_SL1L362->SetBinContent(8,660.7606); h_SL1L362->SetBinContent(9,653.6172); h_SL1L362->SetBinContent(10,767.9109); h_SL1L362->SetBinContent(11,750.0525); h_SL1L362->SetBinContent(12,892.9197); h_SL1L362->SetBinContent(13,896.4913); h_SL1L362->SetBinContent(14,1232.229); h_SL1L362->SetBinContent(15,1560.824); h_SL1L362->SetBinContent(16,1217.942); h_SL1L362->SetBinContent(17,1460.817); h_SL1L362->SetBinContent(18,1760.838); h_SL1L362->SetBinContent(19,2075.145); h_SL1L362->SetBinContent(20,2421.598); h_SL1L362->SetBinContent(21,3003.782); h_SL1L362->SetBinContent(22,3421.668); h_SL1L362->SetBinContent(23,4171.721); h_SL1L362->SetBinContent(24,6225.436); h_SL1L362->SetBinContent(25,15811.82); h_SL1L362->SetBinContent(26,32434.41); h_SL1L362->SetBinContent(27,53946.63); h_SL1L362->SetBinContent(28,84013.02); h_SL1L362->SetBinContent(29,100228.4); h_SL1L362->SetBinContent(30,75269.55); h_SL1L362->SetBinContent(31,37384.76); h_SL1L362->SetBinContent(32,9411.373); h_SL1L362->SetBinContent(33,6043.28); h_SL1L362->SetBinContent(34,4471.742); h_SL1L362->SetBinContent(35,3343.091); h_SL1L362->SetBinContent(36,2825.198); h_SL1L362->SetBinContent(37,2632.327); h_SL1L362->SetBinContent(38,2246.586); h_SL1L362->SetBinContent(39,2118.005); h_SL1L362->SetBinContent(40,1846.558); h_SL1L362->SetBinContent(41,1592.969); h_SL1L362->SetBinContent(42,1671.546); h_SL1L362->SetBinContent(43,1635.829); h_SL1L362->SetBinContent(44,1371.525); h_SL1L362->SetBinContent(45,1350.094); h_SL1L362->SetBinContent(46,1271.518); h_SL1L362->SetBinContent(47,1217.942); h_SL1L362->SetBinContent(48,1142.937); h_SL1L362->SetBinContent(49,1085.79); h_SL1L362->SetBinContent(50,1114.364); h_SL1L362->SetBinContent(51,1085.79); h_SL1L362->SetBinContent(52,1057.217); h_SL1L362->SetBinContent(53,1014.357); h_SL1L362->SetBinContent(54,835.7728); h_SL1L362->SetBinContent(55,714.3358); h_SL1L362->SetBinContent(56,664.3322); h_SL1L362->SetMaximum(115262.7); 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,378.5979); h_SL1L463->SetBinContent(3,353.5962); h_SL1L463->SetBinContent(4,403.5997); h_SL1L463->SetBinContent(5,510.75); h_SL1L463->SetBinContent(6,500.035); h_SL1L463->SetBinContent(7,514.3217); h_SL1L463->SetBinContent(8,532.1801); h_SL1L463->SetBinContent(9,600.042); h_SL1L463->SetBinContent(10,635.7588); h_SL1L463->SetBinContent(11,682.1906); h_SL1L463->SetBinContent(12,821.4861); h_SL1L463->SetBinContent(13,853.6312); h_SL1L463->SetBinContent(14,2346.593); h_SL1L463->SetBinContent(15,2121.577); h_SL1L463->SetBinContent(16,1992.997); h_SL1L463->SetBinContent(17,1292.948); h_SL1L463->SetBinContent(18,1517.963); h_SL1L463->SetBinContent(19,1742.979); h_SL1L463->SetBinContent(20,2068.002); h_SL1L463->SetBinContent(21,2585.895); h_SL1L463->SetBinContent(22,2982.352); h_SL1L463->SetBinContent(23,3328.804); h_SL1L463->SetBinContent(24,4768.191); h_SL1L463->SetBinContent(25,8029.134); h_SL1L463->SetBinContent(26,24319.56); h_SL1L463->SetBinContent(27,38963.44); h_SL1L463->SetBinContent(28,64972.41); h_SL1L463->SetBinContent(29,86984.66); h_SL1L463->SetBinContent(30,86848.94); h_SL1L463->SetBinContent(31,52514.39); h_SL1L463->SetBinContent(32,18837.03); h_SL1L463->SetBinContent(33,6682.611); h_SL1L463->SetBinContent(34,4936.06); h_SL1L463->SetBinContent(35,3668.114); h_SL1L463->SetBinContent(36,2803.768); h_SL1L463->SetBinContent(41,1560.824); h_SL1L463->SetBinContent(42,1585.825); h_SL1L463->SetBinContent(43,1421.528); h_SL1L463->SetBinContent(44,1542.965); h_SL1L463->SetBinContent(45,1264.374); h_SL1L463->SetBinContent(46,1210.799); h_SL1L463->SetBinContent(47,1042.93); h_SL1L463->SetBinContent(48,1075.075); h_SL1L463->SetBinContent(49,1032.215); h_SL1L463->SetBinContent(50,1007.213); h_SL1L463->SetBinContent(51,985.7833); h_SL1L463->SetBinContent(52,925.0648); h_SL1L463->SetBinContent(53,925.0648); h_SL1L463->SetBinContent(54,860.7745); h_SL1L463->SetBinContent(55,3.571679); h_SL1L463->SetBinContent(56,650.0455); h_SL1L463->SetMaximum(115262.7); 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.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("SL1, run 7258"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }