void RatesPerCell_Removing_noisy_cells_run_5961_SL1() { //=========Macro generated from canvas: c/c //========= (Mon Jan 14 19:34:27 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-20211.11,67.5,181900); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5961",60,0,60); h_SL1L160->SetBinContent(1,94553.57); h_SL1L160->SetBinContent(2,99660.71); h_SL1L160->SetBinContent(3,100567.9); h_SL1L160->SetBinContent(4,94560.71); h_SL1L160->SetBinContent(5,85807.14); h_SL1L160->SetBinContent(6,90303.57); h_SL1L160->SetBinContent(7,89189.28); h_SL1L160->SetBinContent(8,96042.86); h_SL1L160->SetBinContent(9,92696.43); h_SL1L160->SetBinContent(10,94946.43); h_SL1L160->SetBinContent(11,100200); h_SL1L160->SetBinContent(12,96835.71); h_SL1L160->SetBinContent(13,96735.71); h_SL1L160->SetBinContent(14,92017.86); h_SL1L160->SetBinContent(15,84617.86); h_SL1L160->SetBinContent(16,81064.28); h_SL1L160->SetBinContent(17,80728.57); h_SL1L160->SetBinContent(18,87042.86); h_SL1L160->SetBinContent(19,86828.57); h_SL1L160->SetBinContent(20,86646.43); h_SL1L160->SetBinContent(21,87542.86); h_SL1L160->SetBinContent(22,89446.43); h_SL1L160->SetBinContent(23,85678.57); h_SL1L160->SetBinContent(24,78567.86); h_SL1L160->SetBinContent(25,72146.43); h_SL1L160->SetBinContent(26,75532.14); h_SL1L160->SetBinContent(27,73375); h_SL1L160->SetBinContent(28,74732.14); h_SL1L160->SetBinContent(29,75928.57); h_SL1L160->SetBinContent(30,72507.14); h_SL1L160->SetBinContent(31,71825); h_SL1L160->SetBinContent(32,70160.71); h_SL1L160->SetBinContent(33,73292.86); h_SL1L160->SetBinContent(34,73350); h_SL1L160->SetBinContent(35,75028.57); h_SL1L160->SetBinContent(36,75164.28); h_SL1L160->SetBinContent(37,75410.71); h_SL1L160->SetBinContent(38,74717.86); h_SL1L160->SetBinContent(39,73400); h_SL1L160->SetBinContent(40,67846.43); h_SL1L160->SetBinContent(41,71450); h_SL1L160->SetBinContent(42,74414.28); h_SL1L160->SetBinContent(43,77985.71); h_SL1L160->SetBinContent(44,71232.14); h_SL1L160->SetBinContent(45,67910.71); h_SL1L160->SetBinContent(46,67907.14); h_SL1L160->SetBinContent(47,68796.43); h_SL1L160->SetBinContent(48,68989.28); h_SL1L160->SetBinContent(49,73678.57); h_SL1L160->SetBinContent(50,78385.71); h_SL1L160->SetBinContent(51,78860.71); h_SL1L160->SetBinContent(52,77353.57); h_SL1L160->SetBinContent(53,76650); h_SL1L160->SetBinContent(54,75478.57); h_SL1L160->SetBinContent(55,76482.14); h_SL1L160->SetBinContent(56,85282.14); h_SL1L160->SetBinContent(57,101996.4); h_SL1L160->SetBinContent(58,114650); h_SL1L160->SetBinContent(59,122260.7); h_SL1L160->SetMaximum(161688.8); 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(39,3.571429); h_SL1L261->SetBinContent(40,3.571429); h_SL1L261->SetMaximum(140599.8); 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(7,3.571429); h_SL1L362->SetBinContent(44,3.571429); h_SL1L362->SetBinContent(56,3.571429); h_SL1L362->SetMaximum(140599.8); 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,88571.43); h_SL1L463->SetBinContent(3,83475); h_SL1L463->SetBinContent(4,80678.57); h_SL1L463->SetBinContent(5,78535.71); h_SL1L463->SetBinContent(6,78214.28); h_SL1L463->SetBinContent(7,78692.86); h_SL1L463->SetBinContent(8,84567.86); h_SL1L463->SetBinContent(9,89135.71); h_SL1L463->SetBinContent(10,95642.86); h_SL1L463->SetBinContent(11,109132.1); h_SL1L463->SetBinContent(12,116264.3); h_SL1L463->SetBinContent(13,115860.7); h_SL1L463->SetBinContent(14,120803.6); h_SL1L463->SetBinContent(15,111864.3); h_SL1L463->SetBinContent(16,102189.3); h_SL1L463->SetBinContent(17,95346.43); h_SL1L463->SetBinContent(18,100042.9); h_SL1L463->SetBinContent(19,97185.71); h_SL1L463->SetBinContent(20,93817.86); h_SL1L463->SetBinContent(21,97617.86); h_SL1L463->SetBinContent(22,97571.43); h_SL1L463->SetBinContent(23,95164.28); h_SL1L463->SetBinContent(24,93460.71); h_SL1L463->SetBinContent(25,85082.14); h_SL1L463->SetBinContent(26,84210.71); h_SL1L463->SetBinContent(27,83360.71); h_SL1L463->SetBinContent(28,85778.57); h_SL1L463->SetBinContent(29,81339.28); h_SL1L463->SetBinContent(30,83657.14); h_SL1L463->SetBinContent(31,82260.71); h_SL1L463->SetBinContent(32,77539.28); h_SL1L463->SetBinContent(33,73814.28); h_SL1L463->SetBinContent(34,77825); h_SL1L463->SetBinContent(35,82589.28); h_SL1L463->SetBinContent(36,76578.57); h_SL1L463->SetBinContent(37,68275); h_SL1L463->SetBinContent(38,63407.14); h_SL1L463->SetBinContent(39,66582.14); h_SL1L463->SetBinContent(40,60842.86); h_SL1L463->SetBinContent(41,61682.14); h_SL1L463->SetBinContent(42,69442.86); h_SL1L463->SetBinContent(43,72121.43); h_SL1L463->SetBinContent(44,68367.86); h_SL1L463->SetBinContent(45,60814.29); h_SL1L463->SetBinContent(46,66771.43); h_SL1L463->SetBinContent(47,65121.43); h_SL1L463->SetBinContent(48,62950); h_SL1L463->SetBinContent(49,62232.14); h_SL1L463->SetBinContent(50,66885.71); h_SL1L463->SetBinContent(51,69278.57); h_SL1L463->SetBinContent(52,69460.71); h_SL1L463->SetBinContent(53,68742.86); h_SL1L463->SetBinContent(54,68425); h_SL1L463->SetBinContent(55,3.571429); h_SL1L463->SetBinContent(56,76364.28); h_SL1L463->SetBinContent(57,84642.86); h_SL1L463->SetBinContent(58,103842.9); h_SL1L463->SetBinContent(59,110525); h_SL1L463->SetMaximum(140599.8); 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 5961"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }