void RatesPerCell_Removing_noisy_cells_run_7382_SL1() { //=========Macro generated from canvas: c/c //========= (Fri Dec 21 17:18:57 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-14200.2,67.5,127801.8); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7382",60,0,60); h_SL1L160->SetBinContent(1,4614.286); h_SL1L160->SetBinContent(2,4285.714); h_SL1L160->SetBinContent(3,4321.429); h_SL1L160->SetBinContent(4,3471.428); h_SL1L160->SetBinContent(5,2564.286); h_SL1L160->SetBinContent(6,2821.428); h_SL1L160->SetBinContent(7,2857.143); h_SL1L160->SetBinContent(8,2757.143); h_SL1L160->SetBinContent(9,2450); h_SL1L160->SetBinContent(10,2528.571); h_SL1L160->SetBinContent(11,2985.714); h_SL1L160->SetBinContent(12,2592.857); h_SL1L160->SetBinContent(13,3557.143); h_SL1L160->SetBinContent(14,3814.286); h_SL1L160->SetBinContent(15,3628.571); h_SL1L160->SetBinContent(16,2328.571); h_SL1L160->SetBinContent(17,1271.429); h_SL1L160->SetBinContent(18,1300); h_SL1L160->SetBinContent(19,1335.714); h_SL1L160->SetBinContent(20,1250); h_SL1L160->SetBinContent(21,1278.571); h_SL1L160->SetBinContent(22,1378.571); h_SL1L160->SetBinContent(23,1221.429); h_SL1L160->SetBinContent(24,685.7143); h_SL1L160->SetBinContent(25,721.4286); h_SL1L160->SetBinContent(26,1071.429); h_SL1L160->SetBinContent(27,821.4286); h_SL1L160->SetBinContent(28,757.1428); h_SL1L160->SetBinContent(29,842.8571); h_SL1L160->SetBinContent(30,778.5714); h_SL1L160->SetBinContent(31,771.4286); h_SL1L160->SetBinContent(32,564.2857); h_SL1L160->SetBinContent(33,7485.714); h_SL1L160->SetBinContent(34,7642.857); h_SL1L160->SetBinContent(35,7414.286); h_SL1L160->SetBinContent(36,7885.714); h_SL1L160->SetBinContent(37,7114.286); h_SL1L160->SetBinContent(38,7950); h_SL1L160->SetBinContent(39,7864.286); h_SL1L160->SetBinContent(41,792.8571); h_SL1L160->SetBinContent(42,828.5714); h_SL1L160->SetBinContent(43,957.1428); h_SL1L160->SetBinContent(44,864.2857); h_SL1L160->SetBinContent(45,592.8571); h_SL1L160->SetBinContent(46,571.4286); h_SL1L160->SetBinContent(47,600); h_SL1L160->SetBinContent(48,557.1428); h_SL1L160->SetBinContent(49,614.2857); h_SL1L160->SetBinContent(50,707.1428); h_SL1L160->SetBinContent(51,807.1428); h_SL1L160->SetBinContent(52,914.2857); h_SL1L160->SetBinContent(53,992.8571); h_SL1L160->SetBinContent(54,878.5714); h_SL1L160->SetBinContent(55,1321.429); h_SL1L160->SetBinContent(56,1357.143); h_SL1L160->SetMaximum(113601.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,43507.14); h_SL1L261->SetBinContent(2,44964.29); h_SL1L261->SetBinContent(3,48178.57); h_SL1L261->SetBinContent(4,46871.43); h_SL1L261->SetBinContent(5,46807.14); h_SL1L261->SetBinContent(6,48021.43); h_SL1L261->SetBinContent(7,46235.71); h_SL1L261->SetBinContent(8,47328.57); h_SL1L261->SetBinContent(9,63300); h_SL1L261->SetBinContent(10,42585.71); h_SL1L261->SetBinContent(11,42871.43); h_SL1L261->SetBinContent(12,39014.29); h_SL1L261->SetBinContent(13,37707.14); h_SL1L261->SetBinContent(14,36735.71); h_SL1L261->SetBinContent(15,40342.86); h_SL1L261->SetBinContent(16,39428.57); h_SL1L261->SetBinContent(17,40228.57); h_SL1L261->SetBinContent(18,43807.14); h_SL1L261->SetBinContent(19,45078.57); h_SL1L261->SetBinContent(20,44128.57); h_SL1L261->SetBinContent(21,48035.71); h_SL1L261->SetBinContent(22,47550); h_SL1L261->SetBinContent(23,46685.71); h_SL1L261->SetBinContent(24,47442.86); h_SL1L261->SetBinContent(25,46821.43); h_SL1L261->SetBinContent(26,43778.57); h_SL1L261->SetBinContent(27,42685.71); h_SL1L261->SetBinContent(28,46421.43); h_SL1L261->SetBinContent(29,46478.57); h_SL1L261->SetBinContent(30,46964.29); h_SL1L261->SetBinContent(31,46464.29); h_SL1L261->SetBinContent(32,45264.29); h_SL1L261->SetBinContent(33,44985.71); h_SL1L261->SetBinContent(34,45650); h_SL1L261->SetBinContent(35,44421.43); h_SL1L261->SetBinContent(36,44328.57); h_SL1L261->SetBinContent(37,46550); h_SL1L261->SetBinContent(38,46900); h_SL1L261->SetBinContent(39,47057.14); h_SL1L261->SetBinContent(40,46514.29); h_SL1L261->SetBinContent(41,49157.14); h_SL1L261->SetBinContent(42,49628.57); h_SL1L261->SetBinContent(43,51350); h_SL1L261->SetBinContent(44,51385.71); h_SL1L261->SetBinContent(45,51150); h_SL1L261->SetBinContent(46,52592.86); h_SL1L261->SetBinContent(47,54214.29); h_SL1L261->SetBinContent(48,54057.14); h_SL1L261->SetBinContent(49,85900); h_SL1L261->SetBinContent(50,54607.14); h_SL1L261->SetBinContent(51,56157.14); h_SL1L261->SetBinContent(52,55921.43); h_SL1L261->SetBinContent(53,60092.86); h_SL1L261->SetBinContent(54,59464.29); h_SL1L261->SetBinContent(55,60871.43); h_SL1L261->SetBinContent(56,61650); h_SL1L261->SetMaximum(98785); 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,43142.86); h_SL1L362->SetBinContent(2,44400); h_SL1L362->SetBinContent(3,44328.57); h_SL1L362->SetBinContent(4,46035.71); h_SL1L362->SetBinContent(5,46442.86); h_SL1L362->SetBinContent(6,46685.71); h_SL1L362->SetBinContent(7,45450); h_SL1L362->SetBinContent(8,44192.86); h_SL1L362->SetBinContent(9,43250); h_SL1L362->SetBinContent(10,41042.86); h_SL1L362->SetBinContent(11,38685.71); h_SL1L362->SetBinContent(12,36657.14); h_SL1L362->SetBinContent(13,36342.86); h_SL1L362->SetBinContent(14,36392.86); h_SL1L362->SetBinContent(15,38864.29); h_SL1L362->SetBinContent(16,39514.29); h_SL1L362->SetBinContent(17,41128.57); h_SL1L362->SetBinContent(18,43707.14); h_SL1L362->SetBinContent(19,44092.86); h_SL1L362->SetBinContent(20,44964.29); h_SL1L362->SetBinContent(21,46535.71); h_SL1L362->SetBinContent(22,45042.86); h_SL1L362->SetBinContent(23,45778.57); h_SL1L362->SetBinContent(24,46814.29); h_SL1L362->SetBinContent(25,44857.14); h_SL1L362->SetBinContent(26,41307.14); h_SL1L362->SetBinContent(27,43400); h_SL1L362->SetBinContent(28,45857.14); h_SL1L362->SetBinContent(29,46200); h_SL1L362->SetBinContent(30,45378.57); h_SL1L362->SetBinContent(31,44885.71); h_SL1L362->SetBinContent(32,44192.86); h_SL1L362->SetBinContent(33,42978.57); h_SL1L362->SetBinContent(34,43878.57); h_SL1L362->SetBinContent(35,42657.14); h_SL1L362->SetBinContent(36,44614.29); h_SL1L362->SetBinContent(37,45592.86); h_SL1L362->SetBinContent(38,46085.71); h_SL1L362->SetBinContent(39,47285.71); h_SL1L362->SetBinContent(40,46157.14); h_SL1L362->SetBinContent(41,46585.71); h_SL1L362->SetBinContent(42,49978.57); h_SL1L362->SetBinContent(43,49685.71); h_SL1L362->SetBinContent(44,49600); h_SL1L362->SetBinContent(45,50171.43); h_SL1L362->SetBinContent(46,51550); h_SL1L362->SetBinContent(47,53771.43); h_SL1L362->SetBinContent(48,54571.43); h_SL1L362->SetBinContent(49,53950); h_SL1L362->SetBinContent(50,54800); h_SL1L362->SetBinContent(51,54064.29); h_SL1L362->SetBinContent(52,56771.43); h_SL1L362->SetBinContent(53,71221.43); h_SL1L362->SetBinContent(54,59292.86); h_SL1L362->SetBinContent(55,59171.43); h_SL1L362->SetBinContent(56,75464.28); h_SL1L362->SetMaximum(98785); 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,40021.43); h_SL1L463->SetBinContent(3,38085.71); h_SL1L463->SetBinContent(4,36835.71); h_SL1L463->SetBinContent(5,34528.57); h_SL1L463->SetBinContent(6,34392.86); h_SL1L463->SetBinContent(7,34271.43); h_SL1L463->SetBinContent(8,36085.71); h_SL1L463->SetBinContent(9,35842.86); h_SL1L463->SetBinContent(10,34557.14); h_SL1L463->SetBinContent(11,35014.29); h_SL1L463->SetBinContent(12,33685.71); h_SL1L463->SetBinContent(13,33135.71); h_SL1L463->SetBinContent(14,34557.14); h_SL1L463->SetBinContent(15,35300); h_SL1L463->SetBinContent(16,34478.57); h_SL1L463->SetBinContent(17,33885.71); h_SL1L463->SetBinContent(18,36500); h_SL1L463->SetBinContent(19,34728.57); h_SL1L463->SetBinContent(20,36557.14); h_SL1L463->SetBinContent(21,37564.29); h_SL1L463->SetBinContent(22,35321.43); h_SL1L463->SetBinContent(23,35164.29); h_SL1L463->SetBinContent(24,35921.43); h_SL1L463->SetBinContent(25,31685.71); h_SL1L463->SetBinContent(26,31535.71); h_SL1L463->SetBinContent(27,31214.29); h_SL1L463->SetBinContent(28,33157.14); h_SL1L463->SetBinContent(29,32307.14); h_SL1L463->SetBinContent(30,32628.57); h_SL1L463->SetBinContent(31,32142.86); h_SL1L463->SetBinContent(32,31057.14); h_SL1L463->SetBinContent(33,28978.57); h_SL1L463->SetBinContent(34,32185.71); h_SL1L463->SetBinContent(35,32392.86); h_SL1L463->SetBinContent(36,30100); h_SL1L463->SetBinContent(37,64.28571); h_SL1L463->SetBinContent(41,29435.71); h_SL1L463->SetBinContent(42,31457.14); h_SL1L463->SetBinContent(43,32635.71); h_SL1L463->SetBinContent(44,32292.86); h_SL1L463->SetBinContent(45,28828.57); h_SL1L463->SetBinContent(46,31371.43); h_SL1L463->SetBinContent(47,28557.14); h_SL1L463->SetBinContent(48,29542.86); h_SL1L463->SetBinContent(49,27842.86); h_SL1L463->SetBinContent(50,30321.43); h_SL1L463->SetBinContent(51,29157.14); h_SL1L463->SetBinContent(52,31507.14); h_SL1L463->SetBinContent(53,31992.86); h_SL1L463->SetBinContent(54,31721.43); h_SL1L463->SetBinContent(55,14.28571); h_SL1L463->SetBinContent(56,36600); h_SL1L463->SetMaximum(98785); 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 7382"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }