void RatesPerCell_Removing_noisy_cells_run_5184_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:13:24 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-8911.207,67.5,80200.86); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5184",60,0,60); h_SL2L164->SetBinContent(1,567.1429); h_SL2L164->SetBinContent(2,1565.714); h_SL2L164->SetBinContent(3,894.2857); h_SL2L164->SetBinContent(4,841.4286); h_SL2L164->SetBinContent(5,874.2857); h_SL2L164->SetBinContent(6,910); h_SL2L164->SetBinContent(7,912.8572); h_SL2L164->SetBinContent(8,1034.286); h_SL2L164->SetBinContent(9,1107.143); h_SL2L164->SetBinContent(10,1302.857); h_SL2L164->SetBinContent(11,1391.429); h_SL2L164->SetBinContent(12,1500); h_SL2L164->SetBinContent(13,1511.429); h_SL2L164->SetBinContent(14,1737.143); h_SL2L164->SetBinContent(15,1867.143); h_SL2L164->SetBinContent(16,2034.286); h_SL2L164->SetBinContent(17,2142.857); h_SL2L164->SetBinContent(18,2242.857); h_SL2L164->SetBinContent(19,2490); h_SL2L164->SetBinContent(20,2647.143); h_SL2L164->SetBinContent(21,2761.429); h_SL2L164->SetBinContent(22,2972.857); h_SL2L164->SetBinContent(23,3164.286); h_SL2L164->SetBinContent(24,3668.572); h_SL2L164->SetBinContent(25,8250); h_SL2L164->SetBinContent(26,28382.86); h_SL2L164->SetBinContent(27,43454.29); h_SL2L164->SetBinContent(28,51225.71); h_SL2L164->SetBinContent(29,53905.71); h_SL2L164->SetBinContent(30,50584.29); h_SL2L164->SetBinContent(31,46698.57); h_SL2L164->SetBinContent(32,47177.14); h_SL2L164->SetBinContent(33,45240); h_SL2L164->SetBinContent(34,25908.57); h_SL2L164->SetBinContent(35,70); h_SL2L164->SetBinContent(36,4194.286); h_SL2L164->SetBinContent(37,3017.143); h_SL2L164->SetBinContent(38,2394.286); h_SL2L164->SetBinContent(39,2158.572); h_SL2L164->SetBinContent(40,1547.143); h_SL2L164->SetBinContent(41,1615.714); h_SL2L164->SetBinContent(42,1655.714); h_SL2L164->SetBinContent(43,1441.429); h_SL2L164->SetBinContent(44,1235.714); h_SL2L164->SetBinContent(45,1255.714); h_SL2L164->SetBinContent(46,1104.286); h_SL2L164->SetBinContent(47,1031.429); h_SL2L164->SetBinContent(48,977.1429); h_SL2L164->SetBinContent(49,4187.143); h_SL2L164->SetBinContent(50,745.7143); h_SL2L164->SetBinContent(51,661.4286); h_SL2L164->SetBinContent(52,627.1429); h_SL2L164->SetBinContent(53,644.2857); h_SL2L164->SetBinContent(54,592.8572); h_SL2L164->SetBinContent(55,575.7143); h_SL2L164->SetBinContent(56,451.4286); h_SL2L164->SetBinContent(57,371.4286); h_SL2L164->SetMaximum(71289.65); 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,528.5714); h_SL2L265->SetBinContent(2,630); h_SL2L265->SetBinContent(3,794.2857); h_SL2L265->SetBinContent(4,835.7143); h_SL2L265->SetBinContent(5,895.7143); h_SL2L265->SetBinContent(6,867.1429); h_SL2L265->SetBinContent(7,972.8572); h_SL2L265->SetBinContent(8,902.8572); h_SL2L265->SetBinContent(9,1024.286); h_SL2L265->SetBinContent(10,1178.571); h_SL2L265->SetBinContent(11,1294.286); h_SL2L265->SetBinContent(12,1422.857); h_SL2L265->SetBinContent(13,1450); h_SL2L265->SetBinContent(14,1611.429); h_SL2L265->SetBinContent(15,1802.857); h_SL2L265->SetBinContent(16,1897.143); h_SL2L265->SetBinContent(17,2030); h_SL2L265->SetBinContent(18,2217.143); h_SL2L265->SetBinContent(19,2258.572); h_SL2L265->SetBinContent(20,2518.572); h_SL2L265->SetBinContent(21,2587.143); h_SL2L265->SetBinContent(22,2834.286); h_SL2L265->SetBinContent(23,2950); h_SL2L265->SetBinContent(24,3410); h_SL2L265->SetBinContent(25,4202.857); h_SL2L265->SetBinContent(26,17584.29); h_SL2L265->SetBinContent(27,37115.71); h_SL2L265->SetBinContent(28,48242.86); h_SL2L265->SetBinContent(29,52781.43); h_SL2L265->SetBinContent(30,53025.71); h_SL2L265->SetBinContent(31,47808.57); h_SL2L265->SetBinContent(32,46561.43); h_SL2L265->SetBinContent(33,46387.14); h_SL2L265->SetBinContent(34,38952.86); h_SL2L265->SetBinContent(35,13562.86); h_SL2L265->SetBinContent(36,5044.286); h_SL2L265->SetBinContent(37,3277.143); h_SL2L265->SetBinContent(38,2625.714); h_SL2L265->SetBinContent(39,2185.714); h_SL2L265->SetBinContent(40,2000); h_SL2L265->SetBinContent(41,1721.429); h_SL2L265->SetBinContent(42,1637.143); h_SL2L265->SetBinContent(43,1465.714); h_SL2L265->SetBinContent(44,1324.286); h_SL2L265->SetBinContent(45,1198.571); h_SL2L265->SetBinContent(46,1150); h_SL2L265->SetBinContent(47,1002.857); h_SL2L265->SetBinContent(48,1002.857); h_SL2L265->SetBinContent(49,861.4286); h_SL2L265->SetBinContent(50,798.5715); h_SL2L265->SetBinContent(51,631.4286); h_SL2L265->SetBinContent(52,637.1429); h_SL2L265->SetBinContent(53,597.1429); h_SL2L265->SetBinContent(54,565.7143); h_SL2L265->SetBinContent(55,575.7143); h_SL2L265->SetBinContent(56,491.4286); h_SL2L265->SetBinContent(57,418.5714); h_SL2L265->SetMaximum(61991.57); 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,564.2857); h_SL2L366->SetBinContent(2,657.1429); h_SL2L366->SetBinContent(3,810); h_SL2L366->SetBinContent(4,834.2857); h_SL2L366->SetBinContent(5,854.2857); h_SL2L366->SetBinContent(6,910); h_SL2L366->SetBinContent(7,900); h_SL2L366->SetBinContent(8,978.5715); h_SL2L366->SetBinContent(9,1044.286); h_SL2L366->SetBinContent(10,1218.571); h_SL2L366->SetBinContent(11,1297.143); h_SL2L366->SetBinContent(12,1422.857); h_SL2L366->SetBinContent(13,1432.857); h_SL2L366->SetBinContent(14,1605.714); h_SL2L366->SetBinContent(15,1837.143); h_SL2L366->SetBinContent(16,1921.429); h_SL2L366->SetBinContent(17,2020); h_SL2L366->SetBinContent(18,2164.286); h_SL2L366->SetBinContent(19,2358.572); h_SL2L366->SetBinContent(20,2554.286); h_SL2L366->SetBinContent(21,2650); h_SL2L366->SetBinContent(22,2888.572); h_SL2L366->SetBinContent(23,3091.429); h_SL2L366->SetBinContent(24,3525.714); h_SL2L366->SetBinContent(25,8161.429); h_SL2L366->SetBinContent(26,28285.71); h_SL2L366->SetBinContent(27,43600); h_SL2L366->SetBinContent(28,51154.29); h_SL2L366->SetBinContent(29,53584.29); h_SL2L366->SetBinContent(30,50320); h_SL2L366->SetBinContent(31,46490); h_SL2L366->SetBinContent(32,47087.14); h_SL2L366->SetBinContent(33,45004.29); h_SL2L366->SetBinContent(34,25781.43); h_SL2L366->SetBinContent(35,7084.286); h_SL2L366->SetBinContent(36,4145.714); h_SL2L366->SetBinContent(37,2871.429); h_SL2L366->SetBinContent(38,2310); h_SL2L366->SetBinContent(39,2021.429); h_SL2L366->SetBinContent(40,1835.714); h_SL2L366->SetBinContent(41,1677.143); h_SL2L366->SetBinContent(42,1557.143); h_SL2L366->SetBinContent(43,1371.429); h_SL2L366->SetBinContent(44,1188.571); h_SL2L366->SetBinContent(45,1158.571); h_SL2L366->SetBinContent(46,1017.143); h_SL2L366->SetBinContent(47,982.8572); h_SL2L366->SetBinContent(48,900); h_SL2L366->SetBinContent(49,784.2857); h_SL2L366->SetBinContent(50,688.5715); h_SL2L366->SetBinContent(51,620); h_SL2L366->SetBinContent(52,652.8572); h_SL2L366->SetBinContent(53,584.2857); h_SL2L366->SetBinContent(54,577.1429); h_SL2L366->SetBinContent(55,527.1429); h_SL2L366->SetBinContent(56,477.1429); h_SL2L366->SetBinContent(57,381.4286); h_SL2L366->SetMaximum(61991.57); 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,604.2857); h_SL2L467->SetBinContent(3,750); h_SL2L467->SetBinContent(4,778.5715); h_SL2L467->SetBinContent(5,822.8572); h_SL2L467->SetBinContent(6,808.5715); h_SL2L467->SetBinContent(7,920); h_SL2L467->SetBinContent(8,867.1429); h_SL2L467->SetBinContent(9,987.1429); h_SL2L467->SetBinContent(10,1132.857); h_SL2L467->SetBinContent(11,1207.143); h_SL2L467->SetBinContent(12,1402.857); h_SL2L467->SetBinContent(13,1355.714); h_SL2L467->SetBinContent(14,1478.571); h_SL2L467->SetBinContent(15,1651.429); h_SL2L467->SetBinContent(16,1758.571); h_SL2L467->SetBinContent(17,1968.572); h_SL2L467->SetBinContent(18,2088.572); h_SL2L467->SetBinContent(19,2200); h_SL2L467->SetBinContent(20,2498.572); h_SL2L467->SetBinContent(21,2467.143); h_SL2L467->SetBinContent(22,2708.572); h_SL2L467->SetBinContent(23,2902.857); h_SL2L467->SetBinContent(24,3258.572); h_SL2L467->SetBinContent(25,4112.857); h_SL2L467->SetBinContent(26,17600); h_SL2L467->SetBinContent(27,37270); h_SL2L467->SetBinContent(28,48040); h_SL2L467->SetBinContent(29,52667.14); h_SL2L467->SetBinContent(30,53227.14); h_SL2L467->SetBinContent(31,47960); h_SL2L467->SetBinContent(32,46707.14); h_SL2L467->SetBinContent(33,46498.57); h_SL2L467->SetBinContent(34,39195.71); h_SL2L467->SetBinContent(35,13370); h_SL2L467->SetBinContent(36,4905.714); h_SL2L467->SetBinContent(37,3244.286); h_SL2L467->SetBinContent(38,2605.714); h_SL2L467->SetBinContent(39,2070); h_SL2L467->SetBinContent(40,1885.714); h_SL2L467->SetBinContent(41,1672.857); h_SL2L467->SetBinContent(42,1550); h_SL2L467->SetBinContent(43,1357.143); h_SL2L467->SetBinContent(44,1262.857); h_SL2L467->SetBinContent(45,1142.857); h_SL2L467->SetBinContent(46,1141.429); h_SL2L467->SetBinContent(47,982.8572); h_SL2L467->SetBinContent(48,972.8572); h_SL2L467->SetBinContent(49,781.4286); h_SL2L467->SetBinContent(50,742.8572); h_SL2L467->SetBinContent(51,600); h_SL2L467->SetBinContent(52,580); h_SL2L467->SetBinContent(53,540); h_SL2L467->SetBinContent(54,532.8572); h_SL2L467->SetBinContent(55,561.4286); h_SL2L467->SetBinContent(56,478.5714); h_SL2L467->SetBinContent(57,390); h_SL2L467->SetMaximum(61991.57); 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 5184"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }