void RatesPerCell_Removing_noisy_cells_run_7382_SL2() { //=========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,-12201.21,67.5,109810.9); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7382",60,0,60); h_SL2L164->SetBinContent(1,35385.71); h_SL2L164->SetBinContent(2,45357.14); h_SL2L164->SetBinContent(3,54021.43); h_SL2L164->SetBinContent(4,56971.43); h_SL2L164->SetBinContent(5,55835.71); h_SL2L164->SetBinContent(6,53064.29); h_SL2L164->SetBinContent(7,49271.43); h_SL2L164->SetBinContent(8,46228.57); h_SL2L164->SetBinContent(9,51150); h_SL2L164->SetBinContent(10,51064.29); h_SL2L164->SetBinContent(11,53685.71); h_SL2L164->SetBinContent(12,51200); h_SL2L164->SetBinContent(13,47592.86); h_SL2L164->SetBinContent(14,47150); h_SL2L164->SetBinContent(15,45514.29); h_SL2L164->SetBinContent(16,46514.29); h_SL2L164->SetBinContent(17,43321.43); h_SL2L164->SetBinContent(18,40235.71); h_SL2L164->SetBinContent(19,40785.71); h_SL2L164->SetBinContent(20,41742.86); h_SL2L164->SetBinContent(21,41085.71); h_SL2L164->SetBinContent(22,41464.29); h_SL2L164->SetBinContent(23,38857.14); h_SL2L164->SetBinContent(24,37385.71); h_SL2L164->SetBinContent(25,35950); h_SL2L164->SetBinContent(26,36292.86); h_SL2L164->SetBinContent(27,35485.71); h_SL2L164->SetBinContent(28,34707.14); h_SL2L164->SetBinContent(29,34214.29); h_SL2L164->SetBinContent(30,33542.86); h_SL2L164->SetBinContent(31,32057.14); h_SL2L164->SetBinContent(32,33857.14); h_SL2L164->SetBinContent(33,35050); h_SL2L164->SetBinContent(34,34678.57); h_SL2L164->SetBinContent(35,7.142857); h_SL2L164->SetBinContent(36,35371.43); h_SL2L164->SetBinContent(37,43735.71); h_SL2L164->SetBinContent(38,40671.43); h_SL2L164->SetBinContent(39,42378.57); h_SL2L164->SetBinContent(40,65885.71); h_SL2L164->SetBinContent(41,73807.14); h_SL2L164->SetBinContent(42,46564.29); h_SL2L164->SetBinContent(43,47000); h_SL2L164->SetBinContent(44,45250); h_SL2L164->SetBinContent(45,35464.29); h_SL2L164->SetBinContent(46,33828.57); h_SL2L164->SetBinContent(47,34042.86); h_SL2L164->SetBinContent(48,32992.86); h_SL2L164->SetBinContent(49,34385.71); h_SL2L164->SetBinContent(50,32314.29); h_SL2L164->SetBinContent(51,36392.86); h_SL2L164->SetBinContent(52,39600); h_SL2L164->SetBinContent(53,41714.29); h_SL2L164->SetBinContent(54,44557.14); h_SL2L164->SetBinContent(55,43114.29); h_SL2L164->SetBinContent(56,35971.43); h_SL2L164->SetBinContent(57,28171.43); h_SL2L164->SetMaximum(97609.7); h_SL2L164->SetEntries(60); h_SL2L164->SetDirectory(0); h_SL2L164->SetStats(0); h_SL2L164->SetLineWidth(2); h_SL2L164->GetXaxis()->SetTitle("Cell"); h_SL2L164->GetXaxis()->SetLabelFont(42); h_SL2L164->GetXaxis()->SetLabelSize(0.035); h_SL2L164->GetXaxis()->SetTitleSize(0.035); h_SL2L164->GetXaxis()->SetTitleFont(42); h_SL2L164->GetYaxis()->SetTitle("Hz"); h_SL2L164->GetYaxis()->SetLabelFont(42); h_SL2L164->GetYaxis()->SetLabelSize(0.035); h_SL2L164->GetYaxis()->SetTitleSize(0.035); h_SL2L164->GetYaxis()->SetTitleOffset(1.45); h_SL2L164->GetYaxis()->SetTitleFont(42); h_SL2L164->GetZaxis()->SetLabelFont(42); h_SL2L164->GetZaxis()->SetLabelSize(0.035); h_SL2L164->GetZaxis()->SetTitleSize(0.035); h_SL2L164->GetZaxis()->SetTitleFont(42); h_SL2L164->Draw(""); TH1D *h_SL2L265 = new TH1D("h_SL2L265","",60,0,60); h_SL2L265->SetBinContent(1,28521.43); h_SL2L265->SetBinContent(2,43142.86); h_SL2L265->SetBinContent(3,46642.86); h_SL2L265->SetBinContent(4,54192.86); h_SL2L265->SetBinContent(5,53842.86); h_SL2L265->SetBinContent(6,51571.43); h_SL2L265->SetBinContent(7,50492.86); h_SL2L265->SetBinContent(8,44900); h_SL2L265->SetBinContent(9,49192.86); h_SL2L265->SetBinContent(10,49428.57); h_SL2L265->SetBinContent(11,52150); h_SL2L265->SetBinContent(12,50950); h_SL2L265->SetBinContent(13,47450); h_SL2L265->SetBinContent(14,46221.43); h_SL2L265->SetBinContent(15,44528.57); h_SL2L265->SetBinContent(16,46135.71); h_SL2L265->SetBinContent(17,43007.14); h_SL2L265->SetBinContent(18,40871.43); h_SL2L265->SetBinContent(19,38350); h_SL2L265->SetBinContent(20,39350); h_SL2L265->SetBinContent(21,39871.43); h_SL2L265->SetBinContent(22,39900); h_SL2L265->SetBinContent(23,38564.29); h_SL2L265->SetBinContent(24,37950); h_SL2L265->SetBinContent(25,36407.14); h_SL2L265->SetBinContent(26,34421.43); h_SL2L265->SetBinContent(27,34450); h_SL2L265->SetBinContent(28,34264.29); h_SL2L265->SetBinContent(29,33685.71); h_SL2L265->SetBinContent(30,33857.14); h_SL2L265->SetBinContent(31,31035.71); h_SL2L265->SetBinContent(32,33150); h_SL2L265->SetBinContent(33,33292.86); h_SL2L265->SetBinContent(34,34000); h_SL2L265->SetBinContent(35,33350); h_SL2L265->SetBinContent(36,33564.29); h_SL2L265->SetBinContent(37,36335.71); h_SL2L265->SetBinContent(38,37492.86); h_SL2L265->SetBinContent(39,39371.43); h_SL2L265->SetBinContent(40,39378.57); h_SL2L265->SetBinContent(41,37121.43); h_SL2L265->SetBinContent(42,37342.86); h_SL2L265->SetBinContent(43,36750); h_SL2L265->SetBinContent(44,37100); h_SL2L265->SetBinContent(45,34792.86); h_SL2L265->SetBinContent(46,34207.14); h_SL2L265->SetBinContent(47,33714.29); h_SL2L265->SetBinContent(48,32550); h_SL2L265->SetBinContent(49,32342.86); h_SL2L265->SetBinContent(50,32621.43); h_SL2L265->SetBinContent(51,31800); h_SL2L265->SetBinContent(52,36507.14); h_SL2L265->SetBinContent(53,38921.43); h_SL2L265->SetBinContent(54,41421.43); h_SL2L265->SetBinContent(55,42785.71); h_SL2L265->SetBinContent(56,37421.43); h_SL2L265->SetBinContent(57,33714.29); h_SL2L265->SetMaximum(84878.21); h_SL2L265->SetEntries(60); h_SL2L265->SetDirectory(0); h_SL2L265->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL2L265->SetLineColor(ci); h_SL2L265->SetLineWidth(2); h_SL2L265->GetXaxis()->SetTitle("Cell"); h_SL2L265->GetXaxis()->SetLabelFont(42); h_SL2L265->GetXaxis()->SetLabelSize(0.035); h_SL2L265->GetXaxis()->SetTitleSize(0.035); h_SL2L265->GetXaxis()->SetTitleFont(42); h_SL2L265->GetYaxis()->SetTitle("Hz"); h_SL2L265->GetYaxis()->SetLabelFont(42); h_SL2L265->GetYaxis()->SetLabelSize(0.035); h_SL2L265->GetYaxis()->SetTitleSize(0.035); h_SL2L265->GetYaxis()->SetTitleOffset(1.45); h_SL2L265->GetYaxis()->SetTitleFont(42); h_SL2L265->GetZaxis()->SetLabelFont(42); h_SL2L265->GetZaxis()->SetLabelSize(0.035); h_SL2L265->GetZaxis()->SetTitleSize(0.035); h_SL2L265->GetZaxis()->SetTitleFont(42); h_SL2L265->Draw("same"); TH1D *h_SL2L366 = new TH1D("h_SL2L366","",60,0,60); h_SL2L366->SetBinContent(1,33757.14); h_SL2L366->SetBinContent(2,43021.43); h_SL2L366->SetBinContent(3,51528.57); h_SL2L366->SetBinContent(4,52271.43); h_SL2L366->SetBinContent(5,51592.86); h_SL2L366->SetBinContent(6,48814.29); h_SL2L366->SetBinContent(7,45764.29); h_SL2L366->SetBinContent(8,44757.14); h_SL2L366->SetBinContent(9,48950); h_SL2L366->SetBinContent(10,49335.71); h_SL2L366->SetBinContent(11,49971.43); h_SL2L366->SetBinContent(12,47957.14); h_SL2L366->SetBinContent(13,44742.86); h_SL2L366->SetBinContent(14,44057.14); h_SL2L366->SetBinContent(15,44464.29); h_SL2L366->SetBinContent(16,43592.86); h_SL2L366->SetBinContent(17,40557.14); h_SL2L366->SetBinContent(18,37514.29); h_SL2L366->SetBinContent(19,38271.43); h_SL2L366->SetBinContent(20,39378.57); h_SL2L366->SetBinContent(21,38635.71); h_SL2L366->SetBinContent(22,37928.57); h_SL2L366->SetBinContent(23,36292.86); h_SL2L366->SetBinContent(24,35428.57); h_SL2L366->SetBinContent(25,34878.57); h_SL2L366->SetBinContent(26,34535.71); h_SL2L366->SetBinContent(27,33857.14); h_SL2L366->SetBinContent(28,32928.57); h_SL2L366->SetBinContent(29,33178.57); h_SL2L366->SetBinContent(30,31607.14); h_SL2L366->SetBinContent(31,31100); h_SL2L366->SetBinContent(32,32000); h_SL2L366->SetBinContent(33,33171.43); h_SL2L366->SetBinContent(34,32250); h_SL2L366->SetBinContent(35,32021.43); h_SL2L366->SetBinContent(36,34578.57); h_SL2L366->SetBinContent(37,35450); h_SL2L366->SetBinContent(38,36042.86); h_SL2L366->SetBinContent(39,36400); h_SL2L366->SetBinContent(40,36535.71); h_SL2L366->SetBinContent(41,35921.43); h_SL2L366->SetBinContent(42,35671.43); h_SL2L366->SetBinContent(43,35328.57); h_SL2L366->SetBinContent(44,35257.14); h_SL2L366->SetBinContent(45,33707.14); h_SL2L366->SetBinContent(46,31664.29); h_SL2L366->SetBinContent(47,32571.43); h_SL2L366->SetBinContent(48,31314.29); h_SL2L366->SetBinContent(49,31821.43); h_SL2L366->SetBinContent(50,31014.29); h_SL2L366->SetBinContent(51,32278.57); h_SL2L366->SetBinContent(52,36100); h_SL2L366->SetBinContent(53,39492.86); h_SL2L366->SetBinContent(54,40707.14); h_SL2L366->SetBinContent(55,40935.71); h_SL2L366->SetBinContent(56,32900); h_SL2L366->SetBinContent(57,30964.29); h_SL2L366->SetMaximum(84878.21); h_SL2L366->SetEntries(60); h_SL2L366->SetDirectory(0); h_SL2L366->SetStats(0); ci = TColor::GetColor("#009900"); h_SL2L366->SetLineColor(ci); h_SL2L366->SetLineWidth(2); h_SL2L366->GetXaxis()->SetTitle("Cell"); h_SL2L366->GetXaxis()->SetLabelFont(42); h_SL2L366->GetXaxis()->SetLabelSize(0.035); h_SL2L366->GetXaxis()->SetTitleSize(0.035); h_SL2L366->GetXaxis()->SetTitleFont(42); h_SL2L366->GetYaxis()->SetTitle("Hz"); h_SL2L366->GetYaxis()->SetLabelFont(42); h_SL2L366->GetYaxis()->SetLabelSize(0.035); h_SL2L366->GetYaxis()->SetTitleSize(0.035); h_SL2L366->GetYaxis()->SetTitleOffset(1.45); h_SL2L366->GetYaxis()->SetTitleFont(42); h_SL2L366->GetZaxis()->SetLabelFont(42); h_SL2L366->GetZaxis()->SetLabelSize(0.035); h_SL2L366->GetZaxis()->SetTitleSize(0.035); h_SL2L366->GetZaxis()->SetTitleFont(42); h_SL2L366->Draw("same"); TH1D *h_SL2L467 = new TH1D("h_SL2L467","",60,0,60); h_SL2L467->SetBinContent(2,39600); h_SL2L467->SetBinContent(3,48064.29); h_SL2L467->SetBinContent(4,51671.43); h_SL2L467->SetBinContent(5,51392.86); h_SL2L467->SetBinContent(6,48078.57); h_SL2L467->SetBinContent(7,46707.14); h_SL2L467->SetBinContent(8,41607.14); h_SL2L467->SetBinContent(9,46507.14); h_SL2L467->SetBinContent(10,47907.14); h_SL2L467->SetBinContent(11,48364.29); h_SL2L467->SetBinContent(12,49100); h_SL2L467->SetBinContent(13,45350); h_SL2L467->SetBinContent(14,43635.71); h_SL2L467->SetBinContent(15,42685.71); h_SL2L467->SetBinContent(16,44192.86); h_SL2L467->SetBinContent(17,40450); h_SL2L467->SetBinContent(18,38571.43); h_SL2L467->SetBinContent(19,38107.14); h_SL2L467->SetBinContent(20,37264.29); h_SL2L467->SetBinContent(21,39142.86); h_SL2L467->SetBinContent(22,38142.86); h_SL2L467->SetBinContent(23,36735.71); h_SL2L467->SetBinContent(24,35450); h_SL2L467->SetBinContent(25,35357.14); h_SL2L467->SetBinContent(26,34164.29); h_SL2L467->SetBinContent(27,32807.14); h_SL2L467->SetBinContent(28,32900); h_SL2L467->SetBinContent(29,31864.29); h_SL2L467->SetBinContent(30,32821.43); h_SL2L467->SetBinContent(31,29814.29); h_SL2L467->SetBinContent(32,31035.71); h_SL2L467->SetBinContent(33,31621.43); h_SL2L467->SetBinContent(34,31335.71); h_SL2L467->SetBinContent(35,32357.14); h_SL2L467->SetBinContent(36,32957.14); h_SL2L467->SetBinContent(37,33207.14); h_SL2L467->SetBinContent(38,35214.29); h_SL2L467->SetBinContent(39,35528.57); h_SL2L467->SetBinContent(40,35442.86); h_SL2L467->SetBinContent(41,33500); h_SL2L467->SetBinContent(42,35185.71); h_SL2L467->SetBinContent(43,34864.29); h_SL2L467->SetBinContent(44,34257.14); h_SL2L467->SetBinContent(45,33992.86); h_SL2L467->SetBinContent(46,31992.86); h_SL2L467->SetBinContent(47,31985.71); h_SL2L467->SetBinContent(48,31628.57); h_SL2L467->SetBinContent(49,30842.86); h_SL2L467->SetBinContent(50,30578.57); h_SL2L467->SetBinContent(51,30050); h_SL2L467->SetBinContent(52,33728.57); h_SL2L467->SetBinContent(53,36435.71); h_SL2L467->SetBinContent(54,39392.86); h_SL2L467->SetBinContent(55,40992.86); h_SL2L467->SetBinContent(56,36328.57); h_SL2L467->SetBinContent(57,31007.14); h_SL2L467->SetMaximum(84878.21); h_SL2L467->SetEntries(60); h_SL2L467->SetDirectory(0); h_SL2L467->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL2L467->SetLineColor(ci); h_SL2L467->SetLineWidth(2); h_SL2L467->GetXaxis()->SetTitle("Cell"); h_SL2L467->GetXaxis()->SetLabelFont(42); h_SL2L467->GetXaxis()->SetLabelSize(0.035); h_SL2L467->GetXaxis()->SetTitleSize(0.035); h_SL2L467->GetXaxis()->SetTitleFont(42); h_SL2L467->GetYaxis()->SetTitle("Hz"); h_SL2L467->GetYaxis()->SetLabelFont(42); h_SL2L467->GetYaxis()->SetLabelSize(0.035); h_SL2L467->GetYaxis()->SetTitleSize(0.035); h_SL2L467->GetYaxis()->SetTitleOffset(1.45); h_SL2L467->GetYaxis()->SetTitleFont(42); h_SL2L467->GetZaxis()->SetLabelFont(42); h_SL2L467->GetZaxis()->SetLabelSize(0.035); h_SL2L467->GetZaxis()->SetTitleSize(0.035); h_SL2L467->GetZaxis()->SetTitleFont(42); h_SL2L467->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_SL2L1","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_SL2L2","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_SL2L3","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_SL2L4","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("SL2, run 7382"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }