void RatesPerCell_Removing_noisy_cells_run_6828_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:15:18 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-18862.16,67.5,169759.4); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 6828",60,0,60); h_SL1L160->SetBinContent(1,48446.43); h_SL1L160->SetBinContent(2,46967.86); h_SL1L160->SetBinContent(3,47585.71); h_SL1L160->SetBinContent(4,44375); h_SL1L160->SetBinContent(5,41517.86); h_SL1L160->SetBinContent(6,43767.86); h_SL1L160->SetBinContent(7,40646.43); h_SL1L160->SetBinContent(8,40828.57); h_SL1L160->SetBinContent(9,39153.57); h_SL1L160->SetBinContent(10,35296.43); h_SL1L160->SetBinContent(11,34746.43); h_SL1L160->SetBinContent(12,33664.29); h_SL1L160->SetBinContent(13,35721.43); h_SL1L160->SetBinContent(14,34389.29); h_SL1L160->SetBinContent(15,34310.71); h_SL1L160->SetBinContent(16,32400); h_SL1L160->SetBinContent(17,33664.29); h_SL1L160->SetBinContent(18,35596.43); h_SL1L160->SetBinContent(19,37135.71); h_SL1L160->SetBinContent(20,34300); h_SL1L160->SetBinContent(21,38067.86); h_SL1L160->SetBinContent(22,37560.71); h_SL1L160->SetBinContent(23,36010.71); h_SL1L160->SetBinContent(24,33346.43); h_SL1L160->SetBinContent(25,34157.14); h_SL1L160->SetBinContent(26,33946.43); h_SL1L160->SetBinContent(27,32828.57); h_SL1L160->SetBinContent(28,32421.43); h_SL1L160->SetBinContent(29,30878.57); h_SL1L160->SetBinContent(30,30810.71); h_SL1L160->SetBinContent(31,29300); h_SL1L160->SetBinContent(32,28300); h_SL1L160->SetBinContent(33,37267.86); h_SL1L160->SetBinContent(34,44239.29); h_SL1L160->SetBinContent(35,45717.86); h_SL1L160->SetBinContent(36,44067.86); h_SL1L160->SetBinContent(37,47267.86); h_SL1L160->SetBinContent(38,47442.86); h_SL1L160->SetBinContent(39,38246.43); h_SL1L160->SetBinContent(40,27667.86); h_SL1L160->SetBinContent(41,26421.43); h_SL1L160->SetBinContent(42,26357.14); h_SL1L160->SetBinContent(43,26239.29); h_SL1L160->SetBinContent(44,26317.86); h_SL1L160->SetBinContent(45,24207.14); h_SL1L160->SetBinContent(46,22646.43); h_SL1L160->SetBinContent(47,23178.57); h_SL1L160->SetBinContent(48,21250); h_SL1L160->SetBinContent(49,21992.86); h_SL1L160->SetBinContent(50,22260.71); h_SL1L160->SetBinContent(51,21967.86); h_SL1L160->SetBinContent(52,22621.43); h_SL1L160->SetBinContent(53,22750); h_SL1L160->SetBinContent(54,22589.29); h_SL1L160->SetBinContent(55,23260.71); h_SL1L160->SetBinContent(56,24935.71); h_SL1L160->SetBinContent(57,28575); h_SL1L160->SetBinContent(58,29892.86); h_SL1L160->SetBinContent(59,32207.14); h_SL1L160->SetMaximum(150897.2); 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,57264.29); h_SL1L261->SetBinContent(2,53660.71); h_SL1L261->SetBinContent(3,53828.57); h_SL1L261->SetBinContent(4,54607.14); h_SL1L261->SetBinContent(5,54142.86); h_SL1L261->SetBinContent(6,58600); h_SL1L261->SetBinContent(7,56489.29); h_SL1L261->SetBinContent(8,56714.29); h_SL1L261->SetBinContent(9,54725); h_SL1L261->SetBinContent(10,48689.29); h_SL1L261->SetBinContent(11,46700); h_SL1L261->SetBinContent(12,47471.43); h_SL1L261->SetBinContent(13,50782.14); h_SL1L261->SetBinContent(14,53232.14); h_SL1L261->SetBinContent(15,53578.57); h_SL1L261->SetBinContent(16,52003.57); h_SL1L261->SetBinContent(17,52521.43); h_SL1L261->SetBinContent(18,53828.57); h_SL1L261->SetBinContent(19,56275); h_SL1L261->SetBinContent(20,55860.71); h_SL1L261->SetBinContent(21,57239.29); h_SL1L261->SetBinContent(22,59189.29); h_SL1L261->SetBinContent(23,59160.71); h_SL1L261->SetBinContent(24,59575); h_SL1L261->SetBinContent(25,60953.57); h_SL1L261->SetBinContent(26,58307.14); h_SL1L261->SetBinContent(27,56410.71); h_SL1L261->SetBinContent(28,55085.71); h_SL1L261->SetBinContent(29,57428.57); h_SL1L261->SetBinContent(30,57260.71); h_SL1L261->SetBinContent(31,57628.57); h_SL1L261->SetBinContent(32,56539.29); h_SL1L261->SetBinContent(33,66782.14); h_SL1L261->SetBinContent(34,98021.43); h_SL1L261->SetBinContent(35,107307.1); h_SL1L261->SetBinContent(36,111785.7); h_SL1L261->SetBinContent(37,114100); h_SL1L261->SetBinContent(38,110657.1); h_SL1L261->SetBinContent(39,98796.43); h_SL1L261->SetBinContent(40,63435.71); h_SL1L261->SetBinContent(41,51785.71); h_SL1L261->SetBinContent(42,48585.71); h_SL1L261->SetBinContent(43,48057.14); h_SL1L261->SetBinContent(44,46510.71); h_SL1L261->SetBinContent(45,46989.29); h_SL1L261->SetBinContent(46,47378.57); h_SL1L261->SetBinContent(47,48285.71); h_SL1L261->SetBinContent(48,45532.14); h_SL1L261->SetBinContent(49,43742.86); h_SL1L261->SetBinContent(50,44353.57); h_SL1L261->SetBinContent(51,42435.71); h_SL1L261->SetBinContent(52,40664.29); h_SL1L261->SetBinContent(53,42428.57); h_SL1L261->SetBinContent(54,42328.57); h_SL1L261->SetBinContent(55,43014.29); h_SL1L261->SetBinContent(56,43039.29); h_SL1L261->SetBinContent(57,41450); h_SL1L261->SetBinContent(58,40635.71); h_SL1L261->SetBinContent(59,40046.43); h_SL1L261->SetMaximum(131215); 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,53571.43); h_SL1L362->SetBinContent(2,52767.86); h_SL1L362->SetBinContent(3,53596.43); h_SL1L362->SetBinContent(4,51867.86); h_SL1L362->SetBinContent(5,54803.57); h_SL1L362->SetBinContent(6,55500); h_SL1L362->SetBinContent(7,55217.86); h_SL1L362->SetBinContent(8,54325); h_SL1L362->SetBinContent(9,49453.57); h_SL1L362->SetBinContent(10,46300); h_SL1L362->SetBinContent(11,45475); h_SL1L362->SetBinContent(12,47889.29); h_SL1L362->SetBinContent(13,50817.86); h_SL1L362->SetBinContent(14,51521.43); h_SL1L362->SetBinContent(15,51746.43); h_SL1L362->SetBinContent(16,49385.71); h_SL1L362->SetBinContent(17,51192.86); h_SL1L362->SetBinContent(18,52875); h_SL1L362->SetBinContent(19,55007.14); h_SL1L362->SetBinContent(20,53975); h_SL1L362->SetBinContent(21,57203.57); h_SL1L362->SetBinContent(22,57346.43); h_SL1L362->SetBinContent(23,58428.57); h_SL1L362->SetBinContent(24,59246.43); h_SL1L362->SetBinContent(25,58164.29); h_SL1L362->SetBinContent(26,54957.14); h_SL1L362->SetBinContent(27,55103.57); h_SL1L362->SetBinContent(28,55150); h_SL1L362->SetBinContent(29,56514.29); h_SL1L362->SetBinContent(30,55860.71); h_SL1L362->SetBinContent(31,55307.14); h_SL1L362->SetBinContent(32,55400); h_SL1L362->SetBinContent(33,83803.57); h_SL1L362->SetBinContent(34,101739.3); h_SL1L362->SetBinContent(35,109317.9); h_SL1L362->SetBinContent(36,111989.3); h_SL1L362->SetBinContent(37,112567.9); h_SL1L362->SetBinContent(38,103910.7); h_SL1L362->SetBinContent(39,81885.71); h_SL1L362->SetBinContent(40,51850); h_SL1L362->SetBinContent(41,48407.14); h_SL1L362->SetBinContent(42,47353.57); h_SL1L362->SetBinContent(43,46225); h_SL1L362->SetBinContent(44,44932.14); h_SL1L362->SetBinContent(45,44932.14); h_SL1L362->SetBinContent(46,45403.57); h_SL1L362->SetBinContent(47,46039.29); h_SL1L362->SetBinContent(48,43514.29); h_SL1L362->SetBinContent(49,42357.14); h_SL1L362->SetBinContent(50,42592.86); h_SL1L362->SetBinContent(51,39832.14); h_SL1L362->SetBinContent(52,40735.71); h_SL1L362->SetBinContent(53,41225); h_SL1L362->SetBinContent(54,40221.43); h_SL1L362->SetBinContent(55,41967.86); h_SL1L362->SetBinContent(56,40242.86); h_SL1L362->SetBinContent(57,40753.57); h_SL1L362->SetBinContent(58,39332.14); h_SL1L362->SetBinContent(59,38625); h_SL1L362->SetMaximum(131215); 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,33971.43); h_SL1L463->SetBinContent(3,31882.14); h_SL1L463->SetBinContent(4,30585.71); h_SL1L463->SetBinContent(5,27835.71); h_SL1L463->SetBinContent(6,29589.29); h_SL1L463->SetBinContent(7,28932.14); h_SL1L463->SetBinContent(8,30525); h_SL1L463->SetBinContent(9,31196.43); h_SL1L463->SetBinContent(10,30996.43); h_SL1L463->SetBinContent(11,31703.57); h_SL1L463->SetBinContent(12,32453.57); h_SL1L463->SetBinContent(13,33471.43); h_SL1L463->SetBinContent(14,34992.86); h_SL1L463->SetBinContent(15,34067.86); h_SL1L463->SetBinContent(16,31421.43); h_SL1L463->SetBinContent(17,29614.29); h_SL1L463->SetBinContent(18,27796.43); h_SL1L463->SetBinContent(19,28982.14); h_SL1L463->SetBinContent(20,28839.29); h_SL1L463->SetBinContent(21,28207.14); h_SL1L463->SetBinContent(22,29428.57); h_SL1L463->SetBinContent(23,28632.14); h_SL1L463->SetBinContent(24,29275); h_SL1L463->SetBinContent(25,26307.14); h_SL1L463->SetBinContent(26,27178.57); h_SL1L463->SetBinContent(27,25789.29); h_SL1L463->SetBinContent(28,25657.14); h_SL1L463->SetBinContent(29,25139.29); h_SL1L463->SetBinContent(30,25464.29); h_SL1L463->SetBinContent(31,24878.57); h_SL1L463->SetBinContent(32,22942.86); h_SL1L463->SetBinContent(33,23057.14); h_SL1L463->SetBinContent(34,31278.57); h_SL1L463->SetBinContent(35,35307.14); h_SL1L463->SetBinContent(36,33782.14); h_SL1L463->SetBinContent(37,29335.71); h_SL1L463->SetBinContent(38,31300); h_SL1L463->SetBinContent(39,31382.14); h_SL1L463->SetBinContent(40,19564.29); h_SL1L463->SetBinContent(41,17592.86); h_SL1L463->SetBinContent(42,17239.29); h_SL1L463->SetBinContent(43,17757.14); h_SL1L463->SetBinContent(44,17617.86); h_SL1L463->SetBinContent(45,15682.14); h_SL1L463->SetBinContent(46,16146.43); h_SL1L463->SetBinContent(47,15785.71); h_SL1L463->SetBinContent(48,14950); h_SL1L463->SetBinContent(49,14089.29); h_SL1L463->SetBinContent(50,14364.29); h_SL1L463->SetBinContent(51,14210.71); h_SL1L463->SetBinContent(52,13814.29); h_SL1L463->SetBinContent(53,14285.71); h_SL1L463->SetBinContent(54,14725); h_SL1L463->SetBinContent(56,15721.43); h_SL1L463->SetBinContent(57,17610.71); h_SL1L463->SetBinContent(58,22078.57); h_SL1L463->SetBinContent(59,22896.43); h_SL1L463->SetMaximum(131215); 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 6828"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }