void RatesPerCell_Removing_noisy_cells_run_7041_SL1() { //=========Macro generated from canvas: c/c //========= (Fri Dec 21 17:19:07 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-2248.394,67.5,20235.54); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7041",60,0,60); h_SL1L160->SetBinContent(1,2510.621); h_SL1L160->SetBinContent(2,2943.162); h_SL1L160->SetBinContent(3,3686.005); h_SL1L160->SetBinContent(4,4142.054); h_SL1L160->SetBinContent(5,4019.814); h_SL1L160->SetBinContent(6,4762.657); h_SL1L160->SetBinContent(7,4640.417); h_SL1L160->SetBinContent(8,5025.943); h_SL1L160->SetBinContent(9,4842.583); h_SL1L160->SetBinContent(10,4941.315); h_SL1L160->SetBinContent(11,5068.257); h_SL1L160->SetBinContent(12,5261.02); h_SL1L160->SetBinContent(13,9656.957); h_SL1L160->SetBinContent(14,10813.54); h_SL1L160->SetBinContent(15,10094.2); h_SL1L160->SetBinContent(16,5364.454); h_SL1L160->SetBinContent(17,5759.383); h_SL1L160->SetBinContent(18,5966.25); h_SL1L160->SetBinContent(19,5491.396); h_SL1L160->SetBinContent(20,5637.143); h_SL1L160->SetBinContent(21,6130.804); h_SL1L160->SetBinContent(22,6083.789); h_SL1L160->SetBinContent(23,5759.383); h_SL1L160->SetBinContent(24,5322.14); h_SL1L160->SetBinContent(25,6083.789); h_SL1L160->SetBinContent(26,6328.269); h_SL1L160->SetBinContent(27,5806.398); h_SL1L160->SetBinContent(28,6060.281); h_SL1L160->SetBinContent(29,6121.401); h_SL1L160->SetBinContent(30,5811.1); h_SL1L160->SetBinContent(31,5684.158); h_SL1L160->SetBinContent(32,6079.087); h_SL1L160->SetBinContent(49,4931.913); h_SL1L160->SetBinContent(50,5359.752); h_SL1L160->SetBinContent(51,4607.506); h_SL1L160->SetBinContent(52,4588.7); h_SL1L160->SetBinContent(53,5105.869); h_SL1L160->SetBinContent(54,4555.79); h_SL1L160->SetBinContent(55,4165.562); h_SL1L160->SetBinContent(56,3686.005); h_SL1L160->SetMaximum(17987.15); h_SL1L160->SetEntries(60); h_SL1L160->SetDirectory(0); h_SL1L160->SetStats(0); h_SL1L160->SetLineWidth(2); h_SL1L160->GetXaxis()->SetTitle("Cell"); h_SL1L160->GetXaxis()->SetLabelFont(42); h_SL1L160->GetXaxis()->SetLabelSize(0.035); h_SL1L160->GetXaxis()->SetTitleSize(0.035); h_SL1L160->GetXaxis()->SetTitleFont(42); h_SL1L160->GetYaxis()->SetTitle("Hz"); h_SL1L160->GetYaxis()->SetLabelFont(42); h_SL1L160->GetYaxis()->SetLabelSize(0.035); h_SL1L160->GetYaxis()->SetTitleSize(0.035); h_SL1L160->GetYaxis()->SetTitleOffset(1.45); h_SL1L160->GetYaxis()->SetTitleFont(42); h_SL1L160->GetZaxis()->SetLabelFont(42); h_SL1L160->GetZaxis()->SetLabelSize(0.035); h_SL1L160->GetZaxis()->SetTitleSize(0.035); h_SL1L160->GetZaxis()->SetTitleFont(42); h_SL1L160->Draw(""); TH1D *h_SL1L261 = new TH1D("h_SL1L261","",60,0,60); h_SL1L261->SetBinContent(1,2520.024); h_SL1L261->SetBinContent(2,3150.03); h_SL1L261->SetBinContent(3,4405.34); h_SL1L261->SetBinContent(4,4612.208); h_SL1L261->SetBinContent(5,4842.583); h_SL1L261->SetBinContent(6,5077.66); h_SL1L261->SetBinContent(7,5322.14); h_SL1L261->SetBinContent(8,5538.411); h_SL1L261->SetBinContent(9,9562.927); h_SL1L261->SetBinContent(10,5731.174); h_SL1L261->SetBinContent(11,5693.562); h_SL1L261->SetBinContent(12,5938.042); h_SL1L261->SetBinContent(13,6323.567); h_SL1L261->SetBinContent(14,7447.235); h_SL1L261->SetBinContent(15,6850.14); h_SL1L261->SetBinContent(16,6116.7); h_SL1L261->SetBinContent(17,6516.331); h_SL1L261->SetBinContent(18,7207.457); h_SL1L261->SetBinContent(19,6154.312); h_SL1L261->SetBinContent(20,6685.586); h_SL1L261->SetBinContent(21,6652.675); h_SL1L261->SetBinContent(22,7155.74); h_SL1L261->SetBinContent(23,6469.315); h_SL1L261->SetBinContent(24,6276.552); h_SL1L261->SetBinContent(25,6868.946); h_SL1L261->SetBinContent(26,7259.173); h_SL1L261->SetBinContent(27,6751.407); h_SL1L261->SetBinContent(28,6436.404); h_SL1L261->SetBinContent(29,7000.589); h_SL1L261->SetBinContent(30,7212.158); h_SL1L261->SetBinContent(31,7024.097); h_SL1L261->SetBinContent(32,6784.318); h_SL1L261->SetBinContent(49,5458.484); h_SL1L261->SetBinContent(50,5651.248); h_SL1L261->SetBinContent(51,5378.559); h_SL1L261->SetBinContent(52,5143.481); h_SL1L261->SetBinContent(53,5308.036); h_SL1L261->SetBinContent(54,5500.798); h_SL1L261->SetBinContent(55,4908.405); h_SL1L261->SetBinContent(56,4635.716); h_SL1L261->SetMaximum(15641.78); h_SL1L261->SetEntries(60); h_SL1L261->SetDirectory(0); h_SL1L261->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL1L261->SetLineColor(ci); h_SL1L261->SetLineWidth(2); h_SL1L261->GetXaxis()->SetTitle("Cell"); h_SL1L261->GetXaxis()->SetLabelFont(42); h_SL1L261->GetXaxis()->SetLabelSize(0.035); h_SL1L261->GetXaxis()->SetTitleSize(0.035); h_SL1L261->GetXaxis()->SetTitleFont(42); h_SL1L261->GetYaxis()->SetTitle("Hz"); h_SL1L261->GetYaxis()->SetLabelFont(42); h_SL1L261->GetYaxis()->SetLabelSize(0.035); h_SL1L261->GetYaxis()->SetTitleSize(0.035); h_SL1L261->GetYaxis()->SetTitleOffset(1.45); h_SL1L261->GetYaxis()->SetTitleFont(42); h_SL1L261->GetZaxis()->SetLabelFont(42); h_SL1L261->GetZaxis()->SetLabelSize(0.035); h_SL1L261->GetZaxis()->SetTitleSize(0.035); h_SL1L261->GetZaxis()->SetTitleFont(42); h_SL1L261->Draw("same"); TH1D *h_SL1L362 = new TH1D("h_SL1L362","",60,0,60); h_SL1L362->SetBinContent(1,2646.965); h_SL1L362->SetBinContent(2,3126.522); h_SL1L362->SetBinContent(3,4038.62); h_SL1L362->SetBinContent(4,5091.765); h_SL1L362->SetBinContent(5,5063.556); h_SL1L362->SetBinContent(6,5148.183); h_SL1L362->SetBinContent(7,5467.888); h_SL1L362->SetBinContent(8,5970.952); h_SL1L362->SetBinContent(9,6328.269); h_SL1L362->SetBinContent(10,5867.519); h_SL1L362->SetBinContent(11,5740.577); h_SL1L362->SetBinContent(12,6516.331); h_SL1L362->SetBinContent(13,6803.124); h_SL1L362->SetBinContent(14,7527.161); h_SL1L362->SetBinContent(15,8867.099); h_SL1L362->SetBinContent(16,6765.512); h_SL1L362->SetBinContent(17,7033.5); h_SL1L362->SetBinContent(18,6821.93); h_SL1L362->SetBinContent(19,6347.075); h_SL1L362->SetBinContent(20,6953.573); h_SL1L362->SetBinContent(21,7183.949); h_SL1L362->SetBinContent(22,6817.229); h_SL1L362->SetBinContent(23,6647.974); h_SL1L362->SetBinContent(24,7212.158); h_SL1L362->SetBinContent(25,7005.291); h_SL1L362->SetBinContent(26,6967.678); h_SL1L362->SetBinContent(27,7033.5); h_SL1L362->SetBinContent(28,7179.247); h_SL1L362->SetBinContent(29,7715.223); h_SL1L362->SetBinContent(30,6878.349); h_SL1L362->SetBinContent(31,6911.26); h_SL1L362->SetBinContent(32,7607.087); h_SL1L362->SetBinContent(49,5796.995); h_SL1L362->SetBinContent(50,5449.082); h_SL1L362->SetBinContent(51,5458.484); h_SL1L362->SetBinContent(52,5477.291); h_SL1L362->SetBinContent(53,5608.934); h_SL1L362->SetBinContent(54,5223.408); h_SL1L362->SetBinContent(55,4974.226); h_SL1L362->SetBinContent(56,4710.94); h_SL1L362->SetMaximum(15641.78); h_SL1L362->SetEntries(60); h_SL1L362->SetDirectory(0); h_SL1L362->SetStats(0); ci = TColor::GetColor("#009900"); h_SL1L362->SetLineColor(ci); h_SL1L362->SetLineWidth(2); h_SL1L362->GetXaxis()->SetTitle("Cell"); h_SL1L362->GetXaxis()->SetLabelFont(42); h_SL1L362->GetXaxis()->SetLabelSize(0.035); h_SL1L362->GetXaxis()->SetTitleSize(0.035); h_SL1L362->GetXaxis()->SetTitleFont(42); h_SL1L362->GetYaxis()->SetTitle("Hz"); h_SL1L362->GetYaxis()->SetLabelFont(42); h_SL1L362->GetYaxis()->SetLabelSize(0.035); h_SL1L362->GetYaxis()->SetTitleSize(0.035); h_SL1L362->GetYaxis()->SetTitleOffset(1.45); h_SL1L362->GetYaxis()->SetTitleFont(42); h_SL1L362->GetZaxis()->SetLabelFont(42); h_SL1L362->GetZaxis()->SetLabelSize(0.035); h_SL1L362->GetZaxis()->SetTitleSize(0.035); h_SL1L362->GetZaxis()->SetTitleFont(42); h_SL1L362->Draw("same"); TH1D *h_SL1L463 = new TH1D("h_SL1L463","",60,0,60); h_SL1L463->SetBinContent(2,2637.562); h_SL1L463->SetBinContent(3,3366.301); h_SL1L463->SetBinContent(4,4226.682); h_SL1L463->SetBinContent(5,4635.716); h_SL1L463->SetBinContent(6,4833.18); h_SL1L463->SetBinContent(7,4607.506); h_SL1L463->SetBinContent(8,5275.125); h_SL1L463->SetBinContent(9,5698.263); h_SL1L463->SetBinContent(10,5514.903); h_SL1L463->SetBinContent(11,5355.051); h_SL1L463->SetBinContent(12,5655.949); h_SL1L463->SetBinContent(13,6370.583); h_SL1L463->SetBinContent(14,13601.55); h_SL1L463->SetBinContent(15,11147.34); h_SL1L463->SetBinContent(16,10141.22); h_SL1L463->SetBinContent(17,6248.343); h_SL1L463->SetBinContent(18,6859.542); h_SL1L463->SetBinContent(19,5999.162); h_SL1L463->SetBinContent(20,6488.121); h_SL1L463->SetBinContent(21,6685.586); h_SL1L463->SetBinContent(22,6873.647); h_SL1L463->SetBinContent(23,6149.61); h_SL1L463->SetBinContent(24,6295.358); h_SL1L463->SetBinContent(25,6577.451); h_SL1L463->SetBinContent(26,6789.02); h_SL1L463->SetBinContent(27,6281.253); h_SL1L463->SetBinContent(28,6558.645); h_SL1L463->SetBinContent(29,6727.899); h_SL1L463->SetBinContent(30,6807.826); h_SL1L463->SetBinContent(31,6539.838); h_SL1L463->SetBinContent(32,6427.001); h_SL1L463->SetBinContent(49,5115.272); h_SL1L463->SetBinContent(50,4964.823); h_SL1L463->SetBinContent(51,4903.703); h_SL1L463->SetBinContent(52,4851.986); h_SL1L463->SetBinContent(53,5237.512); h_SL1L463->SetBinContent(54,5091.765); h_SL1L463->SetBinContent(56,4649.82); h_SL1L463->SetMaximum(15641.78); h_SL1L463->SetEntries(60); h_SL1L463->SetDirectory(0); h_SL1L463->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL1L463->SetLineColor(ci); h_SL1L463->SetLineWidth(2); h_SL1L463->GetXaxis()->SetTitle("Cell"); h_SL1L463->GetXaxis()->SetLabelFont(42); h_SL1L463->GetXaxis()->SetLabelSize(0.035); h_SL1L463->GetXaxis()->SetTitleSize(0.035); h_SL1L463->GetXaxis()->SetTitleFont(42); h_SL1L463->GetYaxis()->SetTitle("Hz"); h_SL1L463->GetYaxis()->SetLabelFont(42); h_SL1L463->GetYaxis()->SetLabelSize(0.035); h_SL1L463->GetYaxis()->SetTitleSize(0.035); h_SL1L463->GetYaxis()->SetTitleOffset(1.45); h_SL1L463->GetYaxis()->SetTitleFont(42); h_SL1L463->GetZaxis()->SetLabelFont(42); h_SL1L463->GetZaxis()->SetLabelSize(0.035); h_SL1L463->GetZaxis()->SetTitleSize(0.035); h_SL1L463->GetZaxis()->SetTitleFont(42); h_SL1L463->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_SL1L1","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_SL1L2","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_SL1L3","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_SL1L4","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.3744221,0.9362587,0.6255779,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("SL1, run 7041"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }