void RatesPerCell_Removing_noisy_cells_run_5393_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:07:53 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9069.907,67.5,81629.16); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5393",60,0,60); h_SL2L164->SetBinContent(1,760.866); h_SL2L164->SetBinContent(3,986.5895); h_SL2L164->SetBinContent(4,1197.096); h_SL2L164->SetBinContent(5,1204.704); h_SL2L164->SetBinContent(6,1176.806); h_SL2L164->SetBinContent(7,1128.618); h_SL2L164->SetBinContent(8,1316.298); h_SL2L164->SetBinContent(9,1410.138); h_SL2L164->SetBinContent(10,1506.515); h_SL2L164->SetBinContent(11,1752.528); h_SL2L164->SetBinContent(12,1793.107); h_SL2L164->SetBinContent(13,1884.411); h_SL2L164->SetBinContent(14,2171.004); h_SL2L164->SetBinContent(15,2307.96); h_SL2L164->SetBinContent(16,2553.973); h_SL2L164->SetBinContent(17,2789.842); h_SL2L164->SetBinContent(18,2825.349); h_SL2L164->SetBinContent(19,2916.653); h_SL2L164->SetBinContent(20,3160.13); h_SL2L164->SetBinContent(21,3505.056); h_SL2L164->SetBinContent(22,3885.489); h_SL2L164->SetBinContent(23,4070.633); h_SL2L164->SetBinContent(24,4303.965); h_SL2L164->SetBinContent(25,9482.926); h_SL2L164->SetBinContent(26,30290.07); h_SL2L164->SetBinContent(27,45418.62); h_SL2L164->SetBinContent(28,52248.66); h_SL2L164->SetBinContent(29,54866.04); h_SL2L164->SetBinContent(30,51312.8); h_SL2L164->SetBinContent(31,47379.12); h_SL2L164->SetBinContent(32,47493.25); h_SL2L164->SetBinContent(33,45274.06); h_SL2L164->SetBinContent(34,26237.19); h_SL2L164->SetBinContent(36,4342.008); h_SL2L164->SetBinContent(37,3621.722); h_SL2L164->SetBinContent(38,3165.202); h_SL2L164->SetBinContent(39,2411.945); h_SL2L164->SetBinContent(40,2008.686); h_SL2L164->SetBinContent(41,2049.266); h_SL2L164->SetBinContent(42,1864.122); h_SL2L164->SetBinContent(43,1678.978); h_SL2L164->SetBinContent(44,1734.774); h_SL2L164->SetBinContent(45,1399.993); h_SL2L164->SetBinContent(46,1450.718); h_SL2L164->SetBinContent(47,1344.197); h_SL2L164->SetBinContent(48,1285.863); h_SL2L164->SetBinContent(49,1235.139); h_SL2L164->SetBinContent(50,1204.704); h_SL2L164->SetBinContent(51,1131.154); h_SL2L164->SetBinContent(52,1014.488); h_SL2L164->SetBinContent(53,1075.357); h_SL2L164->SetBinContent(54,930.7927); h_SL2L164->SetBinContent(55,1009.415); h_SL2L164->SetBinContent(56,844.5612); h_SL2L164->SetBinContent(57,816.6628); h_SL2L164->SetMaximum(72559.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,758.3297); h_SL2L265->SetBinContent(2,854.7061); h_SL2L265->SetBinContent(3,935.8651); h_SL2L265->SetBinContent(4,1057.604); h_SL2L265->SetBinContent(5,1171.734); h_SL2L265->SetBinContent(6,1062.676); h_SL2L265->SetBinContent(7,1105.792); h_SL2L265->SetBinContent(8,1204.704); h_SL2L265->SetBinContent(9,1293.472); h_SL2L265->SetBinContent(10,1445.645); h_SL2L265->SetBinContent(11,1569.92); h_SL2L265->SetBinContent(12,1821.006); h_SL2L265->SetBinContent(13,1798.18); h_SL2L265->SetBinContent(14,1950.353); h_SL2L265->SetBinContent(15,2191.294); h_SL2L265->SetBinContent(16,2368.829); h_SL2L265->SetBinContent(17,2576.799); h_SL2L265->SetBinContent(18,2845.639); h_SL2L265->SetBinContent(19,2820.276); h_SL2L265->SetBinContent(20,3033.319); h_SL2L265->SetBinContent(21,3276.796); h_SL2L265->SetBinContent(22,3545.635); h_SL2L265->SetBinContent(23,3981.865); h_SL2L265->SetBinContent(24,4014.836); h_SL2L265->SetBinContent(25,4940.556); h_SL2L265->SetBinContent(26,19272.73); h_SL2L265->SetBinContent(27,38953.8); h_SL2L265->SetBinContent(28,49200.13); h_SL2L265->SetBinContent(29,54320.76); h_SL2L265->SetBinContent(30,53879.45); h_SL2L265->SetBinContent(31,48302.31); h_SL2L265->SetBinContent(32,46917.53); h_SL2L265->SetBinContent(33,46501.59); h_SL2L265->SetBinContent(34,39301.26); h_SL2L265->SetBinContent(35,14174.93); h_SL2L265->SetBinContent(36,5447.8); h_SL2L265->SetBinContent(37,3862.663); h_SL2L265->SetBinContent(38,3292.013); h_SL2L265->SetBinContent(39,2761.943); h_SL2L265->SetBinContent(40,2264.844); h_SL2L265->SetBinContent(41,2249.627); h_SL2L265->SetBinContent(42,2028.976); h_SL2L265->SetBinContent(43,1701.803); h_SL2L265->SetBinContent(44,1633.326); h_SL2L265->SetBinContent(45,1544.558); h_SL2L265->SetBinContent(46,1425.356); h_SL2L265->SetBinContent(47,1339.124); h_SL2L265->SetBinContent(48,1323.907); h_SL2L265->SetBinContent(49,1235.139); h_SL2L265->SetBinContent(50,1148.908); h_SL2L265->SetBinContent(51,1121.009); h_SL2L265->SetBinContent(52,1067.749); h_SL2L265->SetBinContent(53,978.9808); h_SL2L265->SetBinContent(54,953.6187); h_SL2L265->SetBinContent(55,1022.097); h_SL2L265->SetBinContent(56,897.8218); h_SL2L265->SetBinContent(57,892.7494); h_SL2L265->SetMaximum(63095.95); 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,824.2714); h_SL2L366->SetBinContent(2,854.7061); h_SL2L366->SetBinContent(3,963.7635); h_SL2L366->SetBinContent(4,1146.371); h_SL2L366->SetBinContent(5,1095.647); h_SL2L366->SetBinContent(6,1075.357); h_SL2L366->SetBinContent(7,1100.719); h_SL2L366->SetBinContent(8,1222.458); h_SL2L366->SetBinContent(9,1361.95); h_SL2L366->SetBinContent(10,1410.138); h_SL2L366->SetBinContent(11,1689.122); h_SL2L366->SetBinContent(12,1684.05); h_SL2L366->SetBinContent(13,1727.166); h_SL2L366->SetBinContent(14,2105.062); h_SL2L366->SetBinContent(15,2259.772); h_SL2L366->SetBinContent(16,2442.38); h_SL2L366->SetBinContent(17,2604.698); h_SL2L366->SetBinContent(18,2820.276); h_SL2L366->SetBinContent(19,2931.87); h_SL2L366->SetBinContent(20,3040.927); h_SL2L366->SetBinContent(21,3390.926); h_SL2L366->SetBinContent(22,3690.2); h_SL2L366->SetBinContent(23,3956.503); h_SL2L366->SetBinContent(24,4032.59); h_SL2L366->SetBinContent(25,9335.825); h_SL2L366->SetBinContent(26,30290.07); h_SL2L366->SetBinContent(27,45203.05); h_SL2L366->SetBinContent(28,51974.75); h_SL2L366->SetBinContent(29,54445.03); h_SL2L366->SetBinContent(30,51054.11); h_SL2L366->SetBinContent(31,47450.14); h_SL2L366->SetBinContent(32,47214.27); h_SL2L366->SetBinContent(33,45068.62); h_SL2L366->SetBinContent(34,26221.98); h_SL2L366->SetBinContent(35,7844.528); h_SL2L366->SetBinContent(36,4407.95); h_SL2L366->SetBinContent(37,3327.521); h_SL2L366->SetBinContent(38,3033.319); h_SL2L366->SetBinContent(39,2429.698); h_SL2L366->SetBinContent(40,2181.149); h_SL2L366->SetBinContent(41,2054.338); h_SL2L366->SetBinContent(42,1788.035); h_SL2L366->SetBinContent(43,1585.137); h_SL2L366->SetBinContent(44,1651.079); h_SL2L366->SetBinContent(45,1316.298); h_SL2L366->SetBinContent(46,1301.081); h_SL2L366->SetBinContent(47,1278.255); h_SL2L366->SetBinContent(48,1265.574); h_SL2L366->SetBinContent(49,1110.864); h_SL2L366->SetBinContent(50,1131.154); h_SL2L366->SetBinContent(51,1080.43); h_SL2L366->SetBinContent(52,925.7202); h_SL2L366->SetBinContent(53,933.3289); h_SL2L366->SetBinContent(54,951.0825); h_SL2L366->SetBinContent(55,958.6911); h_SL2L366->SetBinContent(56,839.4888); h_SL2L366->SetBinContent(57,826.8077); h_SL2L366->SetMaximum(63095.95); 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,811.5903); h_SL2L467->SetBinContent(3,880.0683); h_SL2L467->SetBinContent(4,991.6619); h_SL2L467->SetBinContent(5,1072.821); h_SL2L467->SetBinContent(6,1065.212); h_SL2L467->SetBinContent(7,1115.937); h_SL2L467->SetBinContent(8,1169.197); h_SL2L467->SetBinContent(9,1257.965); h_SL2L467->SetBinContent(10,1369.559); h_SL2L467->SetBinContent(11,1521.732); h_SL2L467->SetBinContent(12,1686.586); h_SL2L467->SetBinContent(13,1717.021); h_SL2L467->SetBinContent(14,1853.977); h_SL2L467->SetBinContent(15,2089.845); h_SL2L467->SetBinContent(16,2173.54); h_SL2L467->SetBinContent(17,2521.002); h_SL2L467->SetBinContent(18,2792.378); h_SL2L467->SetBinContent(19,2696.002); h_SL2L467->SetBinContent(20,2924.261); h_SL2L467->SetBinContent(21,3190.564); h_SL2L467->SetBinContent(22,3380.781); h_SL2L467->SetBinContent(23,3852.518); h_SL2L467->SetBinContent(24,3872.808); h_SL2L467->SetBinContent(25,4717.369); h_SL2L467->SetBinContent(26,19090.13); h_SL2L467->SetBinContent(27,38963.95); h_SL2L467->SetBinContent(28,49007.38); h_SL2L467->SetBinContent(29,54297.93); h_SL2L467->SetBinContent(30,53876.92); h_SL2L467->SetBinContent(31,48340.35); h_SL2L467->SetBinContent(32,47295.43); h_SL2L467->SetBinContent(33,46529.49); h_SL2L467->SetBinContent(34,39301.26); h_SL2L467->SetBinContent(35,14076.02); h_SL2L467->SetBinContent(36,5270.265); h_SL2L467->SetBinContent(37,3761.214); h_SL2L467->SetBinContent(38,3040.927); h_SL2L467->SetBinContent(39,2668.103); h_SL2L467->SetBinContent(40,2171.004); h_SL2L467->SetBinContent(41,2110.135); h_SL2L467->SetBinContent(42,1919.918); h_SL2L467->SetBinContent(43,1577.529); h_SL2L467->SetBinContent(44,1511.587); h_SL2L467->SetBinContent(45,1399.993); h_SL2L467->SetBinContent(46,1339.124); h_SL2L467->SetBinContent(47,1237.675); h_SL2L467->SetBinContent(48,1240.212); h_SL2L467->SetBinContent(49,1212.313); h_SL2L467->SetBinContent(50,1095.647); h_SL2L467->SetBinContent(51,1067.749); h_SL2L467->SetBinContent(52,1014.488); h_SL2L467->SetBinContent(53,910.5029); h_SL2L467->SetBinContent(54,940.9376); h_SL2L467->SetBinContent(55,948.5462); h_SL2L467->SetBinContent(56,887.6769); h_SL2L467->SetBinContent(57,940.9376); h_SL2L467->SetMaximum(63095.95); 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 5393"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }