void RatesPerCell_Removing_noisy_cells_run_5489_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:11:58 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-18620.23,67.5,167582); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5489",60,0,60); h_SL1L160->SetBinContent(1,44.28572); h_SL1L160->SetBinContent(2,40); h_SL1L160->SetBinContent(3,38.57143); h_SL1L160->SetBinContent(4,40); h_SL1L160->SetBinContent(5,28.57143); h_SL1L160->SetBinContent(6,55.71429); h_SL1L160->SetBinContent(7,38.57143); h_SL1L160->SetBinContent(8,62.85714); h_SL1L160->SetBinContent(9,41.42857); h_SL1L160->SetBinContent(10,42.85714); h_SL1L160->SetBinContent(11,57.14286); h_SL1L160->SetBinContent(12,64.28571); h_SL1L160->SetBinContent(13,68.57143); h_SL1L160->SetBinContent(14,68.57143); h_SL1L160->SetBinContent(15,38.57143); h_SL1L160->SetBinContent(16,75.71429); h_SL1L160->SetBinContent(17,42.85714); h_SL1L160->SetBinContent(18,101.4286); h_SL1L160->SetBinContent(19,88.57143); h_SL1L160->SetBinContent(20,97.14286); h_SL1L160->SetBinContent(21,117.1429); h_SL1L160->SetBinContent(22,102.8571); h_SL1L160->SetBinContent(23,117.1429); h_SL1L160->SetBinContent(24,127.1429); h_SL1L160->SetBinContent(25,132.8571); h_SL1L160->SetBinContent(26,150); h_SL1L160->SetBinContent(27,184.2857); h_SL1L160->SetBinContent(28,168.5714); h_SL1L160->SetBinContent(29,200); h_SL1L160->SetBinContent(30,305.7143); h_SL1L160->SetBinContent(31,348.5714); h_SL1L160->SetBinContent(32,441.4286); h_SL1L160->SetBinContent(33,1078.571); h_SL1L160->SetBinContent(34,1807.143); h_SL1L160->SetBinContent(35,2692.857); h_SL1L160->SetBinContent(36,3670); h_SL1L160->SetBinContent(37,8070); h_SL1L160->SetBinContent(38,10471.43); h_SL1L160->SetBinContent(39,6061.429); h_SL1L160->SetBinContent(40,801.4286); h_SL1L160->SetBinContent(41,485.7143); h_SL1L160->SetBinContent(42,427.1429); h_SL1L160->SetBinContent(43,374.2857); h_SL1L160->SetBinContent(44,335.7143); h_SL1L160->SetBinContent(45,251.4286); h_SL1L160->SetBinContent(46,234.2857); h_SL1L160->SetBinContent(47,225.7143); h_SL1L160->SetBinContent(48,185.7143); h_SL1L160->SetBinContent(49,194.2857); h_SL1L160->SetBinContent(50,174.2857); h_SL1L160->SetBinContent(51,177.1429); h_SL1L160->SetBinContent(52,152.8571); h_SL1L160->SetBinContent(53,160); h_SL1L160->SetBinContent(54,94.28571); h_SL1L160->SetBinContent(55,112.8571); h_SL1L160->SetBinContent(56,111.4286); h_SL1L160->SetBinContent(57,114.2857); h_SL1L160->SetBinContent(58,92.85715); h_SL1L160->SetBinContent(59,88.57143); h_SL1L160->SetMaximum(148961.8); h_SL1L160->SetEntries(60); h_SL1L160->SetDirectory(0); h_SL1L160->SetStats(0); h_SL1L160->SetLineWidth(2); h_SL1L160->GetXaxis()->SetTitle("Cell"); h_SL1L160->GetXaxis()->SetLabelFont(42); h_SL1L160->GetXaxis()->SetLabelSize(0.035); h_SL1L160->GetXaxis()->SetTitleSize(0.035); h_SL1L160->GetXaxis()->SetTitleFont(42); h_SL1L160->GetYaxis()->SetTitle("Hz"); h_SL1L160->GetYaxis()->SetLabelFont(42); h_SL1L160->GetYaxis()->SetLabelSize(0.035); h_SL1L160->GetYaxis()->SetTitleSize(0.035); h_SL1L160->GetYaxis()->SetTitleOffset(1.45); h_SL1L160->GetYaxis()->SetTitleFont(42); h_SL1L160->GetZaxis()->SetLabelFont(42); h_SL1L160->GetZaxis()->SetLabelSize(0.035); h_SL1L160->GetZaxis()->SetTitleSize(0.035); h_SL1L160->GetZaxis()->SetTitleFont(42); h_SL1L160->Draw(""); TH1D *h_SL1L261 = new TH1D("h_SL1L261","",60,0,60); h_SL1L261->SetBinContent(1,347.1429); h_SL1L261->SetBinContent(2,372.8571); h_SL1L261->SetBinContent(3,384.2857); h_SL1L261->SetBinContent(4,360); h_SL1L261->SetBinContent(5,360); h_SL1L261->SetBinContent(6,421.4286); h_SL1L261->SetBinContent(7,461.4286); h_SL1L261->SetBinContent(8,451.4286); h_SL1L261->SetBinContent(9,465.7143); h_SL1L261->SetBinContent(10,470); h_SL1L261->SetBinContent(11,551.4286); h_SL1L261->SetBinContent(12,570); h_SL1L261->SetBinContent(13,630); h_SL1L261->SetBinContent(14,750); h_SL1L261->SetBinContent(15,607.1429); h_SL1L261->SetBinContent(16,612.8572); h_SL1L261->SetBinContent(17,667.1429); h_SL1L261->SetBinContent(18,798.5715); h_SL1L261->SetBinContent(19,927.1429); h_SL1L261->SetBinContent(20,1008.571); h_SL1L261->SetBinContent(21,1112.857); h_SL1L261->SetBinContent(22,1224.286); h_SL1L261->SetBinContent(23,1397.143); h_SL1L261->SetBinContent(24,1474.286); h_SL1L261->SetBinContent(25,1691.429); h_SL1L261->SetBinContent(26,1668.571); h_SL1L261->SetBinContent(27,1808.571); h_SL1L261->SetBinContent(28,2415.714); h_SL1L261->SetBinContent(29,2618.572); h_SL1L261->SetBinContent(30,2998.572); h_SL1L261->SetBinContent(31,3584.286); h_SL1L261->SetBinContent(32,4567.143); h_SL1L261->SetBinContent(33,8895.715); h_SL1L261->SetBinContent(34,18440); h_SL1L261->SetBinContent(35,26461.43); h_SL1L261->SetBinContent(36,38878.57); h_SL1L261->SetBinContent(37,65455.71); h_SL1L261->SetBinContent(38,106048.6); h_SL1L261->SetBinContent(39,101772.9); h_SL1L261->SetBinContent(40,26875.71); h_SL1L261->SetBinContent(41,9170); h_SL1L261->SetBinContent(42,4747.143); h_SL1L261->SetBinContent(43,3972.857); h_SL1L261->SetBinContent(44,3664.286); h_SL1L261->SetBinContent(45,3257.143); h_SL1L261->SetBinContent(46,3032.857); h_SL1L261->SetBinContent(47,2757.143); h_SL1L261->SetBinContent(48,2551.429); h_SL1L261->SetBinContent(49,2331.429); h_SL1L261->SetBinContent(50,2234.286); h_SL1L261->SetBinContent(51,2021.429); h_SL1L261->SetBinContent(52,1827.143); h_SL1L261->SetBinContent(53,1808.571); h_SL1L261->SetBinContent(54,1600); h_SL1L261->SetBinContent(55,1448.571); h_SL1L261->SetBinContent(56,1350); h_SL1L261->SetBinContent(57,1208.571); h_SL1L261->SetBinContent(58,1235.714); h_SL1L261->SetBinContent(59,1097.143); h_SL1L261->SetMaximum(129532.7); h_SL1L261->SetEntries(60); h_SL1L261->SetDirectory(0); h_SL1L261->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL1L261->SetLineColor(ci); h_SL1L261->SetLineWidth(2); h_SL1L261->GetXaxis()->SetTitle("Cell"); h_SL1L261->GetXaxis()->SetLabelFont(42); h_SL1L261->GetXaxis()->SetLabelSize(0.035); h_SL1L261->GetXaxis()->SetTitleSize(0.035); h_SL1L261->GetXaxis()->SetTitleFont(42); h_SL1L261->GetYaxis()->SetTitle("Hz"); h_SL1L261->GetYaxis()->SetLabelFont(42); h_SL1L261->GetYaxis()->SetLabelSize(0.035); h_SL1L261->GetYaxis()->SetTitleSize(0.035); h_SL1L261->GetYaxis()->SetTitleOffset(1.45); h_SL1L261->GetYaxis()->SetTitleFont(42); h_SL1L261->GetZaxis()->SetLabelFont(42); h_SL1L261->GetZaxis()->SetLabelSize(0.035); h_SL1L261->GetZaxis()->SetTitleSize(0.035); h_SL1L261->GetZaxis()->SetTitleFont(42); h_SL1L261->Draw("same"); TH1D *h_SL1L362 = new TH1D("h_SL1L362","",60,0,60); h_SL1L362->SetBinContent(1,351.4286); h_SL1L362->SetBinContent(2,337.1429); h_SL1L362->SetBinContent(3,345.7143); h_SL1L362->SetBinContent(4,310); h_SL1L362->SetBinContent(5,382.8571); h_SL1L362->SetBinContent(6,407.1429); h_SL1L362->SetBinContent(7,457.1429); h_SL1L362->SetBinContent(8,410); h_SL1L362->SetBinContent(9,420); h_SL1L362->SetBinContent(10,507.1429); h_SL1L362->SetBinContent(11,525.7143); h_SL1L362->SetBinContent(12,554.2857); h_SL1L362->SetBinContent(13,634.2857); h_SL1L362->SetBinContent(14,630); h_SL1L362->SetBinContent(15,535.7143); h_SL1L362->SetBinContent(16,611.4286); h_SL1L362->SetBinContent(17,677.1429); h_SL1L362->SetBinContent(18,821.4286); h_SL1L362->SetBinContent(19,911.4286); h_SL1L362->SetBinContent(20,1011.429); h_SL1L362->SetBinContent(21,1090); h_SL1L362->SetBinContent(22,1171.429); h_SL1L362->SetBinContent(23,1407.143); h_SL1L362->SetBinContent(24,1562.857); h_SL1L362->SetBinContent(25,1572.857); h_SL1L362->SetBinContent(26,1685.714); h_SL1L362->SetBinContent(27,1928.572); h_SL1L362->SetBinContent(28,2500); h_SL1L362->SetBinContent(29,2768.572); h_SL1L362->SetBinContent(30,3222.857); h_SL1L362->SetBinContent(31,3921.429); h_SL1L362->SetBinContent(32,5275.714); h_SL1L362->SetBinContent(33,14467.14); h_SL1L362->SetBinContent(34,22098.57); h_SL1L362->SetBinContent(35,32231.43); h_SL1L362->SetBinContent(36,49270); h_SL1L362->SetBinContent(37,86891.43); h_SL1L362->SetBinContent(38,112637.1); h_SL1L362->SetBinContent(39,68388.57); h_SL1L362->SetBinContent(40,11254.29); h_SL1L362->SetBinContent(41,5745.714); h_SL1L362->SetBinContent(42,4255.714); h_SL1L362->SetBinContent(43,3737.143); h_SL1L362->SetBinContent(44,3290); h_SL1L362->SetBinContent(45,3055.714); h_SL1L362->SetBinContent(46,2828.572); h_SL1L362->SetBinContent(47,2578.572); h_SL1L362->SetBinContent(48,2305.714); h_SL1L362->SetBinContent(49,2102.857); h_SL1L362->SetBinContent(50,2075.714); h_SL1L362->SetBinContent(51,1850); h_SL1L362->SetBinContent(52,1717.143); h_SL1L362->SetBinContent(53,1691.429); h_SL1L362->SetBinContent(54,1467.143); h_SL1L362->SetBinContent(55,1344.286); h_SL1L362->SetBinContent(56,1134.286); h_SL1L362->SetBinContent(57,1208.571); h_SL1L362->SetBinContent(58,1128.571); h_SL1L362->SetBinContent(59,1002.857); h_SL1L362->SetMaximum(129532.7); h_SL1L362->SetEntries(60); h_SL1L362->SetDirectory(0); h_SL1L362->SetStats(0); ci = TColor::GetColor("#009900"); h_SL1L362->SetLineColor(ci); h_SL1L362->SetLineWidth(2); h_SL1L362->GetXaxis()->SetTitle("Cell"); h_SL1L362->GetXaxis()->SetLabelFont(42); h_SL1L362->GetXaxis()->SetLabelSize(0.035); h_SL1L362->GetXaxis()->SetTitleSize(0.035); h_SL1L362->GetXaxis()->SetTitleFont(42); h_SL1L362->GetYaxis()->SetTitle("Hz"); h_SL1L362->GetYaxis()->SetLabelFont(42); h_SL1L362->GetYaxis()->SetLabelSize(0.035); h_SL1L362->GetYaxis()->SetTitleSize(0.035); h_SL1L362->GetYaxis()->SetTitleOffset(1.45); h_SL1L362->GetYaxis()->SetTitleFont(42); h_SL1L362->GetZaxis()->SetLabelFont(42); h_SL1L362->GetZaxis()->SetLabelSize(0.035); h_SL1L362->GetZaxis()->SetTitleSize(0.035); h_SL1L362->GetZaxis()->SetTitleFont(42); h_SL1L362->Draw("same"); TH1D *h_SL1L463 = new TH1D("h_SL1L463","",60,0,60); h_SL1L463->SetBinContent(2,394.2857); h_SL1L463->SetBinContent(3,315.7143); h_SL1L463->SetBinContent(4,300); h_SL1L463->SetBinContent(5,310); h_SL1L463->SetBinContent(6,330); h_SL1L463->SetBinContent(7,365.7143); h_SL1L463->SetBinContent(8,384.2857); h_SL1L463->SetBinContent(9,387.1429); h_SL1L463->SetBinContent(10,417.1429); h_SL1L463->SetBinContent(11,484.2857); h_SL1L463->SetBinContent(12,515.7143); h_SL1L463->SetBinContent(13,571.4286); h_SL1L463->SetBinContent(14,618.5715); h_SL1L463->SetBinContent(15,540); h_SL1L463->SetBinContent(16,542.8572); h_SL1L463->SetBinContent(17,571.4286); h_SL1L463->SetBinContent(18,710); h_SL1L463->SetBinContent(19,864.2857); h_SL1L463->SetBinContent(20,914.2858); h_SL1L463->SetBinContent(21,958.5715); h_SL1L463->SetBinContent(22,1041.429); h_SL1L463->SetBinContent(23,1251.429); h_SL1L463->SetBinContent(24,1372.857); h_SL1L463->SetBinContent(25,1467.143); h_SL1L463->SetBinContent(26,1490); h_SL1L463->SetBinContent(27,1704.286); h_SL1L463->SetBinContent(28,2277.143); h_SL1L463->SetBinContent(29,2581.429); h_SL1L463->SetBinContent(30,2871.429); h_SL1L463->SetBinContent(31,3388.572); h_SL1L463->SetBinContent(32,4470); h_SL1L463->SetBinContent(33,8724.286); h_SL1L463->SetBinContent(34,18671.43); h_SL1L463->SetBinContent(35,26684.29); h_SL1L463->SetBinContent(36,39147.14); h_SL1L463->SetBinContent(37,66055.72); h_SL1L463->SetBinContent(38,106172.9); h_SL1L463->SetBinContent(39,102871.4); h_SL1L463->SetBinContent(40,27238.57); h_SL1L463->SetBinContent(41,9080); h_SL1L463->SetBinContent(42,4665.714); h_SL1L463->SetBinContent(43,3840); h_SL1L463->SetBinContent(44,3521.429); h_SL1L463->SetBinContent(45,3078.572); h_SL1L463->SetBinContent(46,2844.286); h_SL1L463->SetBinContent(47,2584.286); h_SL1L463->SetBinContent(48,2370); h_SL1L463->SetBinContent(49,2147.143); h_SL1L463->SetBinContent(50,2064.286); h_SL1L463->SetBinContent(51,1772.857); h_SL1L463->SetBinContent(52,1761.429); h_SL1L463->SetBinContent(53,1657.143); h_SL1L463->SetBinContent(54,1528.571); h_SL1L463->SetBinContent(56,1167.143); h_SL1L463->SetBinContent(57,1065.714); h_SL1L463->SetBinContent(58,1118.571); h_SL1L463->SetBinContent(59,1050); h_SL1L463->SetMaximum(129532.7); h_SL1L463->SetEntries(60); h_SL1L463->SetDirectory(0); h_SL1L463->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL1L463->SetLineColor(ci); h_SL1L463->SetLineWidth(2); h_SL1L463->GetXaxis()->SetTitle("Cell"); h_SL1L463->GetXaxis()->SetLabelFont(42); h_SL1L463->GetXaxis()->SetLabelSize(0.035); h_SL1L463->GetXaxis()->SetTitleSize(0.035); h_SL1L463->GetXaxis()->SetTitleFont(42); h_SL1L463->GetYaxis()->SetTitle("Hz"); h_SL1L463->GetYaxis()->SetLabelFont(42); h_SL1L463->GetYaxis()->SetLabelSize(0.035); h_SL1L463->GetYaxis()->SetTitleSize(0.035); h_SL1L463->GetYaxis()->SetTitleOffset(1.45); h_SL1L463->GetYaxis()->SetTitleFont(42); h_SL1L463->GetZaxis()->SetLabelFont(42); h_SL1L463->GetZaxis()->SetLabelSize(0.035); h_SL1L463->GetZaxis()->SetTitleSize(0.035); h_SL1L463->GetZaxis()->SetTitleFont(42); h_SL1L463->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_SL1L1","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_SL1L2","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_SL1L3","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_SL1L4","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("SL1, run 5489"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }