void RatesPerCell_Removing_noisy_cells_run_7044_SL1() { //=========Macro generated from canvas: c/c //========= (Sat Dec 22 18:31:10 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-2058.213,67.5,18523.91); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7044",60,0,60); h_SL1L160->SetBinContent(1,3369.811); h_SL1L160->SetBinContent(2,3369.811); h_SL1L160->SetBinContent(3,3369.811); h_SL1L160->SetBinContent(4,5483.082); h_SL1L160->SetBinContent(5,3883.85); h_SL1L160->SetBinContent(6,4397.889); h_SL1L160->SetBinContent(7,5083.274); h_SL1L160->SetBinContent(8,5140.39); h_SL1L160->SetBinContent(9,4740.582); h_SL1L160->SetBinContent(10,5026.159); h_SL1L160->SetBinContent(11,6225.583); h_SL1L160->SetBinContent(12,6168.468); h_SL1L160->SetBinContent(13,10052.32); h_SL1L160->SetBinContent(14,10223.66); h_SL1L160->SetBinContent(15,10109.43); h_SL1L160->SetBinContent(16,5254.621); h_SL1L160->SetBinContent(17,5197.505); h_SL1L160->SetBinContent(18,7425.007); h_SL1L160->SetBinContent(19,4797.697); h_SL1L160->SetBinContent(20,6168.468); h_SL1L160->SetBinContent(21,6796.737); h_SL1L160->SetBinContent(22,5768.66); h_SL1L160->SetBinContent(23,5654.429); h_SL1L160->SetBinContent(24,5940.006); h_SL1L160->SetBinContent(25,5940.006); h_SL1L160->SetBinContent(26,6454.045); h_SL1L160->SetBinContent(27,6682.506); h_SL1L160->SetBinContent(28,7367.892); h_SL1L160->SetBinContent(29,6054.237); h_SL1L160->SetBinContent(30,7710.584); h_SL1L160->SetBinContent(31,5597.313); h_SL1L160->SetBinContent(32,6282.698); h_SL1L160->SetBinContent(49,5540.198); h_SL1L160->SetBinContent(50,6339.814); h_SL1L160->SetBinContent(51,4969.043); h_SL1L160->SetBinContent(52,4626.351); h_SL1L160->SetBinContent(53,5597.313); h_SL1L160->SetBinContent(54,4112.312); h_SL1L160->SetBinContent(55,4169.427); h_SL1L160->SetBinContent(56,4055.196); h_SL1L160->SetMaximum(16465.7); 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,3312.696); h_SL1L261->SetBinContent(2,4397.889); h_SL1L261->SetBinContent(3,4340.773); h_SL1L261->SetBinContent(4,5254.621); h_SL1L261->SetBinContent(5,5997.121); h_SL1L261->SetBinContent(6,4055.196); h_SL1L261->SetBinContent(7,5368.852); h_SL1L261->SetBinContent(8,5711.544); h_SL1L261->SetBinContent(9,12451.17); h_SL1L261->SetBinContent(10,5597.313); h_SL1L261->SetBinContent(11,7082.314); h_SL1L261->SetBinContent(12,6282.698); h_SL1L261->SetBinContent(13,7653.469); h_SL1L261->SetBinContent(14,7025.199); h_SL1L261->SetBinContent(15,5654.429); h_SL1L261->SetBinContent(16,6454.045); h_SL1L261->SetBinContent(17,6225.583); h_SL1L261->SetBinContent(18,6339.814); h_SL1L261->SetBinContent(19,7482.123); h_SL1L261->SetBinContent(20,6396.929); h_SL1L261->SetBinContent(21,6511.16); h_SL1L261->SetBinContent(22,7139.43); h_SL1L261->SetBinContent(23,5540.198); h_SL1L261->SetBinContent(24,7596.354); h_SL1L261->SetBinContent(25,6511.16); h_SL1L261->SetBinContent(26,6282.698); h_SL1L261->SetBinContent(27,6054.237); h_SL1L261->SetBinContent(28,7767.7); h_SL1L261->SetBinContent(29,7425.007); h_SL1L261->SetBinContent(30,7482.123); h_SL1L261->SetBinContent(31,7367.892); h_SL1L261->SetBinContent(32,7025.199); h_SL1L261->SetBinContent(49,6111.352); h_SL1L261->SetBinContent(50,6282.698); h_SL1L261->SetBinContent(51,5311.736); h_SL1L261->SetBinContent(52,5425.967); h_SL1L261->SetBinContent(53,5368.852); h_SL1L261->SetBinContent(54,5483.082); h_SL1L261->SetBinContent(55,4226.542); h_SL1L261->SetBinContent(56,5311.736); h_SL1L261->SetMaximum(14318.84); 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,3198.465); h_SL1L362->SetBinContent(2,3198.465); h_SL1L362->SetBinContent(3,3369.811); h_SL1L362->SetBinContent(4,5825.775); h_SL1L362->SetBinContent(5,5425.967); h_SL1L362->SetBinContent(6,5140.39); h_SL1L362->SetBinContent(7,4854.812); h_SL1L362->SetBinContent(8,6054.237); h_SL1L362->SetBinContent(9,5083.274); h_SL1L362->SetBinContent(10,6054.237); h_SL1L362->SetBinContent(11,6682.506); h_SL1L362->SetBinContent(12,7253.661); h_SL1L362->SetBinContent(13,5825.775); h_SL1L362->SetBinContent(14,7710.584); h_SL1L362->SetBinContent(15,8224.623); h_SL1L362->SetBinContent(16,6511.16); h_SL1L362->SetBinContent(17,5311.736); h_SL1L362->SetBinContent(18,7482.123); h_SL1L362->SetBinContent(19,6225.583); h_SL1L362->SetBinContent(20,6454.045); h_SL1L362->SetBinContent(21,7367.892); h_SL1L362->SetBinContent(22,6454.045); h_SL1L362->SetBinContent(23,6739.622); h_SL1L362->SetBinContent(24,7539.238); h_SL1L362->SetBinContent(25,5654.429); h_SL1L362->SetBinContent(26,6568.276); h_SL1L362->SetBinContent(27,7082.314); h_SL1L362->SetBinContent(28,8738.662); h_SL1L362->SetBinContent(29,8338.854); h_SL1L362->SetBinContent(30,7539.238); h_SL1L362->SetBinContent(31,6396.929); h_SL1L362->SetBinContent(32,8510.2); h_SL1L362->SetBinContent(49,6339.814); h_SL1L362->SetBinContent(50,5368.852); h_SL1L362->SetBinContent(51,5311.736); h_SL1L362->SetBinContent(52,5997.121); h_SL1L362->SetBinContent(53,6054.237); h_SL1L362->SetBinContent(54,5026.159); h_SL1L362->SetBinContent(55,4112.312); h_SL1L362->SetBinContent(56,5940.006); h_SL1L362->SetMaximum(14318.84); 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,1028.078); h_SL1L463->SetBinContent(3,913.847); h_SL1L463->SetBinContent(4,1142.309); h_SL1L463->SetBinContent(5,1999.04); h_SL1L463->SetBinContent(6,1256.54); h_SL1L463->SetBinContent(7,1313.655); h_SL1L463->SetBinContent(8,1485.001); h_SL1L463->SetBinContent(9,1770.579); h_SL1L463->SetBinContent(10,1199.424); h_SL1L463->SetBinContent(11,2056.156); h_SL1L463->SetBinContent(12,2341.733); h_SL1L463->SetBinContent(13,2684.426); h_SL1L463->SetBinContent(14,7996.162); h_SL1L463->SetBinContent(15,7025.199); h_SL1L463->SetBinContent(16,7139.43); h_SL1L463->SetBinContent(17,1713.463); h_SL1L463->SetBinContent(18,1370.771); h_SL1L463->SetBinContent(19,2341.733); h_SL1L463->SetBinContent(20,2227.502); h_SL1L463->SetBinContent(21,1827.694); h_SL1L463->SetBinContent(22,2284.618); h_SL1L463->SetBinContent(23,1656.348); h_SL1L463->SetBinContent(24,1599.232); h_SL1L463->SetBinContent(25,1713.463); h_SL1L463->SetBinContent(26,2398.848); h_SL1L463->SetBinContent(27,2398.848); h_SL1L463->SetBinContent(28,2798.656); h_SL1L463->SetBinContent(29,2284.618); h_SL1L463->SetBinContent(30,2341.733); h_SL1L463->SetBinContent(31,1999.04); h_SL1L463->SetBinContent(32,1427.886); h_SL1L463->SetBinContent(49,1313.655); h_SL1L463->SetBinContent(50,1370.771); h_SL1L463->SetBinContent(51,1485.001); h_SL1L463->SetBinContent(52,1427.886); h_SL1L463->SetBinContent(53,1827.694); h_SL1L463->SetBinContent(54,1427.886); h_SL1L463->SetBinContent(56,2284.618); h_SL1L463->SetMaximum(14318.84); 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.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("SL1, run 7044"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }