void RatesPerCell_Removing_noisy_cells_run_7374_SL2() { //=========Macro generated from canvas: c/c //========= (Fri Jan 18 19:12:24 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-15878.19,67.5,142903.7); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7374",60,0,60); h_SL2L164->SetBinContent(1,34314.29); h_SL2L164->SetBinContent(2,43321.43); h_SL2L164->SetBinContent(3,52242.86); h_SL2L164->SetBinContent(4,54842.86); h_SL2L164->SetBinContent(5,55050); h_SL2L164->SetBinContent(6,51550); h_SL2L164->SetBinContent(7,48857.14); h_SL2L164->SetBinContent(8,45557.14); h_SL2L164->SetBinContent(9,50857.14); h_SL2L164->SetBinContent(10,52571.43); h_SL2L164->SetBinContent(11,52821.43); h_SL2L164->SetBinContent(12,50021.43); h_SL2L164->SetBinContent(13,46442.86); h_SL2L164->SetBinContent(14,45757.14); h_SL2L164->SetBinContent(15,44835.71); h_SL2L164->SetBinContent(16,45435.71); h_SL2L164->SetBinContent(17,42628.57); h_SL2L164->SetBinContent(18,39392.86); h_SL2L164->SetBinContent(19,38921.43); h_SL2L164->SetBinContent(20,40442.86); h_SL2L164->SetBinContent(21,40321.43); h_SL2L164->SetBinContent(22,40057.14); h_SL2L164->SetBinContent(23,38328.57); h_SL2L164->SetBinContent(24,36264.29); h_SL2L164->SetBinContent(25,34842.86); h_SL2L164->SetBinContent(26,33764.29); h_SL2L164->SetBinContent(27,33507.14); h_SL2L164->SetBinContent(28,33714.29); h_SL2L164->SetBinContent(29,32614.29); h_SL2L164->SetBinContent(30,31957.14); h_SL2L164->SetBinContent(31,32142.86); h_SL2L164->SetBinContent(32,32314.29); h_SL2L164->SetBinContent(33,33300); h_SL2L164->SetBinContent(34,35042.86); h_SL2L164->SetBinContent(36,34950); h_SL2L164->SetBinContent(37,43521.43); h_SL2L164->SetBinContent(38,39871.43); h_SL2L164->SetBinContent(39,40971.43); h_SL2L164->SetBinContent(40,65957.14); h_SL2L164->SetBinContent(41,96050); h_SL2L164->SetBinContent(42,44628.57); h_SL2L164->SetBinContent(43,45878.57); h_SL2L164->SetBinContent(44,43400); h_SL2L164->SetBinContent(45,34742.86); h_SL2L164->SetBinContent(46,32514.29); h_SL2L164->SetBinContent(47,34107.14); h_SL2L164->SetBinContent(48,32485.71); h_SL2L164->SetBinContent(49,33264.29); h_SL2L164->SetBinContent(50,31800); h_SL2L164->SetBinContent(51,35114.29); h_SL2L164->SetBinContent(52,38221.43); h_SL2L164->SetBinContent(53,43342.86); h_SL2L164->SetBinContent(54,43292.86); h_SL2L164->SetBinContent(55,42728.57); h_SL2L164->SetBinContent(56,35250); h_SL2L164->SetBinContent(57,28457.14); h_SL2L164->SetMaximum(127025.5); 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,27957.14); h_SL2L265->SetBinContent(2,41750); h_SL2L265->SetBinContent(3,45828.57); h_SL2L265->SetBinContent(4,53242.86); h_SL2L265->SetBinContent(5,53642.86); h_SL2L265->SetBinContent(6,51121.43); h_SL2L265->SetBinContent(7,49921.43); h_SL2L265->SetBinContent(8,43792.86); h_SL2L265->SetBinContent(9,47178.57); h_SL2L265->SetBinContent(10,49471.43); h_SL2L265->SetBinContent(11,50742.86); h_SL2L265->SetBinContent(12,50514.29); h_SL2L265->SetBinContent(13,46892.86); h_SL2L265->SetBinContent(14,44735.71); h_SL2L265->SetBinContent(15,43057.14); h_SL2L265->SetBinContent(16,45392.86); h_SL2L265->SetBinContent(17,42257.14); h_SL2L265->SetBinContent(18,39364.29); h_SL2L265->SetBinContent(19,38071.43); h_SL2L265->SetBinContent(20,39178.57); h_SL2L265->SetBinContent(21,39685.71); h_SL2L265->SetBinContent(22,38678.57); h_SL2L265->SetBinContent(23,38371.43); h_SL2L265->SetBinContent(24,35942.86); h_SL2L265->SetBinContent(25,34750); h_SL2L265->SetBinContent(26,33707.14); h_SL2L265->SetBinContent(27,32607.14); h_SL2L265->SetBinContent(28,33671.43); h_SL2L265->SetBinContent(29,32100); h_SL2L265->SetBinContent(30,31778.57); h_SL2L265->SetBinContent(31,29878.57); h_SL2L265->SetBinContent(32,31528.57); h_SL2L265->SetBinContent(33,32392.86); h_SL2L265->SetBinContent(34,33607.14); h_SL2L265->SetBinContent(35,32592.86); h_SL2L265->SetBinContent(36,32628.57); h_SL2L265->SetBinContent(37,35807.14); h_SL2L265->SetBinContent(38,37092.86); h_SL2L265->SetBinContent(39,37235.71); h_SL2L265->SetBinContent(40,39500); h_SL2L265->SetBinContent(41,36914.29); h_SL2L265->SetBinContent(42,36214.29); h_SL2L265->SetBinContent(43,35757.14); h_SL2L265->SetBinContent(44,36221.43); h_SL2L265->SetBinContent(45,35278.57); h_SL2L265->SetBinContent(46,32707.14); h_SL2L265->SetBinContent(47,31771.43); h_SL2L265->SetBinContent(48,31142.86); h_SL2L265->SetBinContent(49,31685.71); h_SL2L265->SetBinContent(50,32607.14); h_SL2L265->SetBinContent(51,31521.43); h_SL2L265->SetBinContent(52,35535.71); h_SL2L265->SetBinContent(53,39921.43); h_SL2L265->SetBinContent(54,41242.86); h_SL2L265->SetBinContent(55,42121.43); h_SL2L265->SetBinContent(56,37057.14); h_SL2L265->SetBinContent(57,33114.29); h_SL2L265->SetMaximum(110457.5); 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,32850); h_SL2L366->SetBinContent(2,41514.29); h_SL2L366->SetBinContent(3,49814.29); h_SL2L366->SetBinContent(4,50950); h_SL2L366->SetBinContent(5,51557.14); h_SL2L366->SetBinContent(6,49250); h_SL2L366->SetBinContent(7,44735.71); h_SL2L366->SetBinContent(8,44335.71); h_SL2L366->SetBinContent(9,47385.71); h_SL2L366->SetBinContent(10,48700); h_SL2L366->SetBinContent(11,50214.29); h_SL2L366->SetBinContent(12,47221.43); h_SL2L366->SetBinContent(13,43850); h_SL2L366->SetBinContent(14,43750); h_SL2L366->SetBinContent(15,42642.86); h_SL2L366->SetBinContent(16,42507.14); h_SL2L366->SetBinContent(17,39550); h_SL2L366->SetBinContent(18,37600); h_SL2L366->SetBinContent(19,37457.14); h_SL2L366->SetBinContent(20,37800); h_SL2L366->SetBinContent(21,37578.57); h_SL2L366->SetBinContent(22,37457.14); h_SL2L366->SetBinContent(23,36407.14); h_SL2L366->SetBinContent(24,33814.29); h_SL2L366->SetBinContent(25,33364.29); h_SL2L366->SetBinContent(26,32914.29); h_SL2L366->SetBinContent(27,32735.71); h_SL2L366->SetBinContent(28,32414.29); h_SL2L366->SetBinContent(29,32142.86); h_SL2L366->SetBinContent(30,30621.43); h_SL2L366->SetBinContent(31,30300); h_SL2L366->SetBinContent(32,30142.86); h_SL2L366->SetBinContent(33,32457.14); h_SL2L366->SetBinContent(34,32900); h_SL2L366->SetBinContent(35,31207.14); h_SL2L366->SetBinContent(36,32835.71); h_SL2L366->SetBinContent(37,34071.43); h_SL2L366->SetBinContent(38,35657.14); h_SL2L366->SetBinContent(39,35985.71); h_SL2L366->SetBinContent(40,34964.29); h_SL2L366->SetBinContent(41,35300); h_SL2L366->SetBinContent(42,34407.14); h_SL2L366->SetBinContent(43,35392.86); h_SL2L366->SetBinContent(44,33171.43); h_SL2L366->SetBinContent(45,32464.29); h_SL2L366->SetBinContent(46,31664.29); h_SL2L366->SetBinContent(47,30950); h_SL2L366->SetBinContent(48,30442.86); h_SL2L366->SetBinContent(49,31985.71); h_SL2L366->SetBinContent(50,31335.71); h_SL2L366->SetBinContent(51,31521.43); h_SL2L366->SetBinContent(52,36800); h_SL2L366->SetBinContent(53,38335.71); h_SL2L366->SetBinContent(54,40892.86); h_SL2L366->SetBinContent(55,40485.71); h_SL2L366->SetBinContent(56,33007.14); h_SL2L366->SetBinContent(57,30228.57); h_SL2L366->SetMaximum(110457.5); 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,38307.14); h_SL2L467->SetBinContent(3,44857.14); h_SL2L467->SetBinContent(4,49942.86); h_SL2L467->SetBinContent(5,50892.86); h_SL2L467->SetBinContent(6,47792.86); h_SL2L467->SetBinContent(7,46907.14); h_SL2L467->SetBinContent(8,41550); h_SL2L467->SetBinContent(9,44607.14); h_SL2L467->SetBinContent(10,46471.43); h_SL2L467->SetBinContent(11,48357.14); h_SL2L467->SetBinContent(12,48500); h_SL2L467->SetBinContent(13,43985.71); h_SL2L467->SetBinContent(14,42050); h_SL2L467->SetBinContent(15,41507.14); h_SL2L467->SetBinContent(16,41485.71); h_SL2L467->SetBinContent(17,40278.57); h_SL2L467->SetBinContent(18,37150); h_SL2L467->SetBinContent(19,35600); h_SL2L467->SetBinContent(20,36450); h_SL2L467->SetBinContent(21,37242.86); h_SL2L467->SetBinContent(22,36164.29); h_SL2L467->SetBinContent(23,36578.57); h_SL2L467->SetBinContent(24,34757.14); h_SL2L467->SetBinContent(25,33514.29); h_SL2L467->SetBinContent(26,31628.57); h_SL2L467->SetBinContent(27,31585.71); h_SL2L467->SetBinContent(28,31614.29); h_SL2L467->SetBinContent(29,30350); h_SL2L467->SetBinContent(30,31571.43); h_SL2L467->SetBinContent(31,28700); h_SL2L467->SetBinContent(32,30742.86); h_SL2L467->SetBinContent(33,30600); h_SL2L467->SetBinContent(34,31485.71); h_SL2L467->SetBinContent(35,31092.86); h_SL2L467->SetBinContent(36,31964.29); h_SL2L467->SetBinContent(37,32957.14); h_SL2L467->SetBinContent(38,34828.57); h_SL2L467->SetBinContent(39,35328.57); h_SL2L467->SetBinContent(40,34492.86); h_SL2L467->SetBinContent(41,33250); h_SL2L467->SetBinContent(42,34271.43); h_SL2L467->SetBinContent(43,33842.86); h_SL2L467->SetBinContent(44,32885.71); h_SL2L467->SetBinContent(45,32085.71); h_SL2L467->SetBinContent(46,30657.14); h_SL2L467->SetBinContent(47,31400); h_SL2L467->SetBinContent(48,30864.29); h_SL2L467->SetBinContent(49,31050); h_SL2L467->SetBinContent(50,31128.57); h_SL2L467->SetBinContent(51,29550); h_SL2L467->SetBinContent(52,32921.43); h_SL2L467->SetBinContent(53,36300); h_SL2L467->SetBinContent(54,39400); h_SL2L467->SetBinContent(55,39878.57); h_SL2L467->SetBinContent(56,36000); h_SL2L467->SetBinContent(57,30371.43); h_SL2L467->SetMaximum(110457.5); 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 7374"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }