void RatesPerCell_Removing_noisy_cells_run_5659_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:36:12 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9680.844,67.5,87127.59); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5659",60,0,60); h_SL2L164->SetBinContent(1,747.1429); h_SL2L164->SetBinContent(2,927.1429); h_SL2L164->SetBinContent(3,1062.857); h_SL2L164->SetBinContent(4,1090); h_SL2L164->SetBinContent(5,1187.143); h_SL2L164->SetBinContent(6,1231.429); h_SL2L164->SetBinContent(7,1260); h_SL2L164->SetBinContent(8,1454.286); h_SL2L164->SetBinContent(9,1491.429); h_SL2L164->SetBinContent(10,1641.429); h_SL2L164->SetBinContent(11,1800); h_SL2L164->SetBinContent(12,1815.714); h_SL2L164->SetBinContent(13,1987.143); h_SL2L164->SetBinContent(14,2271.429); h_SL2L164->SetBinContent(15,2512.857); h_SL2L164->SetBinContent(16,2567.143); h_SL2L164->SetBinContent(17,2725.714); h_SL2L164->SetBinContent(18,2955.714); h_SL2L164->SetBinContent(19,3227.143); h_SL2L164->SetBinContent(20,3475.714); h_SL2L164->SetBinContent(21,3624.286); h_SL2L164->SetBinContent(22,3824.286); h_SL2L164->SetBinContent(23,4175.714); h_SL2L164->SetBinContent(24,4532.857); h_SL2L164->SetBinContent(25,9827.144); h_SL2L164->SetBinContent(26,32532.86); h_SL2L164->SetBinContent(27,50197.14); h_SL2L164->SetBinContent(28,57660); h_SL2L164->SetBinContent(29,58561.43); h_SL2L164->SetBinContent(30,52658.57); h_SL2L164->SetBinContent(31,44210); h_SL2L164->SetBinContent(32,41891.43); h_SL2L164->SetBinContent(33,39517.14); h_SL2L164->SetBinContent(34,21840); h_SL2L164->SetBinContent(35,1.428571); h_SL2L164->SetBinContent(36,4137.143); h_SL2L164->SetBinContent(37,3204.286); h_SL2L164->SetBinContent(38,2771.429); h_SL2L164->SetBinContent(39,2372.857); h_SL2L164->SetBinContent(40,1925.714); h_SL2L164->SetBinContent(41,1878.572); h_SL2L164->SetBinContent(42,1941.429); h_SL2L164->SetBinContent(43,1708.571); h_SL2L164->SetBinContent(44,1574.286); h_SL2L164->SetBinContent(45,1480); h_SL2L164->SetBinContent(46,1395.714); h_SL2L164->SetBinContent(47,1307.143); h_SL2L164->SetBinContent(48,1314.286); h_SL2L164->SetBinContent(49,1220); h_SL2L164->SetBinContent(50,1077.143); h_SL2L164->SetBinContent(51,1121.429); h_SL2L164->SetBinContent(52,1058.571); h_SL2L164->SetBinContent(53,981.4286); h_SL2L164->SetBinContent(54,945.7143); h_SL2L164->SetBinContent(55,905.7143); h_SL2L164->SetBinContent(56,817.1429); h_SL2L164->SetBinContent(57,797.1429); h_SL2L164->SetMaximum(77446.75); 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,707.1429); h_SL2L265->SetBinContent(2,850); h_SL2L265->SetBinContent(3,987.1429); h_SL2L265->SetBinContent(4,1021.429); h_SL2L265->SetBinContent(5,1211.429); h_SL2L265->SetBinContent(6,1185.714); h_SL2L265->SetBinContent(7,1210); h_SL2L265->SetBinContent(8,1364.286); h_SL2L265->SetBinContent(9,1417.143); h_SL2L265->SetBinContent(10,1515.714); h_SL2L265->SetBinContent(11,1710); h_SL2L265->SetBinContent(12,1805.714); h_SL2L265->SetBinContent(13,1818.571); h_SL2L265->SetBinContent(14,2110); h_SL2L265->SetBinContent(15,2314.286); h_SL2L265->SetBinContent(16,2427.143); h_SL2L265->SetBinContent(17,2582.857); h_SL2L265->SetBinContent(18,2808.572); h_SL2L265->SetBinContent(19,2991.429); h_SL2L265->SetBinContent(20,3371.429); h_SL2L265->SetBinContent(21,3422.857); h_SL2L265->SetBinContent(22,3714.286); h_SL2L265->SetBinContent(23,4017.143); h_SL2L265->SetBinContent(24,4108.571); h_SL2L265->SetBinContent(25,5112.857); h_SL2L265->SetBinContent(26,20471.43); h_SL2L265->SetBinContent(27,42455.71); h_SL2L265->SetBinContent(28,55057.14); h_SL2L265->SetBinContent(29,58444.29); h_SL2L265->SetBinContent(30,56155.71); h_SL2L265->SetBinContent(31,47304.29); h_SL2L265->SetBinContent(32,42218.57); h_SL2L265->SetBinContent(33,41258.57); h_SL2L265->SetBinContent(34,33297.14); h_SL2L265->SetBinContent(35,11747.14); h_SL2L265->SetBinContent(36,4837.143); h_SL2L265->SetBinContent(37,3631.429); h_SL2L265->SetBinContent(38,2905.714); h_SL2L265->SetBinContent(39,2432.857); h_SL2L265->SetBinContent(40,2151.429); h_SL2L265->SetBinContent(41,2002.857); h_SL2L265->SetBinContent(42,1872.857); h_SL2L265->SetBinContent(43,1818.571); h_SL2L265->SetBinContent(44,1604.286); h_SL2L265->SetBinContent(45,1488.571); h_SL2L265->SetBinContent(46,1330); h_SL2L265->SetBinContent(47,1324.286); h_SL2L265->SetBinContent(48,1237.143); h_SL2L265->SetBinContent(49,1234.286); h_SL2L265->SetBinContent(50,1140); h_SL2L265->SetBinContent(51,1104.286); h_SL2L265->SetBinContent(52,1075.714); h_SL2L265->SetBinContent(53,982.8572); h_SL2L265->SetBinContent(54,950); h_SL2L265->SetBinContent(55,872.8572); h_SL2L265->SetBinContent(56,845.7143); h_SL2L265->SetBinContent(57,795.7143); h_SL2L265->SetMaximum(67345.64); 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,731.4286); h_SL2L366->SetBinContent(2,917.1429); h_SL2L366->SetBinContent(3,1008.571); h_SL2L366->SetBinContent(4,1025.714); h_SL2L366->SetBinContent(5,1104.286); h_SL2L366->SetBinContent(6,1155.714); h_SL2L366->SetBinContent(7,1240); h_SL2L366->SetBinContent(8,1352.857); h_SL2L366->SetBinContent(9,1395.714); h_SL2L366->SetBinContent(10,1577.143); h_SL2L366->SetBinContent(11,1687.143); h_SL2L366->SetBinContent(12,1784.286); h_SL2L366->SetBinContent(13,1922.857); h_SL2L366->SetBinContent(14,2210); h_SL2L366->SetBinContent(15,2380); h_SL2L366->SetBinContent(16,2438.572); h_SL2L366->SetBinContent(17,2600); h_SL2L366->SetBinContent(18,2807.143); h_SL2L366->SetBinContent(19,3124.286); h_SL2L366->SetBinContent(20,3265.714); h_SL2L366->SetBinContent(21,3561.429); h_SL2L366->SetBinContent(22,3798.572); h_SL2L366->SetBinContent(23,3955.714); h_SL2L366->SetBinContent(24,4350); h_SL2L366->SetBinContent(25,9612.857); h_SL2L366->SetBinContent(26,32467.14); h_SL2L366->SetBinContent(27,50011.43); h_SL2L366->SetBinContent(28,57392.86); h_SL2L366->SetBinContent(29,58022.86); h_SL2L366->SetBinContent(30,52167.14); h_SL2L366->SetBinContent(31,44015.71); h_SL2L366->SetBinContent(32,41722.86); h_SL2L366->SetBinContent(33,39365.71); h_SL2L366->SetBinContent(34,21738.57); h_SL2L366->SetBinContent(35,6670); h_SL2L366->SetBinContent(36,4028.572); h_SL2L366->SetBinContent(37,3072.857); h_SL2L366->SetBinContent(38,2615.714); h_SL2L366->SetBinContent(39,2311.429); h_SL2L366->SetBinContent(40,2048.572); h_SL2L366->SetBinContent(41,1851.429); h_SL2L366->SetBinContent(42,1792.857); h_SL2L366->SetBinContent(43,1604.286); h_SL2L366->SetBinContent(44,1531.429); h_SL2L366->SetBinContent(45,1377.143); h_SL2L366->SetBinContent(46,1254.286); h_SL2L366->SetBinContent(47,1200); h_SL2L366->SetBinContent(48,1208.571); h_SL2L366->SetBinContent(49,1144.286); h_SL2L366->SetBinContent(50,1071.429); h_SL2L366->SetBinContent(51,1064.286); h_SL2L366->SetBinContent(52,1055.714); h_SL2L366->SetBinContent(53,917.1429); h_SL2L366->SetBinContent(54,937.1429); h_SL2L366->SetBinContent(55,858.5715); h_SL2L366->SetBinContent(56,752.8572); h_SL2L366->SetBinContent(57,774.2857); h_SL2L366->SetMaximum(67345.64); 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,825.7143); h_SL2L467->SetBinContent(3,897.1429); h_SL2L467->SetBinContent(4,984.2858); h_SL2L467->SetBinContent(5,1111.429); h_SL2L467->SetBinContent(6,1167.143); h_SL2L467->SetBinContent(7,1117.143); h_SL2L467->SetBinContent(8,1277.143); h_SL2L467->SetBinContent(9,1387.143); h_SL2L467->SetBinContent(10,1445.714); h_SL2L467->SetBinContent(11,1591.429); h_SL2L467->SetBinContent(12,1661.429); h_SL2L467->SetBinContent(13,1780); h_SL2L467->SetBinContent(14,1995.714); h_SL2L467->SetBinContent(15,2208.572); h_SL2L467->SetBinContent(16,2281.429); h_SL2L467->SetBinContent(17,2480); h_SL2L467->SetBinContent(18,2680); h_SL2L467->SetBinContent(19,2860); h_SL2L467->SetBinContent(20,3175.714); h_SL2L467->SetBinContent(21,3251.429); h_SL2L467->SetBinContent(22,3517.143); h_SL2L467->SetBinContent(23,3845.714); h_SL2L467->SetBinContent(24,3922.857); h_SL2L467->SetBinContent(25,4844.286); h_SL2L467->SetBinContent(26,20258.57); h_SL2L467->SetBinContent(27,42545.71); h_SL2L467->SetBinContent(28,54888.57); h_SL2L467->SetBinContent(29,58407.14); h_SL2L467->SetBinContent(30,56438.57); h_SL2L467->SetBinContent(31,47157.14); h_SL2L467->SetBinContent(32,42285.71); h_SL2L467->SetBinContent(33,41125.71); h_SL2L467->SetBinContent(34,33508.57); h_SL2L467->SetBinContent(35,11632.86); h_SL2L467->SetBinContent(36,4644.286); h_SL2L467->SetBinContent(37,3468.572); h_SL2L467->SetBinContent(38,2692.857); h_SL2L467->SetBinContent(39,2335.714); h_SL2L467->SetBinContent(40,2111.429); h_SL2L467->SetBinContent(41,1854.286); h_SL2L467->SetBinContent(42,1811.429); h_SL2L467->SetBinContent(43,1670); h_SL2L467->SetBinContent(44,1558.571); h_SL2L467->SetBinContent(45,1360); h_SL2L467->SetBinContent(46,1298.571); h_SL2L467->SetBinContent(47,1227.143); h_SL2L467->SetBinContent(48,1185.714); h_SL2L467->SetBinContent(49,1178.571); h_SL2L467->SetBinContent(50,1115.714); h_SL2L467->SetBinContent(51,1060); h_SL2L467->SetBinContent(52,1041.429); h_SL2L467->SetBinContent(53,994.2858); h_SL2L467->SetBinContent(54,874.2857); h_SL2L467->SetBinContent(55,861.4286); h_SL2L467->SetBinContent(56,802.8572); h_SL2L467->SetBinContent(57,755.7143); h_SL2L467->SetMaximum(67345.64); 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 5659"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }