void RatesPerCell_Removing_noisy_cells_run_4981_SL3() { //=========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,-11818.26,67.5,106364.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 4981",60,0,60); h_SL3L168->SetBinContent(1,226.7008); h_SL3L168->SetBinContent(2,243.5685); h_SL3L168->SetBinContent(4,287.4243); h_SL3L168->SetBinContent(5,271.2314); h_SL3L168->SetBinContent(6,315.7619); h_SL3L168->SetBinContent(7,298.2195); h_SL3L168->SetBinContent(8,301.5931); h_SL3L168->SetBinContent(9,341.4007); h_SL3L168->SetBinContent(10,360.2924); h_SL3L168->SetBinContent(11,356.9189); h_SL3L168->SetBinContent(12,420.3411); h_SL3L168->SetBinContent(13,470.2693); h_SL3L168->SetBinContent(14,507.3781); h_SL3L168->SetBinContent(15,563.3785); h_SL3L168->SetBinContent(16,592.3909); h_SL3L168->SetBinContent(17,675.3796); h_SL3L168->SetBinContent(18,701.0183); h_SL3L168->SetBinContent(19,800.8746); h_SL3L168->SetBinContent(20,916.9239); h_SL3L168->SetBinContent(21,1084.925); h_SL3L168->SetBinContent(22,1161.167); h_SL3L168->SetBinContent(23,1369.651); h_SL3L168->SetBinContent(24,1480.302); h_SL3L168->SetBinContent(25,1740.064); h_SL3L168->SetBinContent(26,2008.596); h_SL3L168->SetBinContent(27,2224.502); h_SL3L168->SetBinContent(28,2700.169); h_SL3L168->SetBinContent(29,3133.329); h_SL3L168->SetBinContent(30,3750.684); h_SL3L168->SetBinContent(31,4301.918); h_SL3L168->SetBinContent(32,6852.977); h_SL3L168->SetBinContent(33,13722.82); h_SL3L168->SetBinContent(34,65870.09); h_SL3L168->SetBinContent(35,68303.07); h_SL3L168->SetBinContent(36,65308.73); h_SL3L168->SetBinContent(37,63938.41); h_SL3L168->SetBinContent(38,58439.56); h_SL3L168->SetBinContent(39,46618.73); h_SL3L168->SetBinContent(40,26632.62); h_SL3L168->SetBinContent(41,6564.878); h_SL3L168->SetBinContent(42,4044.855); h_SL3L168->SetBinContent(43,3207.547); h_SL3L168->SetBinContent(44,2729.856); h_SL3L168->SetBinContent(45,2468.07); h_SL3L168->SetBinContent(46,2146.236); h_SL3L168->SetBinContent(47,1933.029); h_SL3L168->SetBinContent(48,1862.185); h_SL3L168->SetBinContent(49,36739.03); h_SL3L168->SetBinContent(50,1507.291); h_SL3L168->SetBinContent(51,1467.483); h_SL3L168->SetBinContent(52,1396.639); h_SL3L168->SetBinContent(53,1374.374); h_SL3L168->SetBinContent(54,1294.084); h_SL3L168->SetBinContent(55,1192.878); h_SL3L168->SetBinContent(56,1200.3); h_SL3L168->SetBinContent(57,1186.131); h_SL3L168->SetBinContent(58,1142.275); h_SL3L168->SetBinContent(59,1062.66); h_SL3L168->SetMaximum(94546.1); 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,219.9538); h_SL3L269->SetBinContent(2,222.6526); h_SL3L269->SetBinContent(4,253.689); h_SL3L269->SetBinContent(5,246.942); h_SL3L269->SetBinContent(6,301.5931); h_SL3L269->SetBinContent(7,297.5448); h_SL3L269->SetBinContent(8,284.7254); h_SL3L269->SetBinContent(9,324.533); h_SL3L269->SetBinContent(10,319.1354); h_SL3L269->SetBinContent(11,357.5936); h_SL3L269->SetBinContent(12,379.1841); h_SL3L269->SetBinContent(13,441.257); h_SL3L269->SetBinContent(14,500.631); h_SL3L269->SetBinContent(15,501.3057); h_SL3L269->SetBinContent(16,577.5474); h_SL3L269->SetBinContent(17,599.8126); h_SL3L269->SetBinContent(18,676.7289); h_SL3L269->SetBinContent(19,723.2836); h_SL3L269->SetBinContent(20,873.0681); h_SL3L269->SetBinContent(21,992.4908); h_SL3L269->SetBinContent(22,1076.154); h_SL3L269->SetBinContent(23,1225.939); h_SL3L269->SetBinContent(24,1387.868); h_SL3L269->SetBinContent(25,1637.509); h_SL3L269->SetBinContent(26,1808.209); h_SL3L269->SetBinContent(27,2066.621); h_SL3L269->SetBinContent(28,2347.973); h_SL3L269->SetBinContent(29,2880.315); h_SL3L269->SetBinContent(30,3435.597); h_SL3L269->SetBinContent(31,3855.938); h_SL3L269->SetBinContent(32,4782.983); h_SL3L269->SetBinContent(33,9594.978); h_SL3L269->SetBinContent(34,37921.11); h_SL3L269->SetBinContent(35,70888.54); h_SL3L269->SetBinContent(36,65764.16); h_SL3L269->SetBinContent(37,64405.3); h_SL3L269->SetBinContent(38,62039.79); h_SL3L269->SetBinContent(39,53166.74); h_SL3L269->SetBinContent(40,38846.13); h_SL3L269->SetBinContent(41,12274.91); h_SL3L269->SetBinContent(42,5467.133); h_SL3L269->SetBinContent(43,3461.236); h_SL3L269->SetBinContent(44,2945.761); h_SL3L269->SetBinContent(45,2493.034); h_SL3L269->SetBinContent(46,2266.333); h_SL3L269->SetBinContent(47,1908.74); h_SL3L269->SetBinContent(48,1848.017); h_SL3L269->SetBinContent(49,1729.943); h_SL3L269->SetBinContent(50,1532.929); h_SL3L269->SetBinContent(51,1424.977); h_SL3L269->SetBinContent(52,1435.772); h_SL3L269->SetBinContent(53,1377.073); h_SL3L269->SetBinContent(54,1268.445); h_SL3L269->SetBinContent(55,1306.229); h_SL3L269->SetBinContent(56,1188.83); h_SL3L269->SetBinContent(57,1163.191); h_SL3L269->SetBinContent(58,1138.227); h_SL3L269->SetBinContent(59,1066.708); h_SL3L269->SetMaximum(82214.71); 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,216.5803); h_SL3L370->SetBinContent(2,243.5685); h_SL3L370->SetBinContent(3,220.6285); h_SL3L370->SetBinContent(4,252.3396); h_SL3L370->SetBinContent(5,266.5084); h_SL3L370->SetBinContent(6,304.9666); h_SL3L370->SetBinContent(7,287.4243); h_SL3L370->SetBinContent(8,305.6413); h_SL3L370->SetBinContent(9,342.0753); h_SL3L370->SetBinContent(10,358.2683); h_SL3L370->SetBinContent(11,358.943); h_SL3L370->SetBinContent(12,412.9194); h_SL3L370->SetBinContent(13,448.6787); h_SL3L370->SetBinContent(14,511.4263); h_SL3L370->SetBinContent(15,541.1133); h_SL3L370->SetBinContent(16,572.1497); h_SL3L370->SetBinContent(17,653.789); h_SL3L370->SetBinContent(18,677.4037); h_SL3L370->SetBinContent(19,786.0311); h_SL3L370->SetBinContent(20,879.8151); h_SL3L370->SetBinContent(21,1035.672); h_SL3L370->SetBinContent(22,1107.865); h_SL3L370->SetBinContent(23,1310.277); h_SL3L370->SetBinContent(24,1431.724); h_SL3L370->SetBinContent(25,1646.28); h_SL3L370->SetBinContent(26,1945.849); h_SL3L370->SetBinContent(27,2152.308); h_SL3L370->SetBinContent(28,2612.457); h_SL3L370->SetBinContent(29,3100.269); h_SL3L370->SetBinContent(30,3553.67); h_SL3L370->SetBinContent(31,4241.195); h_SL3L370->SetBinContent(32,6756.494); h_SL3L370->SetBinContent(33,13725.52); h_SL3L370->SetBinContent(34,65625.84); h_SL3L370->SetBinContent(35,68163.41); h_SL3L370->SetBinContent(36,65206.85); h_SL3L370->SetBinContent(37,63569.34); h_SL3L370->SetBinContent(38,58040.81); h_SL3L370->SetBinContent(39,46642.35); h_SL3L370->SetBinContent(40,26492.29); h_SL3L370->SetBinContent(41,6512.926); h_SL3L370->SetBinContent(42,3938.252); h_SL3L370->SetBinContent(43,3142.101); h_SL3L370->SetBinContent(44,2590.192); h_SL3L370->SetBinContent(45,2358.768); h_SL3L370->SetBinContent(46,2047.055); h_SL3L370->SetBinContent(47,1862.185); h_SL3L370->SetBinContent(48,1734.666); h_SL3L370->SetBinContent(49,1599.051); h_SL3L370->SetBinContent(50,1448.591); h_SL3L370->SetBinContent(51,1402.037); h_SL3L370->SetBinContent(52,1366.952); h_SL3L370->SetBinContent(53,1337.94); h_SL3L370->SetBinContent(54,1251.578); h_SL3L370->SetBinContent(55,1208.396); h_SL3L370->SetBinContent(56,1195.577); h_SL3L370->SetBinContent(57,1165.215); h_SL3L370->SetBinContent(58,1093.022); h_SL3L370->SetBinContent(59,1037.696); h_SL3L370->SetMaximum(82214.71); 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,234.7973); h_SL3L471->SetBinContent(3,233.4479); h_SL3L471->SetBinContent(4,253.689); h_SL3L471->SetBinContent(5,247.6167); h_SL3L471->SetBinContent(6,312.3883); h_SL3L471->SetBinContent(7,294.846); h_SL3L471->SetBinContent(8,281.3519); h_SL3L471->SetBinContent(9,306.316); h_SL3L471->SetBinContent(10,344.0995); h_SL3L471->SetBinContent(11,362.3165); h_SL3L471->SetBinContent(12,386.6059); h_SL3L471->SetBinContent(13,452.0522); h_SL3L471->SetBinContent(14,512.101); h_SL3L471->SetBinContent(15,499.2816); h_SL3L471->SetBinContent(16,576.8726); h_SL3L471->SetBinContent(17,620.0538); h_SL3L471->SetBinContent(18,707.0907); h_SL3L471->SetBinContent(19,742.85); h_SL3L471->SetBinContent(20,858.8993); h_SL3L471->SetBinContent(21,989.792); h_SL3L471->SetBinContent(22,1078.178); h_SL3L471->SetBinContent(23,1268.445); h_SL3L471->SetBinContent(24,1384.494); h_SL3L471->SetBinContent(25,1663.822); h_SL3L471->SetBinContent(26,1848.691); h_SL3L471->SetBinContent(27,2119.923); h_SL3L471->SetBinContent(28,2365.515); h_SL3L471->SetBinContent(29,2815.543); h_SL3L471->SetBinContent(30,3465.284); h_SL3L471->SetBinContent(31,3794.54); h_SL3L471->SetBinContent(32,4769.489); h_SL3L471->SetBinContent(33,9476.904); h_SL3L471->SetBinContent(34,38029.74); h_SL3L471->SetBinContent(35,71491.05); h_SL3L471->SetBinContent(36,66059); h_SL3L471->SetBinContent(37,64583.42); h_SL3L471->SetBinContent(38,62149.76); h_SL3L471->SetBinContent(39,53124.91); h_SL3L471->SetBinContent(40,38920.35); h_SL3L471->SetBinContent(41,12386.91); h_SL3L471->SetBinContent(42,5445.543); h_SL3L471->SetBinContent(43,3467.308); h_SL3L471->SetBinContent(44,2832.411); h_SL3L471->SetBinContent(45,2486.962); h_SL3L471->SetBinContent(46,2215.731); h_SL3L471->SetBinContent(47,1884.451); h_SL3L471->SetBinContent(48,1800.787); h_SL3L471->SetBinContent(49,1675.292); h_SL3L471->SetBinContent(50,1512.014); h_SL3L471->SetBinContent(51,1428.35); h_SL3L471->SetBinContent(52,1377.073); h_SL3L471->SetBinContent(53,1352.109); h_SL3L471->SetBinContent(54,1307.578); h_SL3L471->SetBinContent(55,1258.999); h_SL3L471->SetBinContent(56,1167.914); h_SL3L471->SetBinContent(57,1144.974); h_SL3L471->SetBinContent(58,1144.299); h_SL3L471->SetBinContent(59,1093.697); h_SL3L471->SetMaximum(82214.71); 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 4981"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }