void RatesPerCell_Removing_noisy_cells_run_7474_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Dec 23 11:45:43 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-14859.15,67.5,133732.4); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7474",60,0,60); h_SL2L164->SetBinContent(1,7421.429); h_SL2L164->SetBinContent(2,10321.43); h_SL2L164->SetBinContent(3,15257.14); h_SL2L164->SetBinContent(4,18942.86); h_SL2L164->SetBinContent(5,20771.43); h_SL2L164->SetBinContent(6,24085.71); h_SL2L164->SetBinContent(7,33828.57); h_SL2L164->SetBinContent(8,42078.57); h_SL2L164->SetBinContent(9,56328.57); h_SL2L164->SetBinContent(10,62771.43); h_SL2L164->SetBinContent(11,68607.14); h_SL2L164->SetBinContent(12,67864.28); h_SL2L164->SetBinContent(13,68235.71); h_SL2L164->SetBinContent(14,68650); h_SL2L164->SetBinContent(15,67800); h_SL2L164->SetBinContent(16,67635.71); h_SL2L164->SetBinContent(17,65900); h_SL2L164->SetBinContent(18,64228.57); h_SL2L164->SetBinContent(19,64250); h_SL2L164->SetBinContent(20,61078.57); h_SL2L164->SetBinContent(21,60414.29); h_SL2L164->SetBinContent(22,55664.29); h_SL2L164->SetBinContent(23,52507.14); h_SL2L164->SetBinContent(24,47950); h_SL2L164->SetBinContent(25,47078.57); h_SL2L164->SetBinContent(26,44185.71); h_SL2L164->SetBinContent(27,44600); h_SL2L164->SetBinContent(28,42842.86); h_SL2L164->SetBinContent(29,44228.57); h_SL2L164->SetBinContent(30,42007.14); h_SL2L164->SetBinContent(31,42064.29); h_SL2L164->SetBinContent(32,44857.14); h_SL2L164->SetBinContent(33,45307.14); h_SL2L164->SetBinContent(34,46128.57); h_SL2L164->SetBinContent(36,45657.14); h_SL2L164->SetBinContent(37,48521.43); h_SL2L164->SetBinContent(38,46992.86); h_SL2L164->SetBinContent(39,49514.29); h_SL2L164->SetBinContent(40,64750); h_SL2L164->SetBinContent(41,89885.71); h_SL2L164->SetBinContent(42,50578.57); h_SL2L164->SetBinContent(43,50307.14); h_SL2L164->SetBinContent(44,49028.57); h_SL2L164->SetBinContent(45,44035.71); h_SL2L164->SetBinContent(46,41035.71); h_SL2L164->SetBinContent(47,41150); h_SL2L164->SetBinContent(48,39307.14); h_SL2L164->SetBinContent(49,39985.71); h_SL2L164->SetBinContent(50,39685.71); h_SL2L164->SetBinContent(51,43850); h_SL2L164->SetBinContent(52,48435.71); h_SL2L164->SetBinContent(53,53735.71); h_SL2L164->SetBinContent(54,56200); h_SL2L164->SetBinContent(55,56221.43); h_SL2L164->SetBinContent(56,47407.14); h_SL2L164->SetBinContent(57,38392.86); h_SL2L164->SetMaximum(118873.2); 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,5757.143); h_SL2L265->SetBinContent(2,8735.714); h_SL2L265->SetBinContent(3,12778.57); h_SL2L265->SetBinContent(4,18114.29); h_SL2L265->SetBinContent(5,18728.57); h_SL2L265->SetBinContent(6,22971.43); h_SL2L265->SetBinContent(7,27542.86); h_SL2L265->SetBinContent(8,33550); h_SL2L265->SetBinContent(9,48607.14); h_SL2L265->SetBinContent(10,57835.71); h_SL2L265->SetBinContent(11,63221.43); h_SL2L265->SetBinContent(12,66400); h_SL2L265->SetBinContent(13,66514.28); h_SL2L265->SetBinContent(14,67092.86); h_SL2L265->SetBinContent(15,66371.43); h_SL2L265->SetBinContent(16,66185.71); h_SL2L265->SetBinContent(17,64128.57); h_SL2L265->SetBinContent(18,63664.29); h_SL2L265->SetBinContent(19,62435.71); h_SL2L265->SetBinContent(20,60342.86); h_SL2L265->SetBinContent(21,59107.14); h_SL2L265->SetBinContent(22,54935.71); h_SL2L265->SetBinContent(23,51700); h_SL2L265->SetBinContent(24,48428.57); h_SL2L265->SetBinContent(25,45678.57); h_SL2L265->SetBinContent(26,43657.14); h_SL2L265->SetBinContent(27,42864.29); h_SL2L265->SetBinContent(28,43114.29); h_SL2L265->SetBinContent(29,42764.29); h_SL2L265->SetBinContent(30,42707.14); h_SL2L265->SetBinContent(31,39664.29); h_SL2L265->SetBinContent(32,42442.86); h_SL2L265->SetBinContent(33,43285.71); h_SL2L265->SetBinContent(34,44378.57); h_SL2L265->SetBinContent(35,43128.57); h_SL2L265->SetBinContent(36,43185.71); h_SL2L265->SetBinContent(37,45764.29); h_SL2L265->SetBinContent(38,46142.86); h_SL2L265->SetBinContent(39,45657.14); h_SL2L265->SetBinContent(40,46321.43); h_SL2L265->SetBinContent(41,46100); h_SL2L265->SetBinContent(42,44614.29); h_SL2L265->SetBinContent(43,43785.71); h_SL2L265->SetBinContent(44,44500); h_SL2L265->SetBinContent(45,42200); h_SL2L265->SetBinContent(46,41000); h_SL2L265->SetBinContent(47,40464.29); h_SL2L265->SetBinContent(48,39228.57); h_SL2L265->SetBinContent(49,38685.71); h_SL2L265->SetBinContent(50,39385.71); h_SL2L265->SetBinContent(51,38950); h_SL2L265->SetBinContent(52,44421.43); h_SL2L265->SetBinContent(53,50007.14); h_SL2L265->SetBinContent(54,53135.71); h_SL2L265->SetBinContent(55,55735.71); h_SL2L265->SetBinContent(56,49585.71); h_SL2L265->SetBinContent(57,44935.71); h_SL2L265->SetMaximum(103368.6); 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,8514.285); h_SL2L366->SetBinContent(2,10971.43); h_SL2L366->SetBinContent(3,16121.43); h_SL2L366->SetBinContent(4,18000); h_SL2L366->SetBinContent(5,20085.71); h_SL2L366->SetBinContent(6,22121.43); h_SL2L366->SetBinContent(7,32185.71); h_SL2L366->SetBinContent(8,40871.43); h_SL2L366->SetBinContent(9,52414.29); h_SL2L366->SetBinContent(10,58671.43); h_SL2L366->SetBinContent(11,62757.14); h_SL2L366->SetBinContent(12,64778.57); h_SL2L366->SetBinContent(13,64221.43); h_SL2L366->SetBinContent(14,65600); h_SL2L366->SetBinContent(15,64178.57); h_SL2L366->SetBinContent(16,63085.71); h_SL2L366->SetBinContent(17,62071.43); h_SL2L366->SetBinContent(18,60600); h_SL2L366->SetBinContent(19,58685.71); h_SL2L366->SetBinContent(20,56621.43); h_SL2L366->SetBinContent(21,55607.14); h_SL2L366->SetBinContent(22,51121.43); h_SL2L366->SetBinContent(23,48978.57); h_SL2L366->SetBinContent(24,47250); h_SL2L366->SetBinContent(25,43750); h_SL2L366->SetBinContent(26,41685.71); h_SL2L366->SetBinContent(27,41678.57); h_SL2L366->SetBinContent(28,41671.43); h_SL2L366->SetBinContent(29,41278.57); h_SL2L366->SetBinContent(30,40050); h_SL2L366->SetBinContent(31,39350); h_SL2L366->SetBinContent(32,41935.71); h_SL2L366->SetBinContent(33,42285.71); h_SL2L366->SetBinContent(34,41950); h_SL2L366->SetBinContent(35,41964.29); h_SL2L366->SetBinContent(36,42928.57); h_SL2L366->SetBinContent(37,44292.86); h_SL2L366->SetBinContent(38,44257.14); h_SL2L366->SetBinContent(39,44350); h_SL2L366->SetBinContent(40,44114.29); h_SL2L366->SetBinContent(41,43085.71); h_SL2L366->SetBinContent(42,42964.29); h_SL2L366->SetBinContent(43,43392.86); h_SL2L366->SetBinContent(44,42978.57); h_SL2L366->SetBinContent(45,41035.71); h_SL2L366->SetBinContent(46,40671.43); h_SL2L366->SetBinContent(47,38278.57); h_SL2L366->SetBinContent(48,37242.86); h_SL2L366->SetBinContent(49,37435.71); h_SL2L366->SetBinContent(50,36871.43); h_SL2L366->SetBinContent(51,40285.71); h_SL2L366->SetBinContent(52,44464.29); h_SL2L366->SetBinContent(53,49900); h_SL2L366->SetBinContent(54,53921.43); h_SL2L366->SetBinContent(55,53371.43); h_SL2L366->SetBinContent(56,43864.29); h_SL2L366->SetBinContent(57,41407.14); h_SL2L366->SetMaximum(103368.6); 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,9357.143); h_SL2L467->SetBinContent(3,12671.43); h_SL2L467->SetBinContent(4,16157.14); h_SL2L467->SetBinContent(5,19471.43); h_SL2L467->SetBinContent(6,19935.71); h_SL2L467->SetBinContent(7,24535.71); h_SL2L467->SetBinContent(8,32900); h_SL2L467->SetBinContent(9,46271.43); h_SL2L467->SetBinContent(10,53207.14); h_SL2L467->SetBinContent(11,58642.86); h_SL2L467->SetBinContent(12,61771.43); h_SL2L467->SetBinContent(13,62142.86); h_SL2L467->SetBinContent(14,62278.57); h_SL2L467->SetBinContent(15,61742.86); h_SL2L467->SetBinContent(16,61785.71); h_SL2L467->SetBinContent(17,60592.86); h_SL2L467->SetBinContent(18,59250); h_SL2L467->SetBinContent(19,59007.14); h_SL2L467->SetBinContent(20,57892.86); h_SL2L467->SetBinContent(21,54835.71); h_SL2L467->SetBinContent(22,52735.71); h_SL2L467->SetBinContent(23,48421.43); h_SL2L467->SetBinContent(24,45242.86); h_SL2L467->SetBinContent(25,43050); h_SL2L467->SetBinContent(26,41057.14); h_SL2L467->SetBinContent(27,39778.57); h_SL2L467->SetBinContent(28,41978.57); h_SL2L467->SetBinContent(29,39671.43); h_SL2L467->SetBinContent(30,40200); h_SL2L467->SetBinContent(31,37035.71); h_SL2L467->SetBinContent(32,39928.57); h_SL2L467->SetBinContent(33,41685.71); h_SL2L467->SetBinContent(34,41764.29); h_SL2L467->SetBinContent(35,42521.43); h_SL2L467->SetBinContent(36,41514.29); h_SL2L467->SetBinContent(37,42642.86); h_SL2L467->SetBinContent(38,42435.71); h_SL2L467->SetBinContent(39,42957.14); h_SL2L467->SetBinContent(40,42942.86); h_SL2L467->SetBinContent(41,41242.86); h_SL2L467->SetBinContent(42,41428.57); h_SL2L467->SetBinContent(43,42400); h_SL2L467->SetBinContent(44,42207.14); h_SL2L467->SetBinContent(45,40964.29); h_SL2L467->SetBinContent(46,39414.29); h_SL2L467->SetBinContent(47,39100); h_SL2L467->SetBinContent(48,38192.86); h_SL2L467->SetBinContent(49,36500); h_SL2L467->SetBinContent(50,37892.86); h_SL2L467->SetBinContent(51,36921.43); h_SL2L467->SetBinContent(52,42042.86); h_SL2L467->SetBinContent(53,46742.86); h_SL2L467->SetBinContent(54,50807.14); h_SL2L467->SetBinContent(55,52685.71); h_SL2L467->SetBinContent(56,47950); h_SL2L467->SetBinContent(57,40057.14); h_SL2L467->SetMaximum(103368.6); 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 7474"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }