void RatesPerCell_Removing_noisy_cells_run_7630_SL2() { //=========Macro generated from canvas: c/c //========= (Fri Jan 18 19:19:36 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11621.47,67.5,104593.2); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7630",60,0,60); h_SL2L164->SetBinContent(1,30914.29); h_SL2L164->SetBinContent(2,39564.29); h_SL2L164->SetBinContent(3,46335.71); h_SL2L164->SetBinContent(4,49114.29); h_SL2L164->SetBinContent(5,49892.86); h_SL2L164->SetBinContent(6,47371.43); h_SL2L164->SetBinContent(7,42314.29); h_SL2L164->SetBinContent(8,40907.14); h_SL2L164->SetBinContent(9,45964.29); h_SL2L164->SetBinContent(10,46885.71); h_SL2L164->SetBinContent(11,47800); h_SL2L164->SetBinContent(12,46528.57); h_SL2L164->SetBinContent(13,47457.14); h_SL2L164->SetBinContent(14,46557.14); h_SL2L164->SetBinContent(15,47264.29); h_SL2L164->SetBinContent(16,45585.71); h_SL2L164->SetBinContent(17,45157.14); h_SL2L164->SetBinContent(18,44371.43); h_SL2L164->SetBinContent(19,43864.29); h_SL2L164->SetBinContent(20,42735.71); h_SL2L164->SetBinContent(21,41114.29); h_SL2L164->SetBinContent(22,38021.43); h_SL2L164->SetBinContent(23,35985.71); h_SL2L164->SetBinContent(24,33078.57); h_SL2L164->SetBinContent(25,31635.71); h_SL2L164->SetBinContent(26,30285.71); h_SL2L164->SetBinContent(27,30478.57); h_SL2L164->SetBinContent(28,31107.14); h_SL2L164->SetBinContent(29,30757.14); h_SL2L164->SetBinContent(30,30121.43); h_SL2L164->SetBinContent(31,29321.43); h_SL2L164->SetBinContent(32,30692.86); h_SL2L164->SetBinContent(33,32285.71); h_SL2L164->SetBinContent(34,31357.14); h_SL2L164->SetBinContent(36,31014.29); h_SL2L164->SetBinContent(37,39021.43); h_SL2L164->SetBinContent(38,35828.57); h_SL2L164->SetBinContent(39,35857.14); h_SL2L164->SetBinContent(40,70300); h_SL2L164->SetBinContent(41,51664.29); h_SL2L164->SetBinContent(42,40357.14); h_SL2L164->SetBinContent(43,39607.14); h_SL2L164->SetBinContent(44,39000); h_SL2L164->SetBinContent(45,29957.14); h_SL2L164->SetBinContent(46,29042.86); h_SL2L164->SetBinContent(47,27757.14); h_SL2L164->SetBinContent(48,27814.29); h_SL2L164->SetBinContent(49,28228.57); h_SL2L164->SetBinContent(50,28692.86); h_SL2L164->SetBinContent(51,30807.14); h_SL2L164->SetBinContent(52,33914.29); h_SL2L164->SetBinContent(53,37671.43); h_SL2L164->SetBinContent(54,39242.86); h_SL2L164->SetBinContent(55,38921.43); h_SL2L164->SetBinContent(56,31800); h_SL2L164->SetBinContent(57,25285.71); h_SL2L164->SetMaximum(92971.75); 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,23950); h_SL2L265->SetBinContent(2,36364.29); h_SL2L265->SetBinContent(3,41500); h_SL2L265->SetBinContent(4,48014.29); h_SL2L265->SetBinContent(5,47600); h_SL2L265->SetBinContent(6,46142.86); h_SL2L265->SetBinContent(7,44435.71); h_SL2L265->SetBinContent(8,38607.14); h_SL2L265->SetBinContent(9,42442.86); h_SL2L265->SetBinContent(10,44792.86); h_SL2L265->SetBinContent(11,46450); h_SL2L265->SetBinContent(12,46271.43); h_SL2L265->SetBinContent(13,45371.43); h_SL2L265->SetBinContent(14,46128.57); h_SL2L265->SetBinContent(15,45521.43); h_SL2L265->SetBinContent(16,45035.71); h_SL2L265->SetBinContent(17,44107.14); h_SL2L265->SetBinContent(18,43385.71); h_SL2L265->SetBinContent(19,42700); h_SL2L265->SetBinContent(20,41564.29); h_SL2L265->SetBinContent(21,39785.71); h_SL2L265->SetBinContent(22,37407.14); h_SL2L265->SetBinContent(23,36257.14); h_SL2L265->SetBinContent(24,33300); h_SL2L265->SetBinContent(25,30907.14); h_SL2L265->SetBinContent(26,30792.86); h_SL2L265->SetBinContent(27,29185.71); h_SL2L265->SetBinContent(28,30592.86); h_SL2L265->SetBinContent(29,28964.29); h_SL2L265->SetBinContent(30,29500); h_SL2L265->SetBinContent(31,27700); h_SL2L265->SetBinContent(32,29007.14); h_SL2L265->SetBinContent(33,30328.57); h_SL2L265->SetBinContent(34,30642.86); h_SL2L265->SetBinContent(35,29150); h_SL2L265->SetBinContent(36,28957.14); h_SL2L265->SetBinContent(37,32100); h_SL2L265->SetBinContent(38,32671.43); h_SL2L265->SetBinContent(39,31578.57); h_SL2L265->SetBinContent(40,33792.86); h_SL2L265->SetBinContent(41,31385.71); h_SL2L265->SetBinContent(42,31614.29); h_SL2L265->SetBinContent(43,32564.29); h_SL2L265->SetBinContent(44,30728.57); h_SL2L265->SetBinContent(45,30721.43); h_SL2L265->SetBinContent(46,29157.14); h_SL2L265->SetBinContent(47,28085.71); h_SL2L265->SetBinContent(48,27014.29); h_SL2L265->SetBinContent(49,27400); h_SL2L265->SetBinContent(50,28342.86); h_SL2L265->SetBinContent(51,28028.57); h_SL2L265->SetBinContent(52,31814.29); h_SL2L265->SetBinContent(53,34942.86); h_SL2L265->SetBinContent(54,37478.57); h_SL2L265->SetBinContent(55,38835.71); h_SL2L265->SetBinContent(56,33985.71); h_SL2L265->SetBinContent(57,29671.43); h_SL2L265->SetMaximum(80845); 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,29364.29); h_SL2L366->SetBinContent(2,35600); h_SL2L366->SetBinContent(3,45121.43); h_SL2L366->SetBinContent(4,46735.71); h_SL2L366->SetBinContent(5,46735.71); h_SL2L366->SetBinContent(6,42935.71); h_SL2L366->SetBinContent(7,41035.71); h_SL2L366->SetBinContent(8,39350); h_SL2L366->SetBinContent(9,43135.71); h_SL2L366->SetBinContent(10,43028.57); h_SL2L366->SetBinContent(11,44421.43); h_SL2L366->SetBinContent(12,44828.57); h_SL2L366->SetBinContent(13,44278.57); h_SL2L366->SetBinContent(14,44035.71); h_SL2L366->SetBinContent(15,44600); h_SL2L366->SetBinContent(16,43235.71); h_SL2L366->SetBinContent(17,41442.86); h_SL2L366->SetBinContent(18,41721.43); h_SL2L366->SetBinContent(19,41064.29); h_SL2L366->SetBinContent(20,39542.86); h_SL2L366->SetBinContent(21,38671.43); h_SL2L366->SetBinContent(22,35607.14); h_SL2L366->SetBinContent(23,33064.29); h_SL2L366->SetBinContent(24,30364.29); h_SL2L366->SetBinContent(25,30207.14); h_SL2L366->SetBinContent(26,28835.71); h_SL2L366->SetBinContent(27,28321.43); h_SL2L366->SetBinContent(28,29600); h_SL2L366->SetBinContent(29,28985.71); h_SL2L366->SetBinContent(30,27450); h_SL2L366->SetBinContent(31,27607.14); h_SL2L366->SetBinContent(32,28907.14); h_SL2L366->SetBinContent(33,29642.86); h_SL2L366->SetBinContent(34,29878.57); h_SL2L366->SetBinContent(35,28721.43); h_SL2L366->SetBinContent(36,29721.43); h_SL2L366->SetBinContent(37,31278.57); h_SL2L366->SetBinContent(38,30900); h_SL2L366->SetBinContent(39,30335.71); h_SL2L366->SetBinContent(40,31014.29); h_SL2L366->SetBinContent(41,29857.14); h_SL2L366->SetBinContent(42,30407.14); h_SL2L366->SetBinContent(43,31028.57); h_SL2L366->SetBinContent(44,29371.43); h_SL2L366->SetBinContent(45,29557.14); h_SL2L366->SetBinContent(46,28007.14); h_SL2L366->SetBinContent(47,27292.86); h_SL2L366->SetBinContent(48,26264.29); h_SL2L366->SetBinContent(49,27092.86); h_SL2L366->SetBinContent(50,25792.86); h_SL2L366->SetBinContent(51,28464.29); h_SL2L366->SetBinContent(52,32228.57); h_SL2L366->SetBinContent(53,34385.71); h_SL2L366->SetBinContent(54,36835.71); h_SL2L366->SetBinContent(55,35807.14); h_SL2L366->SetBinContent(56,29728.57); h_SL2L366->SetBinContent(57,27814.29); h_SL2L366->SetMaximum(80845); 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,33971.43); h_SL2L467->SetBinContent(3,39235.71); h_SL2L467->SetBinContent(4,44085.71); h_SL2L467->SetBinContent(5,46650); h_SL2L467->SetBinContent(6,43814.29); h_SL2L467->SetBinContent(7,41700); h_SL2L467->SetBinContent(8,36350); h_SL2L467->SetBinContent(9,40607.14); h_SL2L467->SetBinContent(10,42200); h_SL2L467->SetBinContent(11,43835.71); h_SL2L467->SetBinContent(12,43792.86); h_SL2L467->SetBinContent(13,43642.86); h_SL2L467->SetBinContent(14,42421.43); h_SL2L467->SetBinContent(15,42935.71); h_SL2L467->SetBinContent(16,42771.43); h_SL2L467->SetBinContent(17,41278.57); h_SL2L467->SetBinContent(18,40842.86); h_SL2L467->SetBinContent(19,40435.71); h_SL2L467->SetBinContent(20,39014.29); h_SL2L467->SetBinContent(21,37614.29); h_SL2L467->SetBinContent(22,36414.29); h_SL2L467->SetBinContent(23,33757.14); h_SL2L467->SetBinContent(24,31671.43); h_SL2L467->SetBinContent(25,29135.71); h_SL2L467->SetBinContent(26,28142.86); h_SL2L467->SetBinContent(27,28221.43); h_SL2L467->SetBinContent(28,27600); h_SL2L467->SetBinContent(29,28035.71); h_SL2L467->SetBinContent(30,28214.29); h_SL2L467->SetBinContent(31,26850); h_SL2L467->SetBinContent(32,27571.43); h_SL2L467->SetBinContent(33,28771.43); h_SL2L467->SetBinContent(34,27971.43); h_SL2L467->SetBinContent(35,29021.43); h_SL2L467->SetBinContent(36,28650); h_SL2L467->SetBinContent(37,28678.57); h_SL2L467->SetBinContent(38,31071.43); h_SL2L467->SetBinContent(39,31185.71); h_SL2L467->SetBinContent(40,29878.57); h_SL2L467->SetBinContent(41,29150); h_SL2L467->SetBinContent(42,29542.86); h_SL2L467->SetBinContent(43,29492.86); h_SL2L467->SetBinContent(44,29257.14); h_SL2L467->SetBinContent(45,28707.14); h_SL2L467->SetBinContent(46,27614.29); h_SL2L467->SetBinContent(47,27021.43); h_SL2L467->SetBinContent(48,25621.43); h_SL2L467->SetBinContent(49,26478.57); h_SL2L467->SetBinContent(50,27207.14); h_SL2L467->SetBinContent(51,25664.29); h_SL2L467->SetBinContent(52,30178.57); h_SL2L467->SetBinContent(53,33207.14); h_SL2L467->SetBinContent(54,34635.71); h_SL2L467->SetBinContent(55,37042.86); h_SL2L467->SetBinContent(56,32050); h_SL2L467->SetBinContent(57,27535.71); h_SL2L467->SetMaximum(80845); 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 7630"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }