void RatesPerCell_Removing_noisy_cells_run_7379_SL1() { //=========Macro generated from canvas: c/c //========= (Sat Dec 22 21:54:37 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-12989.97,67.5,116909.7); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7379",60,0,60); h_SL1L160->SetBinContent(1,21492.86); h_SL1L160->SetBinContent(2,21150); h_SL1L160->SetBinContent(3,20128.57); h_SL1L160->SetBinContent(4,18128.57); h_SL1L160->SetBinContent(5,14200); h_SL1L160->SetBinContent(6,15042.86); h_SL1L160->SetBinContent(7,14100); h_SL1L160->SetBinContent(8,14728.57); h_SL1L160->SetBinContent(9,14207.14); h_SL1L160->SetBinContent(10,13228.57); h_SL1L160->SetBinContent(11,13350); h_SL1L160->SetBinContent(12,12642.86); h_SL1L160->SetBinContent(13,19871.43); h_SL1L160->SetBinContent(14,22264.29); h_SL1L160->SetBinContent(15,21964.29); h_SL1L160->SetBinContent(16,11635.71); h_SL1L160->SetBinContent(17,9928.571); h_SL1L160->SetBinContent(18,11135.71); h_SL1L160->SetBinContent(19,12207.14); h_SL1L160->SetBinContent(20,11171.43); h_SL1L160->SetBinContent(21,11228.57); h_SL1L160->SetBinContent(22,10978.57); h_SL1L160->SetBinContent(23,10728.57); h_SL1L160->SetBinContent(24,9371.429); h_SL1L160->SetBinContent(25,9028.571); h_SL1L160->SetBinContent(26,9578.571); h_SL1L160->SetBinContent(27,8950); h_SL1L160->SetBinContent(28,9328.571); h_SL1L160->SetBinContent(29,9742.857); h_SL1L160->SetBinContent(30,9464.285); h_SL1L160->SetBinContent(31,8792.857); h_SL1L160->SetBinContent(32,8650); h_SL1L160->SetBinContent(33,35292.86); h_SL1L160->SetBinContent(34,36364.29); h_SL1L160->SetBinContent(35,36157.14); h_SL1L160->SetBinContent(36,35728.57); h_SL1L160->SetBinContent(37,37778.57); h_SL1L160->SetBinContent(38,37685.71); h_SL1L160->SetBinContent(39,37142.86); h_SL1L160->SetBinContent(41,9007.143); h_SL1L160->SetBinContent(42,8885.714); h_SL1L160->SetBinContent(43,9528.571); h_SL1L160->SetBinContent(44,8357.143); h_SL1L160->SetBinContent(45,8292.857); h_SL1L160->SetBinContent(46,7442.857); h_SL1L160->SetBinContent(47,7957.143); h_SL1L160->SetBinContent(48,7892.857); h_SL1L160->SetBinContent(49,8300); h_SL1L160->SetBinContent(50,8900); h_SL1L160->SetBinContent(51,9535.714); h_SL1L160->SetBinContent(52,9500); h_SL1L160->SetBinContent(53,9842.857); h_SL1L160->SetBinContent(54,9792.857); h_SL1L160->SetBinContent(55,10750); h_SL1L160->SetBinContent(56,11892.86); h_SL1L160->SetMaximum(103919.7); 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,43785.71); h_SL1L261->SetBinContent(2,45735.71); h_SL1L261->SetBinContent(3,49442.86); h_SL1L261->SetBinContent(4,45942.86); h_SL1L261->SetBinContent(5,46757.14); h_SL1L261->SetBinContent(6,48078.57); h_SL1L261->SetBinContent(7,46250); h_SL1L261->SetBinContent(8,46942.86); h_SL1L261->SetBinContent(9,60628.57); h_SL1L261->SetBinContent(10,42750); h_SL1L261->SetBinContent(11,41592.86); h_SL1L261->SetBinContent(12,38571.43); h_SL1L261->SetBinContent(13,38285.71); h_SL1L261->SetBinContent(14,38042.86); h_SL1L261->SetBinContent(15,40521.43); h_SL1L261->SetBinContent(16,39714.29); h_SL1L261->SetBinContent(17,40864.29); h_SL1L261->SetBinContent(18,43228.57); h_SL1L261->SetBinContent(19,44950); h_SL1L261->SetBinContent(20,44450); h_SL1L261->SetBinContent(21,48457.14); h_SL1L261->SetBinContent(22,47335.71); h_SL1L261->SetBinContent(23,47392.86); h_SL1L261->SetBinContent(24,46214.29); h_SL1L261->SetBinContent(25,48850); h_SL1L261->SetBinContent(26,44521.43); h_SL1L261->SetBinContent(27,42300); h_SL1L261->SetBinContent(28,45100); h_SL1L261->SetBinContent(29,45828.57); h_SL1L261->SetBinContent(30,46478.57); h_SL1L261->SetBinContent(31,46042.86); h_SL1L261->SetBinContent(32,45464.29); h_SL1L261->SetBinContent(33,44507.14); h_SL1L261->SetBinContent(34,44014.29); h_SL1L261->SetBinContent(35,45157.14); h_SL1L261->SetBinContent(36,45214.29); h_SL1L261->SetBinContent(37,45514.29); h_SL1L261->SetBinContent(38,46814.29); h_SL1L261->SetBinContent(39,48128.57); h_SL1L261->SetBinContent(40,46014.29); h_SL1L261->SetBinContent(41,49121.43); h_SL1L261->SetBinContent(42,49307.14); h_SL1L261->SetBinContent(43,50235.71); h_SL1L261->SetBinContent(44,50342.86); h_SL1L261->SetBinContent(45,51607.14); h_SL1L261->SetBinContent(46,51992.86); h_SL1L261->SetBinContent(47,52064.29); h_SL1L261->SetBinContent(48,54871.43); h_SL1L261->SetBinContent(49,78578.57); h_SL1L261->SetBinContent(50,54228.57); h_SL1L261->SetBinContent(51,54671.43); h_SL1L261->SetBinContent(52,56714.29); h_SL1L261->SetBinContent(53,56992.86); h_SL1L261->SetBinContent(54,59885.71); h_SL1L261->SetBinContent(55,59735.71); h_SL1L261->SetBinContent(56,60185.71); h_SL1L261->SetMaximum(90365.36); 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,42435.71); h_SL1L362->SetBinContent(2,45057.14); h_SL1L362->SetBinContent(3,45457.14); h_SL1L362->SetBinContent(4,46042.86); h_SL1L362->SetBinContent(5,46942.86); h_SL1L362->SetBinContent(6,45978.57); h_SL1L362->SetBinContent(7,44921.43); h_SL1L362->SetBinContent(8,45100); h_SL1L362->SetBinContent(9,42214.29); h_SL1L362->SetBinContent(10,41050); h_SL1L362->SetBinContent(11,38492.86); h_SL1L362->SetBinContent(12,37828.57); h_SL1L362->SetBinContent(13,36485.71); h_SL1L362->SetBinContent(14,38828.57); h_SL1L362->SetBinContent(15,43821.43); h_SL1L362->SetBinContent(16,40614.29); h_SL1L362->SetBinContent(17,40450); h_SL1L362->SetBinContent(18,43914.29); h_SL1L362->SetBinContent(19,42935.71); h_SL1L362->SetBinContent(20,45692.86); h_SL1L362->SetBinContent(21,47764.29); h_SL1L362->SetBinContent(22,45064.29); h_SL1L362->SetBinContent(23,46135.71); h_SL1L362->SetBinContent(24,45185.71); h_SL1L362->SetBinContent(25,45614.29); h_SL1L362->SetBinContent(26,41842.86); h_SL1L362->SetBinContent(27,42800); h_SL1L362->SetBinContent(28,45778.57); h_SL1L362->SetBinContent(29,45921.43); h_SL1L362->SetBinContent(30,45128.57); h_SL1L362->SetBinContent(31,45092.86); h_SL1L362->SetBinContent(32,43807.14); h_SL1L362->SetBinContent(33,43585.71); h_SL1L362->SetBinContent(34,43600); h_SL1L362->SetBinContent(35,44000); h_SL1L362->SetBinContent(36,44550); h_SL1L362->SetBinContent(37,46385.71); h_SL1L362->SetBinContent(38,46557.14); h_SL1L362->SetBinContent(39,46471.43); h_SL1L362->SetBinContent(40,45450); h_SL1L362->SetBinContent(41,47400); h_SL1L362->SetBinContent(42,48871.43); h_SL1L362->SetBinContent(43,49057.14); h_SL1L362->SetBinContent(44,48978.57); h_SL1L362->SetBinContent(45,49507.14); h_SL1L362->SetBinContent(46,50164.29); h_SL1L362->SetBinContent(47,51442.86); h_SL1L362->SetBinContent(48,52585.71); h_SL1L362->SetBinContent(49,54457.14); h_SL1L362->SetBinContent(50,53435.71); h_SL1L362->SetBinContent(51,54057.14); h_SL1L362->SetBinContent(52,56192.86); h_SL1L362->SetBinContent(53,64764.29); h_SL1L362->SetBinContent(54,57107.14); h_SL1L362->SetBinContent(55,58685.71); h_SL1L362->SetBinContent(56,71407.14); h_SL1L362->SetMaximum(90365.36); 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,39107.14); h_SL1L463->SetBinContent(3,38650); h_SL1L463->SetBinContent(4,37392.86); h_SL1L463->SetBinContent(5,35478.57); h_SL1L463->SetBinContent(6,34971.43); h_SL1L463->SetBinContent(7,34178.57); h_SL1L463->SetBinContent(8,36385.71); h_SL1L463->SetBinContent(9,36207.14); h_SL1L463->SetBinContent(10,35957.14); h_SL1L463->SetBinContent(11,35928.57); h_SL1L463->SetBinContent(12,33692.86); h_SL1L463->SetBinContent(13,33157.14); h_SL1L463->SetBinContent(14,49771.43); h_SL1L463->SetBinContent(15,44600); h_SL1L463->SetBinContent(16,44585.71); h_SL1L463->SetBinContent(17,33307.14); h_SL1L463->SetBinContent(18,35985.71); h_SL1L463->SetBinContent(19,34457.14); h_SL1L463->SetBinContent(20,35864.29); h_SL1L463->SetBinContent(21,37385.71); h_SL1L463->SetBinContent(22,35650); h_SL1L463->SetBinContent(23,35378.57); h_SL1L463->SetBinContent(24,35450); h_SL1L463->SetBinContent(25,33935.71); h_SL1L463->SetBinContent(26,32178.57); h_SL1L463->SetBinContent(27,31407.14); h_SL1L463->SetBinContent(28,32157.14); h_SL1L463->SetBinContent(29,30707.14); h_SL1L463->SetBinContent(30,32735.71); h_SL1L463->SetBinContent(31,31892.86); h_SL1L463->SetBinContent(32,31378.57); h_SL1L463->SetBinContent(33,28850); h_SL1L463->SetBinContent(34,32314.29); h_SL1L463->SetBinContent(35,32664.29); h_SL1L463->SetBinContent(36,30035.71); h_SL1L463->SetBinContent(37,71.42857); h_SL1L463->SetBinContent(38,42.85714); h_SL1L463->SetBinContent(41,28428.57); h_SL1L463->SetBinContent(42,32042.86); h_SL1L463->SetBinContent(43,32171.43); h_SL1L463->SetBinContent(44,32785.71); h_SL1L463->SetBinContent(45,29085.71); h_SL1L463->SetBinContent(46,30614.29); h_SL1L463->SetBinContent(47,29357.14); h_SL1L463->SetBinContent(48,27657.14); h_SL1L463->SetBinContent(49,28678.57); h_SL1L463->SetBinContent(50,29971.43); h_SL1L463->SetBinContent(51,30492.86); h_SL1L463->SetBinContent(52,30928.57); h_SL1L463->SetBinContent(53,31835.71); h_SL1L463->SetBinContent(54,31792.86); h_SL1L463->SetBinContent(56,35721.43); h_SL1L463->SetMaximum(90365.36); 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 7379"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }