void RatesPerCell_Removing_noisy_cells_run_6260_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:21:40 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-19856.33,67.5,178707); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 6260",60,0,60); h_SL1L160->SetBinContent(1,68392.86); h_SL1L160->SetBinContent(2,70950); h_SL1L160->SetBinContent(3,73121.43); h_SL1L160->SetBinContent(4,65935.71); h_SL1L160->SetBinContent(5,58100); h_SL1L160->SetBinContent(6,62235.71); h_SL1L160->SetBinContent(7,60657.14); h_SL1L160->SetBinContent(8,65014.29); h_SL1L160->SetBinContent(9,62535.71); h_SL1L160->SetBinContent(10,63800); h_SL1L160->SetBinContent(11,63328.57); h_SL1L160->SetBinContent(12,60821.43); h_SL1L160->SetBinContent(13,60085.71); h_SL1L160->SetBinContent(14,54228.57); h_SL1L160->SetBinContent(15,49335.71); h_SL1L160->SetBinContent(16,49000); h_SL1L160->SetBinContent(17,49064.29); h_SL1L160->SetBinContent(18,50935.71); h_SL1L160->SetBinContent(19,52314.29); h_SL1L160->SetBinContent(20,50035.71); h_SL1L160->SetBinContent(21,51471.43); h_SL1L160->SetBinContent(22,51757.14); h_SL1L160->SetBinContent(23,47278.57); h_SL1L160->SetBinContent(24,41492.86); h_SL1L160->SetBinContent(25,39650); h_SL1L160->SetBinContent(26,42464.29); h_SL1L160->SetBinContent(27,40221.43); h_SL1L160->SetBinContent(28,42264.29); h_SL1L160->SetBinContent(29,43714.29); h_SL1L160->SetBinContent(30,40342.86); h_SL1L160->SetBinContent(31,41907.14); h_SL1L160->SetBinContent(32,40050); h_SL1L160->SetBinContent(33,3364.286); h_SL1L160->SetBinContent(34,3264.286); h_SL1L160->SetBinContent(35,3500); h_SL1L160->SetBinContent(36,3178.571); h_SL1L160->SetBinContent(37,3457.143); h_SL1L160->SetBinContent(38,3500); h_SL1L160->SetBinContent(39,3371.428); h_SL1L160->SetBinContent(40,2950); h_SL1L160->SetBinContent(41,3464.286); h_SL1L160->SetBinContent(42,3242.857); h_SL1L160->SetBinContent(43,3514.286); h_SL1L160->SetBinContent(44,3578.571); h_SL1L160->SetBinContent(45,3171.428); h_SL1L160->SetBinContent(46,2757.143); h_SL1L160->SetBinContent(47,2814.286); h_SL1L160->SetBinContent(48,2985.714); h_SL1L160->SetBinContent(49,40371.43); h_SL1L160->SetBinContent(50,42235.71); h_SL1L160->SetBinContent(51,42642.86); h_SL1L160->SetBinContent(52,42971.43); h_SL1L160->SetBinContent(53,41950); h_SL1L160->SetBinContent(54,42871.43); h_SL1L160->SetBinContent(55,42921.43); h_SL1L160->SetBinContent(56,49264.29); h_SL1L160->SetBinContent(57,61342.86); h_SL1L160->SetBinContent(58,71342.86); h_SL1L160->SetBinContent(59,76114.28); h_SL1L160->SetMaximum(158850.6); 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,93771.43); h_SL1L261->SetBinContent(2,95164.28); h_SL1L261->SetBinContent(3,100421.4); h_SL1L261->SetBinContent(4,102371.4); h_SL1L261->SetBinContent(5,102878.6); h_SL1L261->SetBinContent(6,108257.1); h_SL1L261->SetBinContent(7,108057.1); h_SL1L261->SetBinContent(8,113871.4); h_SL1L261->SetBinContent(9,114450); h_SL1L261->SetBinContent(10,110778.6); h_SL1L261->SetBinContent(11,117335.7); h_SL1L261->SetBinContent(12,118128.6); h_SL1L261->SetBinContent(13,118307.1); h_SL1L261->SetBinContent(14,120114.3); h_SL1L261->SetBinContent(15,118850); h_SL1L261->SetBinContent(16,109107.1); h_SL1L261->SetBinContent(17,106364.3); h_SL1L261->SetBinContent(18,114507.1); h_SL1L261->SetBinContent(19,113492.9); h_SL1L261->SetBinContent(20,113914.3); h_SL1L261->SetBinContent(21,116171.4); h_SL1L261->SetBinContent(22,113100); h_SL1L261->SetBinContent(23,112150); h_SL1L261->SetBinContent(24,108050); h_SL1L261->SetBinContent(25,109071.4); h_SL1L261->SetBinContent(26,98150); h_SL1L261->SetBinContent(27,100392.9); h_SL1L261->SetBinContent(28,106800); h_SL1L261->SetBinContent(29,114578.6); h_SL1L261->SetBinContent(30,117335.7); h_SL1L261->SetBinContent(31,119000); h_SL1L261->SetBinContent(32,117350); h_SL1L261->SetBinContent(33,9678.571); h_SL1L261->SetBinContent(34,9307.143); h_SL1L261->SetBinContent(35,8900); h_SL1L261->SetBinContent(36,8714.285); h_SL1L261->SetBinContent(37,8214.285); h_SL1L261->SetBinContent(38,8414.285); h_SL1L261->SetBinContent(39,8414.285); h_SL1L261->SetBinContent(40,9164.285); h_SL1L261->SetBinContent(41,8735.714); h_SL1L261->SetBinContent(42,9378.571); h_SL1L261->SetBinContent(43,9700); h_SL1L261->SetBinContent(44,10085.71); h_SL1L261->SetBinContent(45,9214.285); h_SL1L261->SetBinContent(46,8971.429); h_SL1L261->SetBinContent(47,8807.143); h_SL1L261->SetBinContent(48,9342.857); h_SL1L261->SetBinContent(49,117207.1); h_SL1L261->SetBinContent(50,119500); h_SL1L261->SetBinContent(51,114114.3); h_SL1L261->SetBinContent(52,117185.7); h_SL1L261->SetBinContent(53,118978.6); h_SL1L261->SetBinContent(54,116407.1); h_SL1L261->SetBinContent(55,118171.4); h_SL1L261->SetBinContent(56,114642.9); h_SL1L261->SetBinContent(57,115035.7); h_SL1L261->SetBinContent(58,118307.1); h_SL1L261->SetBinContent(59,117207.1); h_SL1L261->SetMaximum(138131.4); 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,88007.14); h_SL1L362->SetBinContent(2,91278.57); h_SL1L362->SetBinContent(3,94507.14); h_SL1L362->SetBinContent(4,96357.14); h_SL1L362->SetBinContent(5,99507.14); h_SL1L362->SetBinContent(6,99807.14); h_SL1L362->SetBinContent(7,104242.9); h_SL1L362->SetBinContent(8,106042.9); h_SL1L362->SetBinContent(9,102478.6); h_SL1L362->SetBinContent(10,107185.7); h_SL1L362->SetBinContent(11,110400); h_SL1L362->SetBinContent(12,111485.7); h_SL1L362->SetBinContent(13,110185.7); h_SL1L362->SetBinContent(14,109957.1); h_SL1L362->SetBinContent(15,104250); h_SL1L362->SetBinContent(16,99392.86); h_SL1L362->SetBinContent(17,101407.1); h_SL1L362->SetBinContent(18,107092.9); h_SL1L362->SetBinContent(19,104571.4); h_SL1L362->SetBinContent(20,106385.7); h_SL1L362->SetBinContent(21,107185.7); h_SL1L362->SetBinContent(22,103121.4); h_SL1L362->SetBinContent(23,101564.3); h_SL1L362->SetBinContent(24,101028.6); h_SL1L362->SetBinContent(25,94164.28); h_SL1L362->SetBinContent(26,90592.86); h_SL1L362->SetBinContent(27,97485.71); h_SL1L362->SetBinContent(28,103178.6); h_SL1L362->SetBinContent(29,108942.9); h_SL1L362->SetBinContent(30,109342.9); h_SL1L362->SetBinContent(31,110835.7); h_SL1L362->SetBinContent(32,109757.1); h_SL1L362->SetBinContent(33,8557.143); h_SL1L362->SetBinContent(34,8357.143); h_SL1L362->SetBinContent(35,8464.285); h_SL1L362->SetBinContent(36,7892.857); h_SL1L362->SetBinContent(37,7057.143); h_SL1L362->SetBinContent(38,7971.429); h_SL1L362->SetBinContent(39,8557.143); h_SL1L362->SetBinContent(40,8078.571); h_SL1L362->SetBinContent(41,8578.571); h_SL1L362->SetBinContent(42,8900); h_SL1L362->SetBinContent(43,8771.429); h_SL1L362->SetBinContent(44,9000); h_SL1L362->SetBinContent(45,9064.285); h_SL1L362->SetBinContent(46,8807.143); h_SL1L362->SetBinContent(47,8385.714); h_SL1L362->SetBinContent(48,8514.285); h_SL1L362->SetBinContent(49,109214.3); h_SL1L362->SetBinContent(50,109585.7); h_SL1L362->SetBinContent(51,106992.9); h_SL1L362->SetBinContent(52,109778.6); h_SL1L362->SetBinContent(53,105550); h_SL1L362->SetBinContent(54,105650); h_SL1L362->SetBinContent(55,104678.6); h_SL1L362->SetBinContent(56,103750); h_SL1L362->SetBinContent(57,106700); h_SL1L362->SetBinContent(58,109178.6); h_SL1L362->SetBinContent(59,105807.1); h_SL1L362->SetMaximum(138131.4); 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,61192.86); h_SL1L463->SetBinContent(3,57528.57); h_SL1L463->SetBinContent(4,54857.14); h_SL1L463->SetBinContent(5,52535.71); h_SL1L463->SetBinContent(6,52107.14); h_SL1L463->SetBinContent(7,51400); h_SL1L463->SetBinContent(8,56257.14); h_SL1L463->SetBinContent(9,59192.86); h_SL1L463->SetBinContent(10,67207.14); h_SL1L463->SetBinContent(11,77057.14); h_SL1L463->SetBinContent(12,80850); h_SL1L463->SetBinContent(13,78542.86); h_SL1L463->SetBinContent(14,82650); h_SL1L463->SetBinContent(15,77914.28); h_SL1L463->SetBinContent(16,69921.43); h_SL1L463->SetBinContent(17,62342.86); h_SL1L463->SetBinContent(18,64850); h_SL1L463->SetBinContent(19,62628.57); h_SL1L463->SetBinContent(20,59200); h_SL1L463->SetBinContent(21,59771.43); h_SL1L463->SetBinContent(22,58585.71); h_SL1L463->SetBinContent(23,56578.57); h_SL1L463->SetBinContent(24,55964.29); h_SL1L463->SetBinContent(25,49614.29); h_SL1L463->SetBinContent(26,49764.29); h_SL1L463->SetBinContent(27,49228.57); h_SL1L463->SetBinContent(28,52592.86); h_SL1L463->SetBinContent(29,50742.86); h_SL1L463->SetBinContent(30,52121.43); h_SL1L463->SetBinContent(31,51942.86); h_SL1L463->SetBinContent(32,48221.43); h_SL1L463->SetBinContent(33,3585.714); h_SL1L463->SetBinContent(34,3285.714); h_SL1L463->SetBinContent(35,3300); h_SL1L463->SetBinContent(36,3014.286); h_SL1L463->SetBinContent(37,2514.286); h_SL1L463->SetBinContent(38,2835.714); h_SL1L463->SetBinContent(39,3100); h_SL1L463->SetBinContent(40,2707.143); h_SL1L463->SetBinContent(41,2664.286); h_SL1L463->SetBinContent(42,2942.857); h_SL1L463->SetBinContent(43,2721.428); h_SL1L463->SetBinContent(44,2792.857); h_SL1L463->SetBinContent(45,2650); h_SL1L463->SetBinContent(46,2900); h_SL1L463->SetBinContent(47,2450); h_SL1L463->SetBinContent(48,2707.143); h_SL1L463->SetBinContent(49,30871.43); h_SL1L463->SetBinContent(50,33650); h_SL1L463->SetBinContent(51,33028.57); h_SL1L463->SetBinContent(52,35514.29); h_SL1L463->SetBinContent(53,33714.29); h_SL1L463->SetBinContent(54,34271.43); h_SL1L463->SetBinContent(56,40278.57); h_SL1L463->SetBinContent(57,47450); h_SL1L463->SetBinContent(58,63250); h_SL1L463->SetBinContent(59,70321.43); h_SL1L463->SetMaximum(138131.4); 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 6260"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }