void RatesPerCell_Removing_noisy_cells_run_6418_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:38:11 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-7619.613,67.5,68576.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 6418",60,0,60); h_SL1L160->SetBinContent(1,5450); h_SL1L160->SetBinContent(2,4982.143); h_SL1L160->SetBinContent(3,5742.857); h_SL1L160->SetBinContent(4,5875); h_SL1L160->SetBinContent(5,6135.714); h_SL1L160->SetBinContent(6,6425); h_SL1L160->SetBinContent(7,6878.571); h_SL1L160->SetBinContent(8,7200); h_SL1L160->SetBinContent(9,7232.143); h_SL1L160->SetBinContent(10,7485.714); h_SL1L160->SetBinContent(11,7200); h_SL1L160->SetBinContent(12,7396.429); h_SL1L160->SetBinContent(13,7307.143); h_SL1L160->SetBinContent(14,7214.286); h_SL1L160->SetBinContent(15,6739.286); h_SL1L160->SetBinContent(16,7075); h_SL1L160->SetBinContent(17,36203.57); h_SL1L160->SetBinContent(18,7228.571); h_SL1L160->SetBinContent(19,6767.857); h_SL1L160->SetBinContent(20,7317.857); h_SL1L160->SetBinContent(21,7614.286); h_SL1L160->SetBinContent(22,7853.571); h_SL1L160->SetBinContent(23,7192.857); h_SL1L160->SetBinContent(24,7171.429); h_SL1L160->SetBinContent(25,7653.571); h_SL1L160->SetBinContent(26,7635.714); h_SL1L160->SetBinContent(27,7142.857); h_SL1L160->SetBinContent(28,7614.286); h_SL1L160->SetBinContent(29,7267.857); h_SL1L160->SetBinContent(30,7553.571); h_SL1L160->SetBinContent(31,7346.429); h_SL1L160->SetBinContent(32,7225); h_SL1L160->SetBinContent(49,5860.714); h_SL1L160->SetBinContent(50,5857.143); h_SL1L160->SetBinContent(51,5150); h_SL1L160->SetBinContent(52,5207.143); h_SL1L160->SetBinContent(53,5550); h_SL1L160->SetBinContent(54,5132.143); h_SL1L160->SetBinContent(55,4917.857); h_SL1L160->SetBinContent(56,4382.143); h_SL1L160->SetBinContent(57,4425); h_SL1L160->SetBinContent(58,4228.571); h_SL1L160->SetBinContent(59,4114.286); h_SL1L160->SetMaximum(60956.9); 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,25657.14); h_SL1L261->SetBinContent(2,20996.43); h_SL1L261->SetBinContent(3,35914.29); h_SL1L261->SetBinContent(4,46092.86); h_SL1L261->SetBinContent(5,7975); h_SL1L261->SetBinContent(6,7367.857); h_SL1L261->SetBinContent(7,7285.714); h_SL1L261->SetBinContent(8,7650); h_SL1L261->SetBinContent(9,34132.14); h_SL1L261->SetBinContent(10,20814.29); h_SL1L261->SetBinContent(11,11189.29); h_SL1L261->SetBinContent(12,26985.71); h_SL1L261->SetBinContent(13,9950); h_SL1L261->SetBinContent(14,8675); h_SL1L261->SetBinContent(15,7860.714); h_SL1L261->SetBinContent(16,8292.857); h_SL1L261->SetBinContent(17,17553.57); h_SL1L261->SetBinContent(18,9775); h_SL1L261->SetBinContent(19,8539.285); h_SL1L261->SetBinContent(20,16092.86); h_SL1L261->SetBinContent(21,8514.285); h_SL1L261->SetBinContent(22,8792.857); h_SL1L261->SetBinContent(23,8700); h_SL1L261->SetBinContent(24,8317.857); h_SL1L261->SetBinContent(25,15910.71); h_SL1L261->SetBinContent(26,11853.57); h_SL1L261->SetBinContent(27,7921.429); h_SL1L261->SetBinContent(28,15435.71); h_SL1L261->SetBinContent(29,19996.43); h_SL1L261->SetBinContent(30,10557.14); h_SL1L261->SetBinContent(31,10332.14); h_SL1L261->SetBinContent(32,21282.14); h_SL1L261->SetBinContent(49,34785.71); h_SL1L261->SetBinContent(50,12150); h_SL1L261->SetBinContent(51,7207.143); h_SL1L261->SetBinContent(52,18482.14); h_SL1L261->SetBinContent(53,11125); h_SL1L261->SetBinContent(54,6857.143); h_SL1L261->SetBinContent(55,6035.714); h_SL1L261->SetBinContent(56,13157.14); h_SL1L261->SetBinContent(57,8521.429); h_SL1L261->SetBinContent(58,10332.14); h_SL1L261->SetBinContent(59,3982.143); h_SL1L261->SetMaximum(53006.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,10017.86); h_SL1L362->SetBinContent(2,10300); h_SL1L362->SetBinContent(3,7175); h_SL1L362->SetBinContent(4,20382.14); h_SL1L362->SetBinContent(5,7417.857); h_SL1L362->SetBinContent(6,7221.429); h_SL1L362->SetBinContent(7,7539.286); h_SL1L362->SetBinContent(8,8235.714); h_SL1L362->SetBinContent(9,9296.429); h_SL1L362->SetBinContent(10,7950); h_SL1L362->SetBinContent(11,7682.143); h_SL1L362->SetBinContent(12,9939.285); h_SL1L362->SetBinContent(13,8625); h_SL1L362->SetBinContent(14,8096.429); h_SL1L362->SetBinContent(15,7971.429); h_SL1L362->SetBinContent(16,8210.714); h_SL1L362->SetBinContent(17,12142.86); h_SL1L362->SetBinContent(18,8896.429); h_SL1L362->SetBinContent(19,8060.714); h_SL1L362->SetBinContent(20,11896.43); h_SL1L362->SetBinContent(21,8789.285); h_SL1L362->SetBinContent(22,8289.285); h_SL1L362->SetBinContent(23,8182.143); h_SL1L362->SetBinContent(24,8385.714); h_SL1L362->SetBinContent(25,8978.571); h_SL1L362->SetBinContent(26,8178.571); h_SL1L362->SetBinContent(27,8242.857); h_SL1L362->SetBinContent(28,8900); h_SL1L362->SetBinContent(29,11839.29); h_SL1L362->SetBinContent(30,9217.857); h_SL1L362->SetBinContent(31,8817.857); h_SL1L362->SetBinContent(32,11707.14); h_SL1L362->SetBinContent(49,8078.571); h_SL1L362->SetBinContent(50,6625); h_SL1L362->SetBinContent(51,5982.143); h_SL1L362->SetBinContent(52,6500); h_SL1L362->SetBinContent(53,16964.29); h_SL1L362->SetBinContent(54,14142.86); h_SL1L362->SetBinContent(55,6264.286); h_SL1L362->SetBinContent(56,16292.86); h_SL1L362->SetBinContent(57,6564.286); h_SL1L362->SetBinContent(58,5971.429); h_SL1L362->SetBinContent(59,3971.428); h_SL1L362->SetMaximum(53006.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,4092.857); h_SL1L463->SetBinContent(3,5282.143); h_SL1L463->SetBinContent(4,5775); h_SL1L463->SetBinContent(5,6346.429); h_SL1L463->SetBinContent(6,6871.429); h_SL1L463->SetBinContent(7,6871.429); h_SL1L463->SetBinContent(8,7207.143); h_SL1L463->SetBinContent(9,8014.286); h_SL1L463->SetBinContent(10,7675); h_SL1L463->SetBinContent(11,7400); h_SL1L463->SetBinContent(12,7878.571); h_SL1L463->SetBinContent(13,7839.286); h_SL1L463->SetBinContent(14,8335.714); h_SL1L463->SetBinContent(15,7307.143); h_SL1L463->SetBinContent(16,7642.857); h_SL1L463->SetBinContent(17,9857.143); h_SL1L463->SetBinContent(18,7892.857); h_SL1L463->SetBinContent(19,7339.286); h_SL1L463->SetBinContent(20,7367.857); h_SL1L463->SetBinContent(21,8107.143); h_SL1L463->SetBinContent(22,8064.286); h_SL1L463->SetBinContent(23,7314.286); h_SL1L463->SetBinContent(24,7450); h_SL1L463->SetBinContent(25,7721.429); h_SL1L463->SetBinContent(26,7585.714); h_SL1L463->SetBinContent(27,6989.286); h_SL1L463->SetBinContent(28,8146.429); h_SL1L463->SetBinContent(29,8285.714); h_SL1L463->SetBinContent(30,7953.571); h_SL1L463->SetBinContent(31,7889.286); h_SL1L463->SetBinContent(32,8250); h_SL1L463->SetBinContent(49,6482.143); h_SL1L463->SetBinContent(50,6335.714); h_SL1L463->SetBinContent(51,5567.857); h_SL1L463->SetBinContent(52,5614.286); h_SL1L463->SetBinContent(53,6117.857); h_SL1L463->SetBinContent(54,6178.571); h_SL1L463->SetBinContent(56,5357.143); h_SL1L463->SetBinContent(57,4896.429); h_SL1L463->SetBinContent(58,4528.571); h_SL1L463->SetBinContent(59,3735.714); h_SL1L463->SetMaximum(53006.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.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 6418"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }