void RatesPerCell_Removing_noisy_cells_run_4995_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:37:55 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-8713.407,67.5,78420.66); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 4995",60,0,60); h_SL2L164->SetBinContent(1,465.0882); h_SL2L164->SetBinContent(2,556.4882); h_SL2L164->SetBinContent(3,672.1536); h_SL2L164->SetBinContent(4,747.781); h_SL2L164->SetBinContent(5,747.781); h_SL2L164->SetBinContent(6,748.5898); h_SL2L164->SetBinContent(7,744.1412); h_SL2L164->SetBinContent(8,843.6296); h_SL2L164->SetBinContent(9,975.8765); h_SL2L164->SetBinContent(10,1059.592); h_SL2L164->SetBinContent(11,1134.006); h_SL2L164->SetBinContent(12,1232.686); h_SL2L164->SetBinContent(13,1302.651); h_SL2L164->SetBinContent(14,1470.892); h_SL2L164->SetBinContent(15,1562.696); h_SL2L164->SetBinContent(16,1657.736); h_SL2L164->SetBinContent(17,1774.21); h_SL2L164->SetBinContent(18,1924.656); h_SL2L164->SetBinContent(19,2107.052); h_SL2L164->SetBinContent(20,2270.439); h_SL2L164->SetBinContent(21,2306.433); h_SL2L164->SetBinContent(22,2594.788); h_SL2L164->SetBinContent(23,2852.406); h_SL2L164->SetBinContent(24,3196.976); h_SL2L164->SetBinContent(25,7914.588); h_SL2L164->SetBinContent(26,27388.04); h_SL2L164->SetBinContent(27,42402.7); h_SL2L164->SetBinContent(28,49732.49); h_SL2L164->SetBinContent(29,52709.46); h_SL2L164->SetBinContent(30,49918.93); h_SL2L164->SetBinContent(31,46494.67); h_SL2L164->SetBinContent(32,47647.68); h_SL2L164->SetBinContent(33,45807.14); h_SL2L164->SetBinContent(34,25605.74); h_SL2L164->SetBinContent(36,3551.252); h_SL2L164->SetBinContent(37,4123.513); h_SL2L164->SetBinContent(38,2522.396); h_SL2L164->SetBinContent(39,3440.44); h_SL2L164->SetBinContent(40,13959.93); h_SL2L164->SetBinContent(41,4632.683); h_SL2L164->SetBinContent(42,5213.841); h_SL2L164->SetBinContent(43,5625.141); h_SL2L164->SetBinContent(44,5373.993); h_SL2L164->SetBinContent(45,1015.914); h_SL2L164->SetBinContent(46,962.126); h_SL2L164->SetBinContent(47,859.4022); h_SL2L164->SetBinContent(48,807.2314); h_SL2L164->SetBinContent(49,725.9421); h_SL2L164->SetBinContent(50,617.9607); h_SL2L164->SetBinContent(51,579.9448); h_SL2L164->SetBinContent(52,533.436); h_SL2L164->SetBinContent(53,526.1563); h_SL2L164->SetBinContent(54,497.4422); h_SL2L164->SetBinContent(55,456.1909); h_SL2L164->SetBinContent(56,358.3202); h_SL2L164->SetBinContent(57,324.3485); h_SL2L164->SetMaximum(69707.25); h_SL2L164->SetEntries(60); h_SL2L164->SetDirectory(0); h_SL2L164->SetStats(0); h_SL2L164->SetLineWidth(2); h_SL2L164->GetXaxis()->SetTitle("Cell"); h_SL2L164->GetXaxis()->SetLabelFont(42); h_SL2L164->GetXaxis()->SetLabelSize(0.035); h_SL2L164->GetXaxis()->SetTitleSize(0.035); h_SL2L164->GetXaxis()->SetTitleFont(42); h_SL2L164->GetYaxis()->SetTitle("Hz"); h_SL2L164->GetYaxis()->SetLabelFont(42); h_SL2L164->GetYaxis()->SetLabelSize(0.035); h_SL2L164->GetYaxis()->SetTitleSize(0.035); h_SL2L164->GetYaxis()->SetTitleOffset(1.45); h_SL2L164->GetYaxis()->SetTitleFont(42); h_SL2L164->GetZaxis()->SetLabelFont(42); h_SL2L164->GetZaxis()->SetLabelSize(0.035); h_SL2L164->GetZaxis()->SetTitleSize(0.035); h_SL2L164->GetZaxis()->SetTitleFont(42); h_SL2L164->Draw(""); TH1D *h_SL2L265 = new TH1D("h_SL2L265","",60,0,60); h_SL2L265->SetBinContent(1,432.7343); h_SL2L265->SetBinContent(2,508.7661); h_SL2L265->SetBinContent(3,590.0554); h_SL2L265->SetBinContent(4,685.4996); h_SL2L265->SetBinContent(5,755.0606); h_SL2L265->SetBinContent(6,727.5598); h_SL2L265->SetBinContent(7,738.0748); h_SL2L265->SetBinContent(8,753.4429); h_SL2L265->SetBinContent(9,897.4181); h_SL2L265->SetBinContent(10,983.1561); h_SL2L265->SetBinContent(11,1075.769); h_SL2L265->SetBinContent(12,1147.352); h_SL2L265->SetBinContent(13,1224.598); h_SL2L265->SetBinContent(14,1334.601); h_SL2L265->SetBinContent(15,1460.781); h_SL2L265->SetBinContent(16,1561.483); h_SL2L265->SetBinContent(17,1659.354); h_SL2L265->SetBinContent(18,1786.343); h_SL2L265->SetBinContent(19,1964.29); h_SL2L265->SetBinContent(20,2149.516); h_SL2L265->SetBinContent(21,2226.761); h_SL2L265->SetBinContent(22,2361.031); h_SL2L265->SetBinContent(23,2680.122); h_SL2L265->SetBinContent(24,2919.541); h_SL2L265->SetBinContent(25,3719.897); h_SL2L265->SetBinContent(26,16999.99); h_SL2L265->SetBinContent(27,36080.73); h_SL2L265->SetBinContent(28,46755.93); h_SL2L265->SetBinContent(29,51662.41); h_SL2L265->SetBinContent(30,51832.67); h_SL2L265->SetBinContent(31,47333.04); h_SL2L265->SetBinContent(32,46813.36); h_SL2L265->SetBinContent(33,47178.14); h_SL2L265->SetBinContent(34,39204.51); h_SL2L265->SetBinContent(35,13063.32); h_SL2L265->SetBinContent(36,4479.406); h_SL2L265->SetBinContent(37,2894.467); h_SL2L265->SetBinContent(38,2244.152); h_SL2L265->SetBinContent(39,2406.73); h_SL2L265->SetBinContent(40,3212.749); h_SL2L265->SetBinContent(41,1529.129); h_SL2L265->SetBinContent(42,1385.558); h_SL2L265->SetBinContent(43,1236.73); h_SL2L265->SetBinContent(44,1248.459); h_SL2L265->SetBinContent(45,1013.488); h_SL2L265->SetBinContent(46,963.7437); h_SL2L265->SetBinContent(47,871.9393); h_SL2L265->SetBinContent(48,803.5916); h_SL2L265->SetBinContent(49,744.5456); h_SL2L265->SetBinContent(50,636.1598); h_SL2L265->SetBinContent(51,595.7173); h_SL2L265->SetBinContent(52,527.3696); h_SL2L265->SetBinContent(53,504.7218); h_SL2L265->SetBinContent(54,476.8165); h_SL2L265->SetBinContent(55,477.221); h_SL2L265->SetBinContent(56,395.9316); h_SL2L265->SetBinContent(57,342.5476); h_SL2L265->SetMaximum(60615.88); h_SL2L265->SetEntries(60); h_SL2L265->SetDirectory(0); h_SL2L265->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL2L265->SetLineColor(ci); h_SL2L265->SetLineWidth(2); h_SL2L265->GetXaxis()->SetTitle("Cell"); h_SL2L265->GetXaxis()->SetLabelFont(42); h_SL2L265->GetXaxis()->SetLabelSize(0.035); h_SL2L265->GetXaxis()->SetTitleSize(0.035); h_SL2L265->GetXaxis()->SetTitleFont(42); h_SL2L265->GetYaxis()->SetTitle("Hz"); h_SL2L265->GetYaxis()->SetLabelFont(42); h_SL2L265->GetYaxis()->SetLabelSize(0.035); h_SL2L265->GetYaxis()->SetTitleSize(0.035); h_SL2L265->GetYaxis()->SetTitleOffset(1.45); h_SL2L265->GetYaxis()->SetTitleFont(42); h_SL2L265->GetZaxis()->SetLabelFont(42); h_SL2L265->GetZaxis()->SetLabelSize(0.035); h_SL2L265->GetZaxis()->SetTitleSize(0.035); h_SL2L265->GetZaxis()->SetTitleFont(42); h_SL2L265->Draw("same"); TH1D *h_SL2L366 = new TH1D("h_SL2L366","",60,0,60); h_SL2L366->SetBinContent(1,459.0219); h_SL2L366->SetBinContent(2,526.5608); h_SL2L366->SetBinContent(3,630.0934); h_SL2L366->SetBinContent(4,704.5076); h_SL2L366->SetBinContent(5,692.7792); h_SL2L366->SetBinContent(6,721.4934); h_SL2L366->SetBinContent(7,684.6907); h_SL2L366->SetBinContent(8,824.6216); h_SL2L366->SetBinContent(9,888.5208); h_SL2L366->SetBinContent(10,1003.782); h_SL2L366->SetBinContent(11,1065.254); h_SL2L366->SetBinContent(12,1134.815); h_SL2L366->SetBinContent(13,1226.215); h_SL2L366->SetBinContent(14,1368.168); h_SL2L366->SetBinContent(15,1483.834); h_SL2L366->SetBinContent(16,1555.417); h_SL2L366->SetBinContent(17,1703.841); h_SL2L366->SetBinContent(18,1825.572); h_SL2L366->SetBinContent(19,2013.63); h_SL2L366->SetBinContent(20,2157.2); h_SL2L366->SetBinContent(21,2229.188); h_SL2L366->SetBinContent(22,2496.917); h_SL2L366->SetBinContent(23,2711.262); h_SL2L366->SetBinContent(24,3074.435); h_SL2L366->SetBinContent(25,7779.106); h_SL2L366->SetBinContent(26,27340.72); h_SL2L366->SetBinContent(27,42320.6); h_SL2L366->SetBinContent(28,49675.06); h_SL2L366->SetBinContent(29,52474.89); h_SL2L366->SetBinContent(30,49791.94); h_SL2L366->SetBinContent(31,46428.34); h_SL2L366->SetBinContent(32,47626.25); h_SL2L366->SetBinContent(33,45679.35); h_SL2L366->SetBinContent(34,25637.28); h_SL2L366->SetBinContent(35,6649.953); h_SL2L366->SetBinContent(36,3436.8); h_SL2L366->SetBinContent(37,2441.107); h_SL2L366->SetBinContent(38,2023.336); h_SL2L366->SetBinContent(39,1758.438); h_SL2L366->SetBinContent(40,2622.693); h_SL2L366->SetBinContent(41,1364.933); h_SL2L366->SetBinContent(42,1224.598); h_SL2L366->SetBinContent(43,1141.286); h_SL2L366->SetBinContent(44,993.2667); h_SL2L366->SetBinContent(45,944.7357); h_SL2L366->SetBinContent(46,879.6234); h_SL2L366->SetBinContent(47,801.5695); h_SL2L366->SetBinContent(48,726.7509); h_SL2L366->SetBinContent(49,696.0146); h_SL2L366->SetBinContent(50,593.2908); h_SL2L366->SetBinContent(51,549.2086); h_SL2L366->SetBinContent(52,484.905); h_SL2L366->SetBinContent(53,486.9272); h_SL2L366->SetBinContent(54,443.6537); h_SL2L366->SetBinContent(55,419.7927); h_SL2L366->SetBinContent(56,355.8936); h_SL2L366->SetBinContent(57,322.7308); h_SL2L366->SetMaximum(60615.88); h_SL2L366->SetEntries(60); h_SL2L366->SetDirectory(0); h_SL2L366->SetStats(0); ci = TColor::GetColor("#009900"); h_SL2L366->SetLineColor(ci); h_SL2L366->SetLineWidth(2); h_SL2L366->GetXaxis()->SetTitle("Cell"); h_SL2L366->GetXaxis()->SetLabelFont(42); h_SL2L366->GetXaxis()->SetLabelSize(0.035); h_SL2L366->GetXaxis()->SetTitleSize(0.035); h_SL2L366->GetXaxis()->SetTitleFont(42); h_SL2L366->GetYaxis()->SetTitle("Hz"); h_SL2L366->GetYaxis()->SetLabelFont(42); h_SL2L366->GetYaxis()->SetLabelSize(0.035); h_SL2L366->GetYaxis()->SetTitleSize(0.035); h_SL2L366->GetYaxis()->SetTitleOffset(1.45); h_SL2L366->GetYaxis()->SetTitleFont(42); h_SL2L366->GetZaxis()->SetLabelFont(42); h_SL2L366->GetZaxis()->SetLabelSize(0.035); h_SL2L366->GetZaxis()->SetTitleSize(0.035); h_SL2L366->GetZaxis()->SetTitleFont(42); h_SL2L366->Draw("same"); TH1D *h_SL2L467 = new TH1D("h_SL2L467","",60,0,60); h_SL2L467->SetBinContent(2,482.8829); h_SL2L467->SetBinContent(3,593.2908); h_SL2L467->SetBinContent(4,624.4315); h_SL2L467->SetBinContent(5,679.8376); h_SL2L467->SetBinContent(6,679.8376); h_SL2L467->SetBinContent(7,679.4332); h_SL2L467->SetBinContent(8,685.0952); h_SL2L467->SetBinContent(9,806.0181); h_SL2L467->SetBinContent(10,893.7783); h_SL2L467->SetBinContent(11,1007.826); h_SL2L467->SetBinContent(12,1058.379); h_SL2L467->SetBinContent(13,1103.675); h_SL2L467->SetBinContent(14,1245.628); h_SL2L467->SetBinContent(15,1375.043); h_SL2L467->SetBinContent(16,1459.973); h_SL2L467->SetBinContent(17,1570.785); h_SL2L467->SetBinContent(18,1688.877); h_SL2L467->SetBinContent(19,1860.353); h_SL2L467->SetBinContent(20,2074.698); h_SL2L467->SetBinContent(21,2103.816); h_SL2L467->SetBinContent(22,2247.387); h_SL2L467->SetBinContent(23,2552.728); h_SL2L467->SetBinContent(24,2764.242); h_SL2L467->SetBinContent(25,3562.98); h_SL2L467->SetBinContent(26,16887.96); h_SL2L467->SetBinContent(27,36069.41); h_SL2L467->SetBinContent(28,46650.37); h_SL2L467->SetBinContent(29,51731.56); h_SL2L467->SetBinContent(30,52110.1); h_SL2L467->SetBinContent(31,47279.25); h_SL2L467->SetBinContent(32,46915.68); h_SL2L467->SetBinContent(33,47174.1); h_SL2L467->SetBinContent(34,39217.45); h_SL2L467->SetBinContent(35,12966.66); h_SL2L467->SetBinContent(36,4349.586); h_SL2L467->SetBinContent(37,2765.455); h_SL2L467->SetBinContent(38,2138.193); h_SL2L467->SetBinContent(39,1823.955); h_SL2L467->SetBinContent(40,1617.698); h_SL2L467->SetBinContent(41,1396.882); h_SL2L467->SetBinContent(42,1202.354); h_SL2L467->SetBinContent(43,1157.059); h_SL2L467->SetBinContent(44,1030.878); h_SL2L467->SetBinContent(45,937.4561); h_SL2L467->SetBinContent(46,892.565); h_SL2L467->SetBinContent(47,770.0244); h_SL2L467->SetBinContent(48,723.1111); h_SL2L467->SetBinContent(49,709.3607); h_SL2L467->SetBinContent(50,631.3067); h_SL2L467->SetBinContent(51,539.9068); h_SL2L467->SetBinContent(52,471.559); h_SL2L467->SetBinContent(53,476.4121); h_SL2L467->SetBinContent(54,461.4484); h_SL2L467->SetBinContent(55,437.5874); h_SL2L467->SetBinContent(56,375.306); h_SL2L467->SetBinContent(57,320.7087); h_SL2L467->SetMaximum(60615.88); h_SL2L467->SetEntries(60); h_SL2L467->SetDirectory(0); h_SL2L467->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL2L467->SetLineColor(ci); h_SL2L467->SetLineWidth(2); h_SL2L467->GetXaxis()->SetTitle("Cell"); h_SL2L467->GetXaxis()->SetLabelFont(42); h_SL2L467->GetXaxis()->SetLabelSize(0.035); h_SL2L467->GetXaxis()->SetTitleSize(0.035); h_SL2L467->GetXaxis()->SetTitleFont(42); h_SL2L467->GetYaxis()->SetTitle("Hz"); h_SL2L467->GetYaxis()->SetLabelFont(42); h_SL2L467->GetYaxis()->SetLabelSize(0.035); h_SL2L467->GetYaxis()->SetTitleSize(0.035); h_SL2L467->GetYaxis()->SetTitleOffset(1.45); h_SL2L467->GetYaxis()->SetTitleFont(42); h_SL2L467->GetZaxis()->SetLabelFont(42); h_SL2L467->GetZaxis()->SetLabelSize(0.035); h_SL2L467->GetZaxis()->SetTitleSize(0.035); h_SL2L467->GetZaxis()->SetTitleFont(42); h_SL2L467->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_SL2L1","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_SL2L2","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_SL2L3","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_SL2L4","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("SL2, run 4995"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }