void RatesPerCell_Removing_noisy_cells_run_7443_SL1() { //=========Macro generated from canvas: c/c //========= (Fri Jan 18 19:15:08 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-7880.663,67.5,70925.96); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7443",60,0,60); h_SL1L160->SetBinContent(1,29907.14); h_SL1L160->SetBinContent(2,30242.86); h_SL1L160->SetBinContent(3,29114.29); h_SL1L160->SetBinContent(4,27457.14); h_SL1L160->SetBinContent(5,23757.14); h_SL1L160->SetBinContent(6,24742.86); h_SL1L160->SetBinContent(7,24092.86); h_SL1L160->SetBinContent(8,24842.86); h_SL1L160->SetBinContent(9,24721.43); h_SL1L160->SetBinContent(10,24642.86); h_SL1L160->SetBinContent(11,25121.43); h_SL1L160->SetBinContent(12,24121.43); h_SL1L160->SetBinContent(13,25100); h_SL1L160->SetBinContent(14,36764.29); h_SL1L160->SetBinContent(15,34821.43); h_SL1L160->SetBinContent(16,22071.43); h_SL1L160->SetBinContent(17,20857.14); h_SL1L160->SetBinContent(18,21271.43); h_SL1L160->SetBinContent(19,21121.43); h_SL1L160->SetBinContent(20,22121.43); h_SL1L160->SetBinContent(21,21185.71); h_SL1L160->SetBinContent(22,19778.57); h_SL1L160->SetBinContent(23,18328.57); h_SL1L160->SetBinContent(24,16057.14); h_SL1L160->SetBinContent(25,15971.43); h_SL1L160->SetBinContent(26,17357.14); h_SL1L160->SetBinContent(27,16228.57); h_SL1L160->SetBinContent(28,16571.43); h_SL1L160->SetBinContent(29,18214.29); h_SL1L160->SetBinContent(30,16428.57); h_SL1L160->SetBinContent(31,16892.86); h_SL1L160->SetBinContent(32,15257.14); h_SL1L160->SetBinContent(33,42021.43); h_SL1L160->SetBinContent(34,43400); h_SL1L160->SetBinContent(35,41200); h_SL1L160->SetBinContent(36,42707.14); h_SL1L160->SetBinContent(37,42950); h_SL1L160->SetBinContent(38,45578.57); h_SL1L160->SetBinContent(39,43871.43); h_SL1L160->SetBinContent(41,15735.71); h_SL1L160->SetBinContent(42,15357.14); h_SL1L160->SetBinContent(43,15228.57); h_SL1L160->SetBinContent(44,14307.14); h_SL1L160->SetBinContent(45,13850); h_SL1L160->SetBinContent(46,13578.57); h_SL1L160->SetBinContent(47,13871.43); h_SL1L160->SetBinContent(48,13192.86); h_SL1L160->SetBinContent(49,13828.57); h_SL1L160->SetBinContent(50,15821.43); h_SL1L160->SetBinContent(51,16435.71); h_SL1L160->SetBinContent(52,15792.86); h_SL1L160->SetBinContent(53,15535.71); h_SL1L160->SetBinContent(54,15992.86); h_SL1L160->SetBinContent(55,15400); h_SL1L160->SetBinContent(56,18207.14); h_SL1L160->SetMaximum(63045.3); 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,35835.71); h_SL1L261->SetBinContent(2,36842.86); h_SL1L261->SetBinContent(3,37771.43); h_SL1L261->SetBinContent(4,39885.71); h_SL1L261->SetBinContent(5,39200); h_SL1L261->SetBinContent(6,41007.14); h_SL1L261->SetBinContent(7,40778.57); h_SL1L261->SetBinContent(8,42492.86); h_SL1L261->SetBinContent(9,42650); h_SL1L261->SetBinContent(10,41778.57); h_SL1L261->SetBinContent(11,42421.43); h_SL1L261->SetBinContent(12,43450); h_SL1L261->SetBinContent(13,43821.43); h_SL1L261->SetBinContent(14,42800); h_SL1L261->SetBinContent(15,43778.57); h_SL1L261->SetBinContent(16,42314.29); h_SL1L261->SetBinContent(17,43078.57); h_SL1L261->SetBinContent(18,45535.71); h_SL1L261->SetBinContent(19,46385.71); h_SL1L261->SetBinContent(20,46950); h_SL1L261->SetBinContent(21,47671.43); h_SL1L261->SetBinContent(22,44300); h_SL1L261->SetBinContent(23,43257.14); h_SL1L261->SetBinContent(24,41864.29); h_SL1L261->SetBinContent(25,43557.14); h_SL1L261->SetBinContent(26,41964.29); h_SL1L261->SetBinContent(27,40357.14); h_SL1L261->SetBinContent(28,42278.57); h_SL1L261->SetBinContent(29,45314.29); h_SL1L261->SetBinContent(30,45335.71); h_SL1L261->SetBinContent(31,44257.14); h_SL1L261->SetBinContent(32,43992.86); h_SL1L261->SetBinContent(33,42185.71); h_SL1L261->SetBinContent(34,42700); h_SL1L261->SetBinContent(35,42228.57); h_SL1L261->SetBinContent(36,41885.71); h_SL1L261->SetBinContent(37,43807.14); h_SL1L261->SetBinContent(38,43900); h_SL1L261->SetBinContent(39,43978.57); h_SL1L261->SetBinContent(40,43764.29); h_SL1L261->SetBinContent(41,44464.29); h_SL1L261->SetBinContent(42,43942.86); h_SL1L261->SetBinContent(43,43985.71); h_SL1L261->SetBinContent(44,41392.86); h_SL1L261->SetBinContent(45,42150); h_SL1L261->SetBinContent(46,42442.86); h_SL1L261->SetBinContent(47,42842.86); h_SL1L261->SetBinContent(48,42585.71); h_SL1L261->SetBinContent(49,43121.43); h_SL1L261->SetBinContent(50,42878.57); h_SL1L261->SetBinContent(51,43321.43); h_SL1L261->SetBinContent(52,43200); h_SL1L261->SetBinContent(53,43207.14); h_SL1L261->SetBinContent(54,43385.71); h_SL1L261->SetBinContent(55,42257.14); h_SL1L261->SetBinContent(56,42742.86); h_SL1L261->SetMaximum(54822.14); 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,36464.29); h_SL1L362->SetBinContent(2,36378.57); h_SL1L362->SetBinContent(3,37600); h_SL1L362->SetBinContent(4,38892.86); h_SL1L362->SetBinContent(5,40428.57); h_SL1L362->SetBinContent(6,39150); h_SL1L362->SetBinContent(7,40450); h_SL1L362->SetBinContent(8,42335.71); h_SL1L362->SetBinContent(9,39828.57); h_SL1L362->SetBinContent(10,41450); h_SL1L362->SetBinContent(11,42321.43); h_SL1L362->SetBinContent(12,42257.14); h_SL1L362->SetBinContent(13,42478.57); h_SL1L362->SetBinContent(14,40828.57); h_SL1L362->SetBinContent(15,41671.43); h_SL1L362->SetBinContent(16,42685.71); h_SL1L362->SetBinContent(17,42771.43); h_SL1L362->SetBinContent(18,44571.43); h_SL1L362->SetBinContent(19,45078.57); h_SL1L362->SetBinContent(20,46207.14); h_SL1L362->SetBinContent(21,45357.14); h_SL1L362->SetBinContent(22,42471.43); h_SL1L362->SetBinContent(23,41450); h_SL1L362->SetBinContent(24,43178.57); h_SL1L362->SetBinContent(25,41107.14); h_SL1L362->SetBinContent(26,39228.57); h_SL1L362->SetBinContent(27,39942.86); h_SL1L362->SetBinContent(28,44135.71); h_SL1L362->SetBinContent(29,43528.57); h_SL1L362->SetBinContent(30,44664.29); h_SL1L362->SetBinContent(31,42985.71); h_SL1L362->SetBinContent(32,41635.71); h_SL1L362->SetBinContent(33,42764.29); h_SL1L362->SetBinContent(34,41607.14); h_SL1L362->SetBinContent(35,40407.14); h_SL1L362->SetBinContent(36,41807.14); h_SL1L362->SetBinContent(37,43478.57); h_SL1L362->SetBinContent(38,42285.71); h_SL1L362->SetBinContent(39,42935.71); h_SL1L362->SetBinContent(40,43335.71); h_SL1L362->SetBinContent(41,43821.43); h_SL1L362->SetBinContent(42,43200); h_SL1L362->SetBinContent(43,40921.43); h_SL1L362->SetBinContent(44,40692.86); h_SL1L362->SetBinContent(45,41828.57); h_SL1L362->SetBinContent(46,42064.29); h_SL1L362->SetBinContent(47,41071.43); h_SL1L362->SetBinContent(48,41971.43); h_SL1L362->SetBinContent(49,43007.14); h_SL1L362->SetBinContent(50,42850); h_SL1L362->SetBinContent(51,40364.29); h_SL1L362->SetBinContent(52,41800); h_SL1L362->SetBinContent(53,42007.14); h_SL1L362->SetBinContent(54,42650); h_SL1L362->SetBinContent(55,41564.29); h_SL1L362->SetBinContent(56,40578.57); h_SL1L362->SetMaximum(54822.14); 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,25314.29); h_SL1L463->SetBinContent(3,21771.43); h_SL1L463->SetBinContent(4,21114.29); h_SL1L463->SetBinContent(5,20142.86); h_SL1L463->SetBinContent(6,20971.43); h_SL1L463->SetBinContent(7,21100); h_SL1L463->SetBinContent(8,21871.43); h_SL1L463->SetBinContent(9,23200); h_SL1L463->SetBinContent(10,25250); h_SL1L463->SetBinContent(11,26885.71); h_SL1L463->SetBinContent(12,29028.57); h_SL1L463->SetBinContent(13,27650); h_SL1L463->SetBinContent(14,29257.14); h_SL1L463->SetBinContent(15,47235.71); h_SL1L463->SetBinContent(16,33292.86); h_SL1L463->SetBinContent(17,25150); h_SL1L463->SetBinContent(18,25678.57); h_SL1L463->SetBinContent(19,24357.14); h_SL1L463->SetBinContent(20,24557.14); h_SL1L463->SetBinContent(21,23785.71); h_SL1L463->SetBinContent(22,22507.14); h_SL1L463->SetBinContent(23,20857.14); h_SL1L463->SetBinContent(24,21050); h_SL1L463->SetBinContent(25,19192.86); h_SL1L463->SetBinContent(26,19085.71); h_SL1L463->SetBinContent(27,18814.29); h_SL1L463->SetBinContent(28,19257.14); h_SL1L463->SetBinContent(29,18557.14); h_SL1L463->SetBinContent(30,17642.86); h_SL1L463->SetBinContent(31,18135.71); h_SL1L463->SetBinContent(32,16964.29); h_SL1L463->SetBinContent(33,15564.29); h_SL1L463->SetBinContent(34,17992.86); h_SL1L463->SetBinContent(35,17200); h_SL1L463->SetBinContent(36,16085.71); h_SL1L463->SetBinContent(41,14742.86); h_SL1L463->SetBinContent(42,16000); h_SL1L463->SetBinContent(43,15735.71); h_SL1L463->SetBinContent(44,14807.14); h_SL1L463->SetBinContent(45,13542.86); h_SL1L463->SetBinContent(46,14635.71); h_SL1L463->SetBinContent(47,14107.14); h_SL1L463->SetBinContent(48,13450); h_SL1L463->SetBinContent(49,13557.14); h_SL1L463->SetBinContent(50,13835.71); h_SL1L463->SetBinContent(51,14328.57); h_SL1L463->SetBinContent(52,14842.86); h_SL1L463->SetBinContent(53,15014.29); h_SL1L463->SetBinContent(54,13557.14); h_SL1L463->SetBinContent(55,14.28571); h_SL1L463->SetBinContent(56,15800); h_SL1L463->SetMaximum(54822.14); 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 7443"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }