void RatesPerCell_Removing_noisy_cells_run_7333_SL1() { //=========Macro generated from canvas: c/c //========= (Mon Jan 21 13:24:41 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-3518.713,67.5,31668.41); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7333",60,0,60); h_SL1L160->SetBinContent(1,646.4286); h_SL1L160->SetBinContent(2,650); h_SL1L160->SetBinContent(3,767.8571); h_SL1L160->SetBinContent(4,910.7143); h_SL1L160->SetBinContent(5,592.8571); h_SL1L160->SetBinContent(6,832.1428); h_SL1L160->SetBinContent(7,782.1428); h_SL1L160->SetBinContent(8,903.5714); h_SL1L160->SetBinContent(9,735.7143); h_SL1L160->SetBinContent(10,900); h_SL1L160->SetBinContent(11,807.1428); h_SL1L160->SetBinContent(12,892.8571); h_SL1L160->SetBinContent(13,1510.714); h_SL1L160->SetBinContent(14,1600); h_SL1L160->SetBinContent(15,1557.143); h_SL1L160->SetBinContent(16,778.5714); h_SL1L160->SetBinContent(17,825); h_SL1L160->SetBinContent(18,867.8571); h_SL1L160->SetBinContent(19,860.7143); h_SL1L160->SetBinContent(20,839.2857); h_SL1L160->SetBinContent(21,853.5714); h_SL1L160->SetBinContent(22,878.5714); h_SL1L160->SetBinContent(23,800); h_SL1L160->SetBinContent(24,771.4286); h_SL1L160->SetBinContent(25,692.8571); h_SL1L160->SetBinContent(26,817.8571); h_SL1L160->SetBinContent(27,771.4286); h_SL1L160->SetBinContent(28,828.5714); h_SL1L160->SetBinContent(29,882.1428); h_SL1L160->SetBinContent(30,825); h_SL1L160->SetBinContent(31,700); h_SL1L160->SetBinContent(32,646.4286); h_SL1L160->SetBinContent(33,2282.143); h_SL1L160->SetBinContent(34,2567.857); h_SL1L160->SetBinContent(35,2078.571); h_SL1L160->SetBinContent(36,2050); h_SL1L160->SetBinContent(37,2196.428); h_SL1L160->SetBinContent(38,2271.428); h_SL1L160->SetBinContent(39,2025); h_SL1L160->SetBinContent(41,746.4286); h_SL1L160->SetBinContent(42,978.5714); h_SL1L160->SetBinContent(43,867.8571); h_SL1L160->SetBinContent(44,782.1428); h_SL1L160->SetBinContent(45,671.4286); h_SL1L160->SetBinContent(46,653.5714); h_SL1L160->SetBinContent(47,628.5714); h_SL1L160->SetBinContent(48,507.1429); h_SL1L160->SetBinContent(49,560.7143); h_SL1L160->SetBinContent(50,600); h_SL1L160->SetBinContent(51,625); h_SL1L160->SetBinContent(52,407.1429); h_SL1L160->SetBinContent(53,607.1428); h_SL1L160->SetBinContent(54,532.1428); h_SL1L160->SetBinContent(55,428.5714); h_SL1L160->SetBinContent(56,439.2857); h_SL1L160->SetMaximum(28149.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,3139.286); h_SL1L261->SetBinContent(2,3746.428); h_SL1L261->SetBinContent(3,5235.714); h_SL1L261->SetBinContent(4,5325); h_SL1L261->SetBinContent(5,6028.571); h_SL1L261->SetBinContent(6,6242.857); h_SL1L261->SetBinContent(7,6960.714); h_SL1L261->SetBinContent(8,7007.143); h_SL1L261->SetBinContent(9,21285.71); h_SL1L261->SetBinContent(10,7164.286); h_SL1L261->SetBinContent(11,6775); h_SL1L261->SetBinContent(12,7146.429); h_SL1L261->SetBinContent(13,7132.143); h_SL1L261->SetBinContent(14,7664.286); h_SL1L261->SetBinContent(15,6850); h_SL1L261->SetBinContent(16,7482.143); h_SL1L261->SetBinContent(17,7125); h_SL1L261->SetBinContent(18,7742.857); h_SL1L261->SetBinContent(19,6996.429); h_SL1L261->SetBinContent(20,7017.857); h_SL1L261->SetBinContent(21,7467.857); h_SL1L261->SetBinContent(22,7814.286); h_SL1L261->SetBinContent(23,7139.286); h_SL1L261->SetBinContent(24,7275); h_SL1L261->SetBinContent(25,7603.571); h_SL1L261->SetBinContent(26,7746.429); h_SL1L261->SetBinContent(27,7314.286); h_SL1L261->SetBinContent(28,7460.714); h_SL1L261->SetBinContent(29,7792.857); h_SL1L261->SetBinContent(30,7839.286); h_SL1L261->SetBinContent(31,7721.429); h_SL1L261->SetBinContent(32,7700); h_SL1L261->SetBinContent(33,7928.571); h_SL1L261->SetBinContent(34,8250); h_SL1L261->SetBinContent(35,7596.429); h_SL1L261->SetBinContent(36,7489.286); h_SL1L261->SetBinContent(37,7782.143); h_SL1L261->SetBinContent(38,8160.714); h_SL1L261->SetBinContent(39,7446.429); h_SL1L261->SetBinContent(40,7153.571); h_SL1L261->SetBinContent(41,7528.571); h_SL1L261->SetBinContent(42,7571.429); h_SL1L261->SetBinContent(43,7132.143); h_SL1L261->SetBinContent(44,7082.143); h_SL1L261->SetBinContent(45,7189.286); h_SL1L261->SetBinContent(46,7596.429); h_SL1L261->SetBinContent(47,6142.857); h_SL1L261->SetBinContent(48,5221.429); h_SL1L261->SetBinContent(49,5717.857); h_SL1L261->SetBinContent(50,5607.143); h_SL1L261->SetBinContent(51,4939.286); h_SL1L261->SetBinContent(52,5442.857); h_SL1L261->SetBinContent(53,5539.286); h_SL1L261->SetBinContent(54,5507.143); h_SL1L261->SetBinContent(55,4932.143); h_SL1L261->SetBinContent(56,4403.571); h_SL1L261->SetMaximum(24478.57); 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,3375); h_SL1L362->SetBinContent(2,3935.714); h_SL1L362->SetBinContent(3,5032.143); h_SL1L362->SetBinContent(4,5921.429); h_SL1L362->SetBinContent(5,6325); h_SL1L362->SetBinContent(6,6707.143); h_SL1L362->SetBinContent(7,6946.429); h_SL1L362->SetBinContent(8,7321.429); h_SL1L362->SetBinContent(9,7742.857); h_SL1L362->SetBinContent(10,6792.857); h_SL1L362->SetBinContent(11,6925); h_SL1L362->SetBinContent(12,7214.286); h_SL1L362->SetBinContent(13,7567.857); h_SL1L362->SetBinContent(14,7378.571); h_SL1L362->SetBinContent(15,7460.714); h_SL1L362->SetBinContent(16,7367.857); h_SL1L362->SetBinContent(17,7510.714); h_SL1L362->SetBinContent(18,7525); h_SL1L362->SetBinContent(19,6835.714); h_SL1L362->SetBinContent(20,7425); h_SL1L362->SetBinContent(21,7950); h_SL1L362->SetBinContent(22,7367.857); h_SL1L362->SetBinContent(23,7292.857); h_SL1L362->SetBinContent(24,7496.429); h_SL1L362->SetBinContent(25,7725); h_SL1L362->SetBinContent(26,7721.429); h_SL1L362->SetBinContent(27,7185.714); h_SL1L362->SetBinContent(28,7457.143); h_SL1L362->SetBinContent(29,7975); h_SL1L362->SetBinContent(30,7796.429); h_SL1L362->SetBinContent(31,7764.286); h_SL1L362->SetBinContent(32,7875); h_SL1L362->SetBinContent(33,8432.143); h_SL1L362->SetBinContent(34,8021.429); h_SL1L362->SetBinContent(35,7457.143); h_SL1L362->SetBinContent(36,7610.714); h_SL1L362->SetBinContent(37,8325); h_SL1L362->SetBinContent(38,7639.286); h_SL1L362->SetBinContent(39,7367.857); h_SL1L362->SetBinContent(40,7542.857); h_SL1L362->SetBinContent(41,7625); h_SL1L362->SetBinContent(42,7371.429); h_SL1L362->SetBinContent(43,7385.714); h_SL1L362->SetBinContent(44,7142.857); h_SL1L362->SetBinContent(45,7507.143); h_SL1L362->SetBinContent(46,6964.286); h_SL1L362->SetBinContent(47,5628.571); h_SL1L362->SetBinContent(48,5567.857); h_SL1L362->SetBinContent(49,5753.571); h_SL1L362->SetBinContent(50,5232.143); h_SL1L362->SetBinContent(51,5007.143); h_SL1L362->SetBinContent(52,5678.571); h_SL1L362->SetBinContent(53,5764.286); h_SL1L362->SetBinContent(54,5603.571); h_SL1L362->SetBinContent(55,4442.857); h_SL1L362->SetBinContent(56,4639.286); h_SL1L362->SetMaximum(24478.57); 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,3621.428); h_SL1L463->SetBinContent(3,4285.714); h_SL1L463->SetBinContent(4,5392.857); h_SL1L463->SetBinContent(5,6035.714); h_SL1L463->SetBinContent(6,6439.286); h_SL1L463->SetBinContent(7,6671.429); h_SL1L463->SetBinContent(8,7060.714); h_SL1L463->SetBinContent(9,7678.571); h_SL1L463->SetBinContent(10,7085.714); h_SL1L463->SetBinContent(11,6535.714); h_SL1L463->SetBinContent(12,7246.429); h_SL1L463->SetBinContent(13,7328.571); h_SL1L463->SetBinContent(14,8817.857); h_SL1L463->SetBinContent(15,7625); h_SL1L463->SetBinContent(16,7989.286); h_SL1L463->SetBinContent(17,7310.714); h_SL1L463->SetBinContent(18,7510.714); h_SL1L463->SetBinContent(19,6875); h_SL1L463->SetBinContent(20,7175); h_SL1L463->SetBinContent(21,7850); h_SL1L463->SetBinContent(22,7400); h_SL1L463->SetBinContent(23,7067.857); h_SL1L463->SetBinContent(24,7507.143); h_SL1L463->SetBinContent(25,7589.286); h_SL1L463->SetBinContent(26,7285.714); h_SL1L463->SetBinContent(27,7257.143); h_SL1L463->SetBinContent(28,7196.429); h_SL1L463->SetBinContent(29,8082.143); h_SL1L463->SetBinContent(30,7892.857); h_SL1L463->SetBinContent(31,7446.429); h_SL1L463->SetBinContent(32,7867.857); h_SL1L463->SetBinContent(33,8082.143); h_SL1L463->SetBinContent(34,8364.285); h_SL1L463->SetBinContent(35,7478.571); h_SL1L463->SetBinContent(36,7578.571); h_SL1L463->SetBinContent(39,3.571429); h_SL1L463->SetBinContent(41,7639.286); h_SL1L463->SetBinContent(42,7396.429); h_SL1L463->SetBinContent(43,6817.857); h_SL1L463->SetBinContent(44,7353.571); h_SL1L463->SetBinContent(45,7278.571); h_SL1L463->SetBinContent(46,7407.143); h_SL1L463->SetBinContent(47,6017.857); h_SL1L463->SetBinContent(48,5407.143); h_SL1L463->SetBinContent(49,5732.143); h_SL1L463->SetBinContent(50,5578.571); h_SL1L463->SetBinContent(51,4696.429); h_SL1L463->SetBinContent(52,5428.571); h_SL1L463->SetBinContent(53,5775); h_SL1L463->SetBinContent(54,5675); h_SL1L463->SetBinContent(55,7.142857); h_SL1L463->SetBinContent(56,4678.571); h_SL1L463->SetMaximum(24478.57); 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 7333"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }