void RatesPerCell_Removing_noisy_cells_run_7053_SL1() { //=========Macro generated from canvas: c/c //========= (Fri Dec 21 17:12:15 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-1734.056,67.5,15606.51); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7053",60,0,60); h_SL1L160->SetBinContent(1,2639.722); h_SL1L160->SetBinContent(2,3305.391); h_SL1L160->SetBinContent(3,3557.886); h_SL1L160->SetBinContent(4,3925.151); h_SL1L160->SetBinContent(5,4016.968); h_SL1L160->SetBinContent(6,4889.224); h_SL1L160->SetBinContent(7,4613.774); h_SL1L160->SetBinContent(8,5692.617); h_SL1L160->SetBinContent(9,5554.893); h_SL1L160->SetBinContent(10,5210.581); h_SL1L160->SetBinContent(11,5554.893); h_SL1L160->SetBinContent(12,6128.745); h_SL1L160->SetBinContent(13,9434.136); h_SL1L160->SetBinContent(14,10490.02); h_SL1L160->SetBinContent(15,10099.8); h_SL1L160->SetBinContent(16,5141.719); h_SL1L160->SetBinContent(17,6013.975); h_SL1L160->SetBinContent(18,6358.286); h_SL1L160->SetBinContent(19,6289.424); h_SL1L160->SetBinContent(20,5577.847); h_SL1L160->SetBinContent(21,6059.883); h_SL1L160->SetBinContent(22,7001.001); h_SL1L160->SetBinContent(23,5440.122); h_SL1L160->SetBinContent(24,6059.883); h_SL1L160->SetBinContent(25,5508.984); h_SL1L160->SetBinContent(26,6863.276); h_SL1L160->SetBinContent(27,6105.791); h_SL1L160->SetBinContent(28,5991.021); h_SL1L160->SetBinContent(29,6610.781); h_SL1L160->SetBinContent(30,6151.699); h_SL1L160->SetBinContent(31,5922.158); h_SL1L160->SetBinContent(32,6036.929); h_SL1L160->SetBinContent(49,5141.719); h_SL1L160->SetBinContent(50,5141.719); h_SL1L160->SetBinContent(51,4384.233); h_SL1L160->SetBinContent(52,4981.04); h_SL1L160->SetBinContent(53,5830.342); h_SL1L160->SetBinContent(54,4521.958); h_SL1L160->SetBinContent(55,3925.151); h_SL1L160->SetBinContent(56,3994.014); h_SL1L160->SetMaximum(13872.45); 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,2892.217); h_SL1L261->SetBinContent(2,3052.896); h_SL1L261->SetBinContent(3,4866.27); h_SL1L261->SetBinContent(4,4636.729); h_SL1L261->SetBinContent(5,4912.178); h_SL1L261->SetBinContent(6,4912.178); h_SL1L261->SetBinContent(7,5531.938); h_SL1L261->SetBinContent(8,5554.893); h_SL1L261->SetBinContent(9,10283.44); h_SL1L261->SetBinContent(10,6450.103); h_SL1L261->SetBinContent(11,5486.03); h_SL1L261->SetBinContent(12,7391.221); h_SL1L261->SetBinContent(13,6197.607); h_SL1L261->SetBinContent(14,7230.542); h_SL1L261->SetBinContent(15,6955.093); h_SL1L261->SetBinContent(16,5761.479); h_SL1L261->SetBinContent(17,6496.011); h_SL1L261->SetBinContent(18,7115.771); h_SL1L261->SetBinContent(19,7207.588); h_SL1L261->SetBinContent(20,5991.021); h_SL1L261->SetBinContent(21,6518.965); h_SL1L261->SetBinContent(22,7161.68); h_SL1L261->SetBinContent(23,6610.781); h_SL1L261->SetBinContent(24,6289.424); h_SL1L261->SetBinContent(25,6909.185); h_SL1L261->SetBinContent(26,6473.057); h_SL1L261->SetBinContent(27,6932.139); h_SL1L261->SetBinContent(28,6335.332); h_SL1L261->SetBinContent(29,7528.945); h_SL1L261->SetBinContent(30,8079.844); h_SL1L261->SetBinContent(31,6702.598); h_SL1L261->SetBinContent(32,7253.496); h_SL1L261->SetBinContent(49,5623.755); h_SL1L261->SetBinContent(50,6128.745); h_SL1L261->SetBinContent(51,5623.755); h_SL1L261->SetBinContent(52,4705.591); h_SL1L261->SetBinContent(53,5417.168); h_SL1L261->SetBinContent(54,6243.516); h_SL1L261->SetBinContent(55,4981.04); h_SL1L261->SetBinContent(56,5118.765); h_SL1L261->SetMaximum(12063.53); 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,2639.722); h_SL1L362->SetBinContent(2,3328.345); h_SL1L362->SetBinContent(3,3879.243); h_SL1L362->SetBinContent(4,5302.397); h_SL1L362->SetBinContent(5,4682.637); h_SL1L362->SetBinContent(6,5623.755); h_SL1L362->SetBinContent(7,5486.03); h_SL1L362->SetBinContent(8,6496.011); h_SL1L362->SetBinContent(9,6679.644); h_SL1L362->SetBinContent(10,5761.479); h_SL1L362->SetBinContent(11,6197.607); h_SL1L362->SetBinContent(12,6978.047); h_SL1L362->SetBinContent(13,6312.378); h_SL1L362->SetBinContent(14,7712.578); h_SL1L362->SetBinContent(15,9250.503); h_SL1L362->SetBinContent(16,6633.735); h_SL1L362->SetBinContent(17,7758.486); h_SL1L362->SetBinContent(18,6128.745); h_SL1L362->SetBinContent(19,6840.322); h_SL1L362->SetBinContent(20,7115.771); h_SL1L362->SetBinContent(21,6932.139); h_SL1L362->SetBinContent(22,6863.276); h_SL1L362->SetBinContent(23,6381.24); h_SL1L362->SetBinContent(24,7483.037); h_SL1L362->SetBinContent(25,6587.827); h_SL1L362->SetBinContent(26,6863.276); h_SL1L362->SetBinContent(27,7276.45); h_SL1L362->SetBinContent(28,7437.129); h_SL1L362->SetBinContent(29,7597.808); h_SL1L362->SetBinContent(30,7391.221); h_SL1L362->SetBinContent(31,7023.955); h_SL1L362->SetBinContent(32,7184.634); h_SL1L362->SetBinContent(49,6013.975); h_SL1L362->SetBinContent(50,5623.755); h_SL1L362->SetBinContent(51,5692.617); h_SL1L362->SetBinContent(52,5210.581); h_SL1L362->SetBinContent(53,6427.148); h_SL1L362->SetBinContent(54,5577.847); h_SL1L362->SetBinContent(55,5256.489); h_SL1L362->SetBinContent(56,4453.096); h_SL1L362->SetMaximum(12063.53); 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,22.9541); h_SL1L463->SetBinContent(3,803.3936); h_SL1L463->SetBinContent(4,275.4492); h_SL1L463->SetBinContent(5,183.6328); h_SL1L463->SetBinContent(11,45.9082); h_SL1L463->SetBinContent(12,45.9082); h_SL1L463->SetBinContent(13,160.6787); h_SL1L463->SetBinContent(14,7023.955); h_SL1L463->SetBinContent(15,5279.443); h_SL1L463->SetBinContent(16,5486.03); h_SL1L463->SetBinContent(31,137.7246); h_SL1L463->SetMaximum(12063.53); 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 7053"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }