void RatesPerCell_Removing_noisy_cells_run_7383_SL2() { //=========Macro generated from canvas: c/c //========= (Fri Dec 21 17:15:56 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-14922.98,67.5,134306.8); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7383",60,0,60); h_SL2L164->SetBinContent(1,49535.71); h_SL2L164->SetBinContent(2,62300); h_SL2L164->SetBinContent(3,73714.28); h_SL2L164->SetBinContent(4,75650); h_SL2L164->SetBinContent(5,76207.14); h_SL2L164->SetBinContent(6,72628.57); h_SL2L164->SetBinContent(7,66935.71); h_SL2L164->SetBinContent(8,63728.57); h_SL2L164->SetBinContent(9,69464.28); h_SL2L164->SetBinContent(10,70664.28); h_SL2L164->SetBinContent(11,72600); h_SL2L164->SetBinContent(12,70800); h_SL2L164->SetBinContent(13,63900); h_SL2L164->SetBinContent(14,63164.29); h_SL2L164->SetBinContent(15,62271.43); h_SL2L164->SetBinContent(16,61628.57); h_SL2L164->SetBinContent(17,57714.29); h_SL2L164->SetBinContent(18,53114.29); h_SL2L164->SetBinContent(19,51585.71); h_SL2L164->SetBinContent(20,54378.57); h_SL2L164->SetBinContent(21,54521.43); h_SL2L164->SetBinContent(22,53342.86); h_SL2L164->SetBinContent(23,51257.14); h_SL2L164->SetBinContent(24,48392.86); h_SL2L164->SetBinContent(25,45935.71); h_SL2L164->SetBinContent(26,44578.57); h_SL2L164->SetBinContent(27,44278.57); h_SL2L164->SetBinContent(28,43550); h_SL2L164->SetBinContent(29,43457.14); h_SL2L164->SetBinContent(30,41450); h_SL2L164->SetBinContent(31,40864.29); h_SL2L164->SetBinContent(32,42407.14); h_SL2L164->SetBinContent(33,44242.86); h_SL2L164->SetBinContent(34,45385.71); h_SL2L164->SetBinContent(35,7.142857); h_SL2L164->SetBinContent(36,46685.71); h_SL2L164->SetBinContent(37,54628.57); h_SL2L164->SetBinContent(38,50742.86); h_SL2L164->SetBinContent(39,53971.43); h_SL2L164->SetBinContent(40,75114.28); h_SL2L164->SetBinContent(41,90271.43); h_SL2L164->SetBinContent(42,57864.29); h_SL2L164->SetBinContent(43,57800); h_SL2L164->SetBinContent(44,55428.57); h_SL2L164->SetBinContent(45,47464.29); h_SL2L164->SetBinContent(46,45364.29); h_SL2L164->SetBinContent(47,44935.71); h_SL2L164->SetBinContent(48,43464.29); h_SL2L164->SetBinContent(49,45242.86); h_SL2L164->SetBinContent(50,44342.86); h_SL2L164->SetBinContent(51,47650); h_SL2L164->SetBinContent(52,52335.71); h_SL2L164->SetBinContent(53,58564.29); h_SL2L164->SetBinContent(54,61335.71); h_SL2L164->SetBinContent(55,59592.86); h_SL2L164->SetBinContent(56,50050); h_SL2L164->SetBinContent(57,40964.29); h_SL2L164->SetMaximum(119383.8); 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,39457.14); h_SL2L265->SetBinContent(2,59635.71); h_SL2L265->SetBinContent(3,65814.28); h_SL2L265->SetBinContent(4,75064.28); h_SL2L265->SetBinContent(5,74192.86); h_SL2L265->SetBinContent(6,72271.43); h_SL2L265->SetBinContent(7,69828.57); h_SL2L265->SetBinContent(8,60957.14); h_SL2L265->SetBinContent(9,64857.14); h_SL2L265->SetBinContent(10,66600); h_SL2L265->SetBinContent(11,69700); h_SL2L265->SetBinContent(12,70621.43); h_SL2L265->SetBinContent(13,64907.14); h_SL2L265->SetBinContent(14,62064.29); h_SL2L265->SetBinContent(15,60328.57); h_SL2L265->SetBinContent(16,61700); h_SL2L265->SetBinContent(17,57414.29); h_SL2L265->SetBinContent(18,53892.86); h_SL2L265->SetBinContent(19,50871.43); h_SL2L265->SetBinContent(20,53335.71); h_SL2L265->SetBinContent(21,54278.57); h_SL2L265->SetBinContent(22,51364.29); h_SL2L265->SetBinContent(23,51814.29); h_SL2L265->SetBinContent(24,48028.57); h_SL2L265->SetBinContent(25,46435.71); h_SL2L265->SetBinContent(26,44742.86); h_SL2L265->SetBinContent(27,43250); h_SL2L265->SetBinContent(28,42828.57); h_SL2L265->SetBinContent(29,41950); h_SL2L265->SetBinContent(30,42000); h_SL2L265->SetBinContent(31,38478.57); h_SL2L265->SetBinContent(32,42357.14); h_SL2L265->SetBinContent(33,42071.43); h_SL2L265->SetBinContent(34,43185.71); h_SL2L265->SetBinContent(35,43642.86); h_SL2L265->SetBinContent(36,44035.71); h_SL2L265->SetBinContent(37,46971.43); h_SL2L265->SetBinContent(38,47942.86); h_SL2L265->SetBinContent(39,49528.57); h_SL2L265->SetBinContent(40,51992.86); h_SL2L265->SetBinContent(41,49564.29); h_SL2L265->SetBinContent(42,48507.14); h_SL2L265->SetBinContent(43,48864.29); h_SL2L265->SetBinContent(44,48321.43); h_SL2L265->SetBinContent(45,46521.43); h_SL2L265->SetBinContent(46,44378.57); h_SL2L265->SetBinContent(47,43235.71); h_SL2L265->SetBinContent(48,42371.43); h_SL2L265->SetBinContent(49,42792.86); h_SL2L265->SetBinContent(50,42935.71); h_SL2L265->SetBinContent(51,41821.43); h_SL2L265->SetBinContent(52,47557.14); h_SL2L265->SetBinContent(53,53707.14); h_SL2L265->SetBinContent(54,56500); h_SL2L265->SetBinContent(55,59321.43); h_SL2L265->SetBinContent(56,52821.43); h_SL2L265->SetBinContent(57,47292.86); h_SL2L265->SetMaximum(103812.1); 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,47714.29); h_SL2L366->SetBinContent(2,58785.71); h_SL2L366->SetBinContent(3,71807.14); h_SL2L366->SetBinContent(4,71807.14); h_SL2L366->SetBinContent(5,70657.14); h_SL2L366->SetBinContent(6,67400); h_SL2L366->SetBinContent(7,61678.57); h_SL2L366->SetBinContent(8,59642.86); h_SL2L366->SetBinContent(9,64921.43); h_SL2L366->SetBinContent(10,67292.86); h_SL2L366->SetBinContent(11,67492.86); h_SL2L366->SetBinContent(12,65900); h_SL2L366->SetBinContent(13,60792.86); h_SL2L366->SetBinContent(14,59828.57); h_SL2L366->SetBinContent(15,59714.29); h_SL2L366->SetBinContent(16,57128.57); h_SL2L366->SetBinContent(17,53550); h_SL2L366->SetBinContent(18,50792.86); h_SL2L366->SetBinContent(19,49157.14); h_SL2L366->SetBinContent(20,50578.57); h_SL2L366->SetBinContent(21,50892.86); h_SL2L366->SetBinContent(22,50100); h_SL2L366->SetBinContent(23,47885.71); h_SL2L366->SetBinContent(24,45278.57); h_SL2L366->SetBinContent(25,44114.29); h_SL2L366->SetBinContent(26,42200); h_SL2L366->SetBinContent(27,43085.71); h_SL2L366->SetBinContent(28,41707.14); h_SL2L366->SetBinContent(29,42164.29); h_SL2L366->SetBinContent(30,39450); h_SL2L366->SetBinContent(31,38650); h_SL2L366->SetBinContent(32,41014.29); h_SL2L366->SetBinContent(33,41542.86); h_SL2L366->SetBinContent(34,42657.14); h_SL2L366->SetBinContent(35,41592.86); h_SL2L366->SetBinContent(36,43528.57); h_SL2L366->SetBinContent(37,45271.43); h_SL2L366->SetBinContent(38,47278.57); h_SL2L366->SetBinContent(39,47028.57); h_SL2L366->SetBinContent(40,48014.29); h_SL2L366->SetBinContent(41,47800); h_SL2L366->SetBinContent(42,46621.43); h_SL2L366->SetBinContent(43,47100); h_SL2L366->SetBinContent(44,45028.57); h_SL2L366->SetBinContent(45,43621.43); h_SL2L366->SetBinContent(46,42357.14); h_SL2L366->SetBinContent(47,41564.29); h_SL2L366->SetBinContent(48,41064.29); h_SL2L366->SetBinContent(49,42735.71); h_SL2L366->SetBinContent(50,41878.57); h_SL2L366->SetBinContent(51,43207.14); h_SL2L366->SetBinContent(52,47128.57); h_SL2L366->SetBinContent(53,53657.14); h_SL2L366->SetBinContent(54,56014.29); h_SL2L366->SetBinContent(55,56892.86); h_SL2L366->SetBinContent(56,47007.14); h_SL2L366->SetBinContent(57,44442.86); h_SL2L366->SetMaximum(103812.1); 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,54414.29); h_SL2L467->SetBinContent(3,63107.14); h_SL2L467->SetBinContent(4,69485.71); h_SL2L467->SetBinContent(5,70221.43); h_SL2L467->SetBinContent(6,65292.86); h_SL2L467->SetBinContent(7,63264.29); h_SL2L467->SetBinContent(8,56671.43); h_SL2L467->SetBinContent(9,62200); h_SL2L467->SetBinContent(10,64050); h_SL2L467->SetBinContent(11,66107.14); h_SL2L467->SetBinContent(12,64821.43); h_SL2L467->SetBinContent(13,59457.14); h_SL2L467->SetBinContent(14,58907.14); h_SL2L467->SetBinContent(15,57035.71); h_SL2L467->SetBinContent(16,57907.14); h_SL2L467->SetBinContent(17,53250); h_SL2L467->SetBinContent(18,49785.71); h_SL2L467->SetBinContent(19,47564.29); h_SL2L467->SetBinContent(20,50235.71); h_SL2L467->SetBinContent(21,50300); h_SL2L467->SetBinContent(22,49335.71); h_SL2L467->SetBinContent(23,48600); h_SL2L467->SetBinContent(24,44964.29); h_SL2L467->SetBinContent(25,43585.71); h_SL2L467->SetBinContent(26,42335.71); h_SL2L467->SetBinContent(27,41692.86); h_SL2L467->SetBinContent(28,41785.71); h_SL2L467->SetBinContent(29,40250); h_SL2L467->SetBinContent(30,41085.71); h_SL2L467->SetBinContent(31,37214.29); h_SL2L467->SetBinContent(32,39400); h_SL2L467->SetBinContent(33,40350); h_SL2L467->SetBinContent(34,42192.86); h_SL2L467->SetBinContent(35,42114.29); h_SL2L467->SetBinContent(36,42185.71); h_SL2L467->SetBinContent(37,44714.29); h_SL2L467->SetBinContent(38,46157.14); h_SL2L467->SetBinContent(39,46721.43); h_SL2L467->SetBinContent(40,45685.71); h_SL2L467->SetBinContent(41,45228.57); h_SL2L467->SetBinContent(42,45950); h_SL2L467->SetBinContent(43,45328.57); h_SL2L467->SetBinContent(44,45200); h_SL2L467->SetBinContent(45,43100); h_SL2L467->SetBinContent(46,42264.29); h_SL2L467->SetBinContent(47,41221.43); h_SL2L467->SetBinContent(48,40550); h_SL2L467->SetBinContent(49,40078.57); h_SL2L467->SetBinContent(50,41378.57); h_SL2L467->SetBinContent(51,39400); h_SL2L467->SetBinContent(52,45950); h_SL2L467->SetBinContent(53,49878.57); h_SL2L467->SetBinContent(54,53607.14); h_SL2L467->SetBinContent(55,54935.71); h_SL2L467->SetBinContent(56,49914.29); h_SL2L467->SetBinContent(57,43350); h_SL2L467->SetMaximum(103812.1); 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 7383"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }