void RatesPerCell_Removing_noisy_cells_run_5900_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 14:56:23 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-13258.06,67.5,119322.6); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L159 = new TH1D("h_SL1L159","SL1, run 5900",60,0,60); h_SL1L159->SetBinContent(1,56271.43); h_SL1L159->SetBinContent(2,58757.14); h_SL1L159->SetBinContent(3,64114.29); h_SL1L159->SetBinContent(4,61685.71); h_SL1L159->SetBinContent(5,62364.29); h_SL1L159->SetBinContent(6,64092.86); h_SL1L159->SetBinContent(7,63607.14); h_SL1L159->SetBinContent(8,67721.43); h_SL1L159->SetBinContent(9,67542.86); h_SL1L159->SetBinContent(10,69835.71); h_SL1L159->SetBinContent(11,72542.86); h_SL1L159->SetBinContent(12,74985.71); h_SL1L159->SetBinContent(13,74414.28); h_SL1L159->SetBinContent(14,74650); h_SL1L159->SetBinContent(15,70171.43); h_SL1L159->SetBinContent(16,66042.86); h_SL1L159->SetBinContent(17,63992.86); h_SL1L159->SetBinContent(18,71907.14); h_SL1L159->SetBinContent(19,71342.86); h_SL1L159->SetBinContent(20,71292.86); h_SL1L159->SetBinContent(21,73714.28); h_SL1L159->SetBinContent(22,73050); h_SL1L159->SetBinContent(23,70578.57); h_SL1L159->SetBinContent(24,67185.71); h_SL1L159->SetBinContent(25,64742.86); h_SL1L159->SetBinContent(26,64371.43); h_SL1L159->SetBinContent(27,62707.14); h_SL1L159->SetBinContent(28,66171.43); h_SL1L159->SetBinContent(29,66792.86); h_SL1L159->SetBinContent(30,66278.57); h_SL1L159->SetBinContent(31,65785.71); h_SL1L159->SetBinContent(32,66442.86); h_SL1L159->SetBinContent(33,70864.28); h_SL1L159->SetBinContent(34,72071.43); h_SL1L159->SetBinContent(35,73328.57); h_SL1L159->SetBinContent(36,71978.57); h_SL1L159->SetBinContent(37,74135.71); h_SL1L159->SetBinContent(38,71221.43); h_SL1L159->SetBinContent(39,68678.57); h_SL1L159->SetBinContent(40,65864.28); h_SL1L159->SetBinContent(41,66978.57); h_SL1L159->SetBinContent(42,70835.71); h_SL1L159->SetBinContent(43,74064.28); h_SL1L159->SetBinContent(44,71942.86); h_SL1L159->SetBinContent(45,66650); h_SL1L159->SetBinContent(46,66778.57); h_SL1L159->SetBinContent(47,67492.86); h_SL1L159->SetBinContent(48,69328.57); h_SL1L159->SetBinContent(49,69878.57); h_SL1L159->SetBinContent(50,71700); h_SL1L159->SetBinContent(51,72157.14); h_SL1L159->SetBinContent(52,70307.14); h_SL1L159->SetBinContent(53,70957.14); h_SL1L159->SetBinContent(54,70371.43); h_SL1L159->SetBinContent(55,72178.57); h_SL1L159->SetBinContent(56,72792.86); h_SL1L159->SetBinContent(57,77328.57); h_SL1L159->SetBinContent(58,79800); h_SL1L159->SetBinContent(59,80200); h_SL1L159->SetMaximum(106064.5); h_SL1L159->SetEntries(60); h_SL1L159->SetDirectory(0); h_SL1L159->SetStats(0); h_SL1L159->SetLineWidth(2); h_SL1L159->GetXaxis()->SetTitle("Cell"); h_SL1L159->GetXaxis()->SetLabelFont(42); h_SL1L159->GetXaxis()->SetLabelSize(0.035); h_SL1L159->GetXaxis()->SetTitleSize(0.035); h_SL1L159->GetXaxis()->SetTitleFont(42); h_SL1L159->GetYaxis()->SetTitle("Hz"); h_SL1L159->GetYaxis()->SetLabelFont(42); h_SL1L159->GetYaxis()->SetLabelSize(0.035); h_SL1L159->GetYaxis()->SetTitleSize(0.035); h_SL1L159->GetYaxis()->SetTitleOffset(1.45); h_SL1L159->GetYaxis()->SetTitleFont(42); h_SL1L159->GetZaxis()->SetLabelFont(42); h_SL1L159->GetZaxis()->SetLabelSize(0.035); h_SL1L159->GetZaxis()->SetTitleSize(0.035); h_SL1L159->GetZaxis()->SetTitleFont(42); h_SL1L159->Draw(""); TH1D *h_SL1L260 = new TH1D("h_SL1L260","",60,0,60); h_SL1L260->SetBinContent(9,7.142857); h_SL1L260->SetBinContent(35,7.142857); h_SL1L260->SetBinContent(49,11057.14); h_SL1L260->SetBinContent(51,7.142857); h_SL1L260->SetBinContent(52,57.14286); h_SL1L260->SetBinContent(53,78.57143); h_SL1L260->SetBinContent(54,42.85714); h_SL1L260->SetBinContent(55,28.57143); h_SL1L260->SetBinContent(56,1714.286); h_SL1L260->SetMaximum(92230); h_SL1L260->SetEntries(60); h_SL1L260->SetDirectory(0); h_SL1L260->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL1L260->SetLineColor(ci); h_SL1L260->SetLineWidth(2); h_SL1L260->GetXaxis()->SetTitle("Cell"); h_SL1L260->GetXaxis()->SetLabelFont(42); h_SL1L260->GetXaxis()->SetLabelSize(0.035); h_SL1L260->GetXaxis()->SetTitleSize(0.035); h_SL1L260->GetXaxis()->SetTitleFont(42); h_SL1L260->GetYaxis()->SetTitle("Hz"); h_SL1L260->GetYaxis()->SetLabelFont(42); h_SL1L260->GetYaxis()->SetLabelSize(0.035); h_SL1L260->GetYaxis()->SetTitleSize(0.035); h_SL1L260->GetYaxis()->SetTitleOffset(1.45); h_SL1L260->GetYaxis()->SetTitleFont(42); h_SL1L260->GetZaxis()->SetLabelFont(42); h_SL1L260->GetZaxis()->SetLabelSize(0.035); h_SL1L260->GetZaxis()->SetTitleSize(0.035); h_SL1L260->GetZaxis()->SetTitleFont(42); h_SL1L260->Draw("same"); TH1D *h_SL1L361 = new TH1D("h_SL1L361","",60,0,60); h_SL1L361->SetBinContent(53,4407.143); h_SL1L361->SetBinContent(56,6192.857); h_SL1L361->SetBinContent(57,28.57143); h_SL1L361->SetMaximum(92230); h_SL1L361->SetEntries(60); h_SL1L361->SetDirectory(0); h_SL1L361->SetStats(0); ci = TColor::GetColor("#009900"); h_SL1L361->SetLineColor(ci); h_SL1L361->SetLineWidth(2); h_SL1L361->GetXaxis()->SetTitle("Cell"); h_SL1L361->GetXaxis()->SetLabelFont(42); h_SL1L361->GetXaxis()->SetLabelSize(0.035); h_SL1L361->GetXaxis()->SetTitleSize(0.035); h_SL1L361->GetXaxis()->SetTitleFont(42); h_SL1L361->GetYaxis()->SetTitle("Hz"); h_SL1L361->GetYaxis()->SetLabelFont(42); h_SL1L361->GetYaxis()->SetLabelSize(0.035); h_SL1L361->GetYaxis()->SetTitleSize(0.035); h_SL1L361->GetYaxis()->SetTitleOffset(1.45); h_SL1L361->GetYaxis()->SetTitleFont(42); h_SL1L361->GetZaxis()->SetLabelFont(42); h_SL1L361->GetZaxis()->SetLabelSize(0.035); h_SL1L361->GetZaxis()->SetTitleSize(0.035); h_SL1L361->GetZaxis()->SetTitleFont(42); h_SL1L361->Draw("same"); TH1D *h_SL1L462 = new TH1D("h_SL1L462","",60,0,60); h_SL1L462->SetBinContent(2,54485.71); h_SL1L462->SetBinContent(3,56757.14); h_SL1L462->SetBinContent(4,55592.86); h_SL1L462->SetBinContent(5,56835.71); h_SL1L462->SetBinContent(6,57471.43); h_SL1L462->SetBinContent(7,57778.57); h_SL1L462->SetBinContent(8,63385.71); h_SL1L462->SetBinContent(9,63507.14); h_SL1L462->SetBinContent(10,64550); h_SL1L462->SetBinContent(11,69785.71); h_SL1L462->SetBinContent(12,72800); h_SL1L462->SetBinContent(13,70728.57); h_SL1L462->SetBinContent(14,73921.43); h_SL1L462->SetBinContent(15,70550); h_SL1L462->SetBinContent(16,63921.43); h_SL1L462->SetBinContent(17,62314.29); h_SL1L462->SetBinContent(18,68528.57); h_SL1L462->SetBinContent(19,67764.28); h_SL1L462->SetBinContent(20,69135.71); h_SL1L462->SetBinContent(21,71164.28); h_SL1L462->SetBinContent(22,68300); h_SL1L462->SetBinContent(23,68764.28); h_SL1L462->SetBinContent(24,68164.28); h_SL1L462->SetBinContent(25,65500); h_SL1L462->SetBinContent(26,60800); h_SL1L462->SetBinContent(27,59714.29); h_SL1L462->SetBinContent(28,63678.57); h_SL1L462->SetBinContent(29,64492.86); h_SL1L462->SetBinContent(30,64992.86); h_SL1L462->SetBinContent(31,64264.29); h_SL1L462->SetBinContent(32,64935.71); h_SL1L462->SetBinContent(33,65757.14); h_SL1L462->SetBinContent(34,68714.28); h_SL1L462->SetBinContent(35,73792.86); h_SL1L462->SetBinContent(36,69457.14); h_SL1L462->SetBinContent(37,65514.29); h_SL1L462->SetBinContent(38,63264.29); h_SL1L462->SetBinContent(39,65021.43); h_SL1L462->SetBinContent(40,60671.43); h_SL1L462->SetBinContent(41,61942.86); h_SL1L462->SetBinContent(42,65000); h_SL1L462->SetBinContent(43,67921.43); h_SL1L462->SetBinContent(44,69085.71); h_SL1L462->SetBinContent(45,61750); h_SL1L462->SetBinContent(46,66250); h_SL1L462->SetBinContent(47,63328.57); h_SL1L462->SetBinContent(48,62150); h_SL1L462->SetBinContent(49,64192.86); h_SL1L462->SetBinContent(50,66171.43); h_SL1L462->SetBinContent(51,65664.28); h_SL1L462->SetBinContent(52,65671.43); h_SL1L462->SetBinContent(53,66078.57); h_SL1L462->SetBinContent(54,65078.57); h_SL1L462->SetBinContent(55,14.28571); h_SL1L462->SetBinContent(56,66928.57); h_SL1L462->SetBinContent(57,68271.43); h_SL1L462->SetBinContent(58,74400); h_SL1L462->SetBinContent(59,73085.71); h_SL1L462->SetMaximum(92230); h_SL1L462->SetEntries(60); h_SL1L462->SetDirectory(0); h_SL1L462->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL1L462->SetLineColor(ci); h_SL1L462->SetLineWidth(2); h_SL1L462->GetXaxis()->SetTitle("Cell"); h_SL1L462->GetXaxis()->SetLabelFont(42); h_SL1L462->GetXaxis()->SetLabelSize(0.035); h_SL1L462->GetXaxis()->SetTitleSize(0.035); h_SL1L462->GetXaxis()->SetTitleFont(42); h_SL1L462->GetYaxis()->SetTitle("Hz"); h_SL1L462->GetYaxis()->SetLabelFont(42); h_SL1L462->GetYaxis()->SetLabelSize(0.035); h_SL1L462->GetYaxis()->SetTitleSize(0.035); h_SL1L462->GetYaxis()->SetTitleOffset(1.45); h_SL1L462->GetYaxis()->SetTitleFont(42); h_SL1L462->GetZaxis()->SetLabelFont(42); h_SL1L462->GetZaxis()->SetLabelSize(0.035); h_SL1L462->GetZaxis()->SetTitleSize(0.035); h_SL1L462->GetZaxis()->SetTitleFont(42); h_SL1L462->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 5900"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }