void RatesPerCell_Removing_noisy_cells_run_7567_SL1() { //=========Macro generated from canvas: c/c //========= (Fri Dec 21 17:23:42 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-24285.56,67.5,218570); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7567",60,0,60); h_SL1L160->SetBinContent(1,80078.57); h_SL1L160->SetBinContent(2,81135.71); h_SL1L160->SetBinContent(3,79814.28); h_SL1L160->SetBinContent(4,76785.71); h_SL1L160->SetBinContent(5,61042.86); h_SL1L160->SetBinContent(6,61214.29); h_SL1L160->SetBinContent(7,61757.14); h_SL1L160->SetBinContent(8,64557.14); h_SL1L160->SetBinContent(9,61750); h_SL1L160->SetBinContent(10,61164.29); h_SL1L160->SetBinContent(11,62264.29); h_SL1L160->SetBinContent(12,61657.14); h_SL1L160->SetBinContent(13,99050); h_SL1L160->SetBinContent(14,111271.4); h_SL1L160->SetBinContent(15,108321.4); h_SL1L160->SetBinContent(16,54407.14); h_SL1L160->SetBinContent(17,59500); h_SL1L160->SetBinContent(18,62707.14); h_SL1L160->SetBinContent(19,63935.71); h_SL1L160->SetBinContent(20,64235.71); h_SL1L160->SetBinContent(21,57257.14); h_SL1L160->SetBinContent(22,56707.14); h_SL1L160->SetBinContent(23,53357.14); h_SL1L160->SetBinContent(24,48450); h_SL1L160->SetBinContent(25,46778.57); h_SL1L160->SetBinContent(26,47542.86); h_SL1L160->SetBinContent(27,46321.43); h_SL1L160->SetBinContent(28,48771.43); h_SL1L160->SetBinContent(29,50085.71); h_SL1L160->SetBinContent(30,48114.29); h_SL1L160->SetBinContent(31,46771.43); h_SL1L160->SetBinContent(32,42771.43); h_SL1L160->SetBinContent(33,100164.3); h_SL1L160->SetBinContent(34,103478.6); h_SL1L160->SetBinContent(35,100178.6); h_SL1L160->SetBinContent(36,101600); h_SL1L160->SetBinContent(37,91842.86); h_SL1L160->SetBinContent(38,93285.71); h_SL1L160->SetBinContent(39,90471.43); h_SL1L160->SetBinContent(41,44435.71); h_SL1L160->SetBinContent(42,45992.86); h_SL1L160->SetBinContent(43,44421.43); h_SL1L160->SetBinContent(44,42700); h_SL1L160->SetBinContent(45,40378.57); h_SL1L160->SetBinContent(46,38085.71); h_SL1L160->SetBinContent(47,39828.57); h_SL1L160->SetBinContent(48,40700); h_SL1L160->SetBinContent(49,45778.57); h_SL1L160->SetBinContent(50,48600); h_SL1L160->SetBinContent(51,47721.43); h_SL1L160->SetBinContent(52,47992.86); h_SL1L160->SetBinContent(53,42935.71); h_SL1L160->SetBinContent(54,42157.14); h_SL1L160->SetBinContent(55,43100); h_SL1L160->SetBinContent(56,48921.43); h_SL1L160->SetMaximum(194284.4); 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,92564.28); h_SL1L261->SetBinContent(2,90614.28); h_SL1L261->SetBinContent(3,93707.14); h_SL1L261->SetBinContent(4,96507.14); h_SL1L261->SetBinContent(5,86821.43); h_SL1L261->SetBinContent(6,90285.71); h_SL1L261->SetBinContent(7,91142.86); h_SL1L261->SetBinContent(8,92085.71); h_SL1L261->SetBinContent(9,93192.86); h_SL1L261->SetBinContent(10,89342.86); h_SL1L261->SetBinContent(11,93857.14); h_SL1L261->SetBinContent(12,93742.86); h_SL1L261->SetBinContent(13,92971.43); h_SL1L261->SetBinContent(14,96200); h_SL1L261->SetBinContent(15,101357.1); h_SL1L261->SetBinContent(16,92571.43); h_SL1L261->SetBinContent(17,98685.71); h_SL1L261->SetBinContent(18,103664.3); h_SL1L261->SetBinContent(19,107721.4); h_SL1L261->SetBinContent(20,107450); h_SL1L261->SetBinContent(21,100257.1); h_SL1L261->SetBinContent(22,95028.57); h_SL1L261->SetBinContent(23,91257.14); h_SL1L261->SetBinContent(24,89621.43); h_SL1L261->SetBinContent(25,93192.86); h_SL1L261->SetBinContent(26,84514.28); h_SL1L261->SetBinContent(27,85328.57); h_SL1L261->SetBinContent(28,91807.14); h_SL1L261->SetBinContent(29,93671.43); h_SL1L261->SetBinContent(30,94650); h_SL1L261->SetBinContent(31,92600); h_SL1L261->SetBinContent(32,92157.14); h_SL1L261->SetBinContent(33,96335.71); h_SL1L261->SetBinContent(34,97764.28); h_SL1L261->SetBinContent(35,97828.57); h_SL1L261->SetBinContent(36,97007.14); h_SL1L261->SetBinContent(37,91521.43); h_SL1L261->SetBinContent(38,92821.43); h_SL1L261->SetBinContent(39,92121.43); h_SL1L261->SetBinContent(40,91250); h_SL1L261->SetBinContent(41,92871.43); h_SL1L261->SetBinContent(42,92471.43); h_SL1L261->SetBinContent(43,92442.86); h_SL1L261->SetBinContent(44,87214.28); h_SL1L261->SetBinContent(45,88478.57); h_SL1L261->SetBinContent(46,90107.14); h_SL1L261->SetBinContent(47,91642.86); h_SL1L261->SetBinContent(48,93150); h_SL1L261->SetBinContent(49,101021.4); h_SL1L261->SetBinContent(50,98535.71); h_SL1L261->SetBinContent(51,97335.71); h_SL1L261->SetBinContent(52,96221.43); h_SL1L261->SetBinContent(53,92785.71); h_SL1L261->SetBinContent(54,90085.71); h_SL1L261->SetBinContent(55,90785.71); h_SL1L261->SetBinContent(56,90371.43); h_SL1L261->SetMaximum(168943.2); 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,87728.57); h_SL1L362->SetBinContent(2,92121.43); h_SL1L362->SetBinContent(3,90828.57); h_SL1L362->SetBinContent(4,91492.86); h_SL1L362->SetBinContent(5,87264.28); h_SL1L362->SetBinContent(6,87842.86); h_SL1L362->SetBinContent(7,86900); h_SL1L362->SetBinContent(8,91864.28); h_SL1L362->SetBinContent(9,86685.71); h_SL1L362->SetBinContent(10,89142.86); h_SL1L362->SetBinContent(11,90257.14); h_SL1L362->SetBinContent(12,90857.14); h_SL1L362->SetBinContent(13,87678.57); h_SL1L362->SetBinContent(14,102407.1); h_SL1L362->SetBinContent(15,123642.9); h_SL1L362->SetBinContent(16,92085.71); h_SL1L362->SetBinContent(17,99350); h_SL1L362->SetBinContent(18,103721.4); h_SL1L362->SetBinContent(19,104135.7); h_SL1L362->SetBinContent(20,106050); h_SL1L362->SetBinContent(21,93371.43); h_SL1L362->SetBinContent(22,90571.43); h_SL1L362->SetBinContent(23,90000); h_SL1L362->SetBinContent(24,87950); h_SL1L362->SetBinContent(25,86278.57); h_SL1L362->SetBinContent(26,80228.57); h_SL1L362->SetBinContent(27,83785.71); h_SL1L362->SetBinContent(28,91178.57); h_SL1L362->SetBinContent(29,90385.71); h_SL1L362->SetBinContent(30,91914.28); h_SL1L362->SetBinContent(31,90357.14); h_SL1L362->SetBinContent(32,85285.71); h_SL1L362->SetBinContent(33,94792.86); h_SL1L362->SetBinContent(34,94928.57); h_SL1L362->SetBinContent(35,93071.43); h_SL1L362->SetBinContent(36,96571.43); h_SL1L362->SetBinContent(37,91050); h_SL1L362->SetBinContent(38,90035.71); h_SL1L362->SetBinContent(39,88550); h_SL1L362->SetBinContent(40,87364.28); h_SL1L362->SetBinContent(41,89892.86); h_SL1L362->SetBinContent(42,90992.86); h_SL1L362->SetBinContent(43,86564.28); h_SL1L362->SetBinContent(44,83964.28); h_SL1L362->SetBinContent(45,84750); h_SL1L362->SetBinContent(46,87221.43); h_SL1L362->SetBinContent(47,89928.57); h_SL1L362->SetBinContent(48,90342.86); h_SL1L362->SetBinContent(49,95492.86); h_SL1L362->SetBinContent(50,94878.57); h_SL1L362->SetBinContent(51,94292.86); h_SL1L362->SetBinContent(52,93678.57); h_SL1L362->SetBinContent(53,89085.71); h_SL1L362->SetBinContent(54,87842.86); h_SL1L362->SetBinContent(55,88064.28); h_SL1L362->SetBinContent(56,89250); h_SL1L362->SetMaximum(168943.2); 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,68964.28); h_SL1L463->SetBinContent(3,63421.43); h_SL1L463->SetBinContent(4,61107.14); h_SL1L463->SetBinContent(5,57278.57); h_SL1L463->SetBinContent(6,55735.71); h_SL1L463->SetBinContent(7,56971.43); h_SL1L463->SetBinContent(8,59450); h_SL1L463->SetBinContent(9,60800); h_SL1L463->SetBinContent(10,63357.14); h_SL1L463->SetBinContent(11,68135.71); h_SL1L463->SetBinContent(12,69557.14); h_SL1L463->SetBinContent(13,73592.86); h_SL1L463->SetBinContent(14,146907.1); h_SL1L463->SetBinContent(15,122778.6); h_SL1L463->SetBinContent(16,119950); h_SL1L463->SetBinContent(17,66950); h_SL1L463->SetBinContent(18,68500); h_SL1L463->SetBinContent(19,66428.57); h_SL1L463->SetBinContent(20,65571.43); h_SL1L463->SetBinContent(21,61071.43); h_SL1L463->SetBinContent(22,58235.71); h_SL1L463->SetBinContent(23,56942.86); h_SL1L463->SetBinContent(24,55821.43); h_SL1L463->SetBinContent(25,50864.29); h_SL1L463->SetBinContent(26,49442.86); h_SL1L463->SetBinContent(27,49828.57); h_SL1L463->SetBinContent(28,51042.86); h_SL1L463->SetBinContent(29,49521.43); h_SL1L463->SetBinContent(30,52542.86); h_SL1L463->SetBinContent(31,52607.14); h_SL1L463->SetBinContent(32,48650); h_SL1L463->SetBinContent(33,47114.29); h_SL1L463->SetBinContent(34,53785.71); h_SL1L463->SetBinContent(35,58621.43); h_SL1L463->SetBinContent(36,46900); h_SL1L463->SetBinContent(37,3042.857); h_SL1L463->SetBinContent(38,35.71429); h_SL1L463->SetBinContent(41,40192.86); h_SL1L463->SetBinContent(42,42907.14); h_SL1L463->SetBinContent(43,45228.57); h_SL1L463->SetBinContent(44,42107.14); h_SL1L463->SetBinContent(45,39371.43); h_SL1L463->SetBinContent(46,41271.43); h_SL1L463->SetBinContent(47,38992.86); h_SL1L463->SetBinContent(48,38621.43); h_SL1L463->SetBinContent(49,38285.71); h_SL1L463->SetBinContent(50,40935.71); h_SL1L463->SetBinContent(51,41071.43); h_SL1L463->SetBinContent(52,40357.14); h_SL1L463->SetBinContent(53,40535.71); h_SL1L463->SetBinContent(54,38271.43); h_SL1L463->SetBinContent(56,42628.57); h_SL1L463->SetMaximum(168943.2); 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 7567"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }