void RatesPerCell_Removing_noisy_cells_run_7366_SL1() { //=========Macro generated from canvas: c/c //========= (Fri Jan 18 19:18:44 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-10021.96,67.5,90197.66); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7366",60,0,60); h_SL1L160->SetBinContent(1,34342.86); h_SL1L160->SetBinContent(2,34775); h_SL1L160->SetBinContent(3,34935.71); h_SL1L160->SetBinContent(4,32353.57); h_SL1L160->SetBinContent(5,27510.71); h_SL1L160->SetBinContent(6,27503.57); h_SL1L160->SetBinContent(7,27107.14); h_SL1L160->SetBinContent(8,27075); h_SL1L160->SetBinContent(9,26242.86); h_SL1L160->SetBinContent(10,24775); h_SL1L160->SetBinContent(11,24614.29); h_SL1L160->SetBinContent(12,21885.71); h_SL1L160->SetBinContent(13,21832.14); h_SL1L160->SetBinContent(14,33475); h_SL1L160->SetBinContent(15,32507.14); h_SL1L160->SetBinContent(16,20992.86); h_SL1L160->SetBinContent(17,20232.14); h_SL1L160->SetBinContent(18,21278.57); h_SL1L160->SetBinContent(19,21535.71); h_SL1L160->SetBinContent(20,21232.14); h_SL1L160->SetBinContent(21,21857.14); h_SL1L160->SetBinContent(22,21285.71); h_SL1L160->SetBinContent(23,19710.71); h_SL1L160->SetBinContent(24,18060.71); h_SL1L160->SetBinContent(25,17800); h_SL1L160->SetBinContent(26,18125); h_SL1L160->SetBinContent(27,17557.14); h_SL1L160->SetBinContent(28,17157.14); h_SL1L160->SetBinContent(29,17632.14); h_SL1L160->SetBinContent(30,17003.57); h_SL1L160->SetBinContent(31,16296.43); h_SL1L160->SetBinContent(32,15735.71); h_SL1L160->SetBinContent(33,43189.29); h_SL1L160->SetBinContent(34,44064.29); h_SL1L160->SetBinContent(35,44064.29); h_SL1L160->SetBinContent(36,44771.43); h_SL1L160->SetBinContent(37,45500); h_SL1L160->SetBinContent(38,46292.86); h_SL1L160->SetBinContent(39,45635.71); h_SL1L160->SetBinContent(41,15900); h_SL1L160->SetBinContent(42,16885.71); h_SL1L160->SetBinContent(43,16489.29); h_SL1L160->SetBinContent(44,16046.43); h_SL1L160->SetBinContent(45,15603.57); h_SL1L160->SetBinContent(46,15200); h_SL1L160->SetBinContent(47,15492.86); h_SL1L160->SetBinContent(48,15567.86); h_SL1L160->SetBinContent(49,16457.14); h_SL1L160->SetBinContent(50,17703.57); h_SL1L160->SetBinContent(51,19167.86); h_SL1L160->SetBinContent(52,18657.14); h_SL1L160->SetBinContent(53,18964.29); h_SL1L160->SetBinContent(54,19914.29); h_SL1L160->SetBinContent(55,20571.43); h_SL1L160->SetBinContent(56,23703.57); h_SL1L160->SetMaximum(80175.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,42839.29); h_SL1L261->SetBinContent(2,43800); h_SL1L261->SetBinContent(3,45260.71); h_SL1L261->SetBinContent(4,45635.71); h_SL1L261->SetBinContent(5,45710.71); h_SL1L261->SetBinContent(6,47303.57); h_SL1L261->SetBinContent(7,45492.86); h_SL1L261->SetBinContent(8,46157.14); h_SL1L261->SetBinContent(9,44521.43); h_SL1L261->SetBinContent(10,41746.43); h_SL1L261->SetBinContent(11,41332.14); h_SL1L261->SetBinContent(12,38275); h_SL1L261->SetBinContent(13,37282.14); h_SL1L261->SetBinContent(14,36657.14); h_SL1L261->SetBinContent(15,37835.71); h_SL1L261->SetBinContent(16,38964.29); h_SL1L261->SetBinContent(17,40400); h_SL1L261->SetBinContent(18,42832.14); h_SL1L261->SetBinContent(19,43875); h_SL1L261->SetBinContent(20,45207.14); h_SL1L261->SetBinContent(21,46967.86); h_SL1L261->SetBinContent(22,46725); h_SL1L261->SetBinContent(23,45528.57); h_SL1L261->SetBinContent(24,45885.71); h_SL1L261->SetBinContent(25,46460.71); h_SL1L261->SetBinContent(26,42667.86); h_SL1L261->SetBinContent(27,41903.57); h_SL1L261->SetBinContent(28,44217.86); h_SL1L261->SetBinContent(29,45425); h_SL1L261->SetBinContent(30,46664.29); h_SL1L261->SetBinContent(31,46228.57); h_SL1L261->SetBinContent(32,45114.29); h_SL1L261->SetBinContent(33,43789.29); h_SL1L261->SetBinContent(34,44192.86); h_SL1L261->SetBinContent(35,43546.43); h_SL1L261->SetBinContent(36,44567.86); h_SL1L261->SetBinContent(37,45675); h_SL1L261->SetBinContent(38,46107.14); h_SL1L261->SetBinContent(39,45946.43); h_SL1L261->SetBinContent(40,45703.57); h_SL1L261->SetBinContent(41,47810.71); h_SL1L261->SetBinContent(42,49014.29); h_SL1L261->SetBinContent(43,49435.71); h_SL1L261->SetBinContent(44,49942.86); h_SL1L261->SetBinContent(45,50310.71); h_SL1L261->SetBinContent(46,51542.86); h_SL1L261->SetBinContent(47,51889.29); h_SL1L261->SetBinContent(48,53832.14); h_SL1L261->SetBinContent(49,54717.86); h_SL1L261->SetBinContent(50,53403.57); h_SL1L261->SetBinContent(51,54964.29); h_SL1L261->SetBinContent(52,55007.14); h_SL1L261->SetBinContent(53,57828.57); h_SL1L261->SetBinContent(54,58975); h_SL1L261->SetBinContent(55,60625); h_SL1L261->SetBinContent(56,60200); h_SL1L261->SetMaximum(69718.75); 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,41878.57); h_SL1L362->SetBinContent(2,43196.43); h_SL1L362->SetBinContent(3,44792.86); h_SL1L362->SetBinContent(4,44971.43); h_SL1L362->SetBinContent(5,44789.29); h_SL1L362->SetBinContent(6,44450); h_SL1L362->SetBinContent(7,45057.14); h_SL1L362->SetBinContent(8,44446.43); h_SL1L362->SetBinContent(9,41282.14); h_SL1L362->SetBinContent(10,40732.14); h_SL1L362->SetBinContent(11,39010.71); h_SL1L362->SetBinContent(12,36771.43); h_SL1L362->SetBinContent(13,35464.29); h_SL1L362->SetBinContent(14,36071.43); h_SL1L362->SetBinContent(15,36596.43); h_SL1L362->SetBinContent(16,38742.86); h_SL1L362->SetBinContent(17,39778.57); h_SL1L362->SetBinContent(18,43014.29); h_SL1L362->SetBinContent(19,44332.14); h_SL1L362->SetBinContent(20,44614.29); h_SL1L362->SetBinContent(21,45385.71); h_SL1L362->SetBinContent(22,44332.14); h_SL1L362->SetBinContent(23,44871.43); h_SL1L362->SetBinContent(24,45342.86); h_SL1L362->SetBinContent(25,44421.43); h_SL1L362->SetBinContent(26,41489.29); h_SL1L362->SetBinContent(27,41707.14); h_SL1L362->SetBinContent(28,44703.57); h_SL1L362->SetBinContent(29,44610.71); h_SL1L362->SetBinContent(30,44557.14); h_SL1L362->SetBinContent(31,44157.14); h_SL1L362->SetBinContent(32,42857.14); h_SL1L362->SetBinContent(33,43039.29); h_SL1L362->SetBinContent(34,42917.86); h_SL1L362->SetBinContent(35,42867.86); h_SL1L362->SetBinContent(36,43507.14); h_SL1L362->SetBinContent(37,44803.57); h_SL1L362->SetBinContent(38,44803.57); h_SL1L362->SetBinContent(39,44739.29); h_SL1L362->SetBinContent(40,45221.43); h_SL1L362->SetBinContent(41,47246.43); h_SL1L362->SetBinContent(42,48271.43); h_SL1L362->SetBinContent(43,48803.57); h_SL1L362->SetBinContent(44,48650); h_SL1L362->SetBinContent(45,49278.57); h_SL1L362->SetBinContent(46,50685.71); h_SL1L362->SetBinContent(47,52542.86); h_SL1L362->SetBinContent(48,53032.14); h_SL1L362->SetBinContent(49,53450); h_SL1L362->SetBinContent(50,53242.86); h_SL1L362->SetBinContent(51,52650); h_SL1L362->SetBinContent(52,55321.43); h_SL1L362->SetBinContent(53,56632.14); h_SL1L362->SetBinContent(54,57507.14); h_SL1L362->SetBinContent(55,59560.71); h_SL1L362->SetBinContent(56,59032.14); h_SL1L362->SetMaximum(69718.75); 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,29917.86); h_SL1L463->SetBinContent(3,27364.29); h_SL1L463->SetBinContent(4,24982.14); h_SL1L463->SetBinContent(5,22535.71); h_SL1L463->SetBinContent(6,21921.43); h_SL1L463->SetBinContent(7,22739.29); h_SL1L463->SetBinContent(8,23485.71); h_SL1L463->SetBinContent(9,25039.29); h_SL1L463->SetBinContent(10,24967.86); h_SL1L463->SetBinContent(11,26042.86); h_SL1L463->SetBinContent(12,25082.14); h_SL1L463->SetBinContent(13,25921.43); h_SL1L463->SetBinContent(14,25242.86); h_SL1L463->SetBinContent(15,44503.57); h_SL1L463->SetBinContent(16,30046.43); h_SL1L463->SetBinContent(17,23971.43); h_SL1L463->SetBinContent(18,24396.43); h_SL1L463->SetBinContent(19,24053.57); h_SL1L463->SetBinContent(20,24175); h_SL1L463->SetBinContent(21,24085.71); h_SL1L463->SetBinContent(22,24450); h_SL1L463->SetBinContent(23,23432.14); h_SL1L463->SetBinContent(24,22821.43); h_SL1L463->SetBinContent(25,20492.86); h_SL1L463->SetBinContent(26,20696.43); h_SL1L463->SetBinContent(27,19296.43); h_SL1L463->SetBinContent(28,19725); h_SL1L463->SetBinContent(29,18107.14); h_SL1L463->SetBinContent(30,19578.57); h_SL1L463->SetBinContent(31,19150); h_SL1L463->SetBinContent(32,18035.71); h_SL1L463->SetBinContent(33,16828.57); h_SL1L463->SetBinContent(34,18542.86); h_SL1L463->SetBinContent(35,18739.29); h_SL1L463->SetBinContent(36,17710.71); h_SL1L463->SetBinContent(37,28.57143); h_SL1L463->SetBinContent(38,3.571429); h_SL1L463->SetBinContent(39,7.142857); h_SL1L463->SetBinContent(40,3.571429); h_SL1L463->SetBinContent(41,15803.57); h_SL1L463->SetBinContent(42,17392.86); h_SL1L463->SetBinContent(43,17542.86); h_SL1L463->SetBinContent(44,16928.57); h_SL1L463->SetBinContent(45,15546.43); h_SL1L463->SetBinContent(46,16867.86); h_SL1L463->SetBinContent(47,15603.57); h_SL1L463->SetBinContent(48,15253.57); h_SL1L463->SetBinContent(49,15539.29); h_SL1L463->SetBinContent(50,16257.14); h_SL1L463->SetBinContent(51,16778.57); h_SL1L463->SetBinContent(52,17282.14); h_SL1L463->SetBinContent(53,17525); h_SL1L463->SetBinContent(54,17807.14); h_SL1L463->SetBinContent(55,7.142857); h_SL1L463->SetBinContent(56,20400); h_SL1L463->SetMaximum(69718.75); 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 7366"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }