void RatesPerCell_Removing_noisy_cells_run_5548_SL3() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 14:44:51 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-3.88125,67.5,34.93125); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL3L168 = new TH1D("h_SL3L168","SL3, run 5548",60,0,60); h_SL3L168->SetBinContent(25,8.571428); h_SL3L168->SetBinContent(26,5.714286); h_SL3L168->SetBinContent(27,5.714286); h_SL3L168->SetBinContent(28,8.571428); h_SL3L168->SetBinContent(29,10); h_SL3L168->SetBinContent(30,8.571428); h_SL3L168->SetBinContent(31,7.142858); h_SL3L168->SetBinContent(32,11.42857); h_SL3L168->SetBinContent(37,2.857143); h_SL3L168->SetBinContent(38,1.428571); h_SL3L168->SetBinContent(39,2.857143); h_SL3L168->SetBinContent(40,1.428571); h_SL3L168->SetBinContent(41,11.42857); h_SL3L168->SetBinContent(42,8.571428); h_SL3L168->SetBinContent(43,7.142858); h_SL3L168->SetBinContent(44,11.42857); h_SL3L168->SetBinContent(45,1.428571); h_SL3L168->SetBinContent(46,2.857143); h_SL3L168->SetBinContent(47,2.857143); h_SL3L168->SetBinContent(48,2.857143); h_SL3L168->SetBinContent(49,7.142858); h_SL3L168->SetBinContent(50,4.285714); h_SL3L168->SetBinContent(51,4.285714); h_SL3L168->SetBinContent(52,7.142858); h_SL3L168->SetBinContent(53,4.285714); h_SL3L168->SetBinContent(54,7.142858); h_SL3L168->SetBinContent(55,5.714286); h_SL3L168->SetBinContent(56,5.714286); h_SL3L168->SetMaximum(31.05); h_SL3L168->SetEntries(60); h_SL3L168->SetDirectory(0); h_SL3L168->SetStats(0); h_SL3L168->SetLineWidth(2); h_SL3L168->GetXaxis()->SetTitle("Cell"); h_SL3L168->GetXaxis()->SetLabelFont(42); h_SL3L168->GetXaxis()->SetLabelSize(0.035); h_SL3L168->GetXaxis()->SetTitleSize(0.035); h_SL3L168->GetXaxis()->SetTitleFont(42); h_SL3L168->GetYaxis()->SetTitle("Hz"); h_SL3L168->GetYaxis()->SetLabelFont(42); h_SL3L168->GetYaxis()->SetLabelSize(0.035); h_SL3L168->GetYaxis()->SetTitleSize(0.035); h_SL3L168->GetYaxis()->SetTitleOffset(1.45); h_SL3L168->GetYaxis()->SetTitleFont(42); h_SL3L168->GetZaxis()->SetLabelFont(42); h_SL3L168->GetZaxis()->SetLabelSize(0.035); h_SL3L168->GetZaxis()->SetTitleSize(0.035); h_SL3L168->GetZaxis()->SetTitleFont(42); h_SL3L168->Draw(""); TH1D *h_SL3L269 = new TH1D("h_SL3L269","",60,0,60); h_SL3L269->SetBinContent(13,5.714286); h_SL3L269->SetBinContent(14,4.285714); h_SL3L269->SetBinContent(15,4.285714); h_SL3L269->SetBinContent(16,7.142858); h_SL3L269->SetBinContent(21,5.714286); h_SL3L269->SetBinContent(22,1.428571); h_SL3L269->SetBinContent(23,1.428571); h_SL3L269->SetBinContent(24,5.714286); h_SL3L269->SetBinContent(25,2.857143); h_SL3L269->SetBinContent(26,2.857143); h_SL3L269->SetBinContent(28,2.857143); h_SL3L269->SetBinContent(29,4.285714); h_SL3L269->SetBinContent(30,2.857143); h_SL3L269->SetBinContent(31,2.857143); h_SL3L269->SetBinContent(32,4.285714); h_SL3L269->SetBinContent(33,20); h_SL3L269->SetBinContent(34,14.28572); h_SL3L269->SetBinContent(35,15.71429); h_SL3L269->SetBinContent(36,22.85714); h_SL3L269->SetBinContent(37,24.28572); h_SL3L269->SetBinContent(38,18.57143); h_SL3L269->SetBinContent(39,22.85714); h_SL3L269->SetBinContent(40,21.42857); h_SL3L269->SetBinContent(41,11.42857); h_SL3L269->SetBinContent(42,7.142858); h_SL3L269->SetBinContent(43,8.571428); h_SL3L269->SetBinContent(44,11.42857); h_SL3L269->SetBinContent(49,12.85714); h_SL3L269->SetBinContent(50,8.571428); h_SL3L269->SetBinContent(51,10); h_SL3L269->SetBinContent(52,10); h_SL3L269->SetBinContent(53,14.28572); h_SL3L269->SetBinContent(54,14.28572); h_SL3L269->SetBinContent(55,15.71429); h_SL3L269->SetBinContent(56,12.85714); h_SL3L269->SetMaximum(27.92857); h_SL3L269->SetEntries(60); h_SL3L269->SetDirectory(0); h_SL3L269->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL3L269->SetLineColor(ci); h_SL3L269->SetLineWidth(2); h_SL3L269->GetXaxis()->SetTitle("Cell"); h_SL3L269->GetXaxis()->SetLabelFont(42); h_SL3L269->GetXaxis()->SetLabelSize(0.035); h_SL3L269->GetXaxis()->SetTitleSize(0.035); h_SL3L269->GetXaxis()->SetTitleFont(42); h_SL3L269->GetYaxis()->SetTitle("Hz"); h_SL3L269->GetYaxis()->SetLabelFont(42); h_SL3L269->GetYaxis()->SetLabelSize(0.035); h_SL3L269->GetYaxis()->SetTitleSize(0.035); h_SL3L269->GetYaxis()->SetTitleOffset(1.45); h_SL3L269->GetYaxis()->SetTitleFont(42); h_SL3L269->GetZaxis()->SetLabelFont(42); h_SL3L269->GetZaxis()->SetLabelSize(0.035); h_SL3L269->GetZaxis()->SetTitleSize(0.035); h_SL3L269->GetZaxis()->SetTitleFont(42); h_SL3L269->Draw("same"); TH1D *h_SL3L370 = new TH1D("h_SL3L370","",60,0,60); h_SL3L370->SetBinContent(13,8.571428); h_SL3L370->SetBinContent(14,10); h_SL3L370->SetBinContent(15,8.571428); h_SL3L370->SetBinContent(16,10); h_SL3L370->SetBinContent(21,10); h_SL3L370->SetBinContent(22,7.142858); h_SL3L370->SetBinContent(23,2.857143); h_SL3L370->SetBinContent(24,7.142858); h_SL3L370->SetBinContent(25,5.714286); h_SL3L370->SetBinContent(26,8.571428); h_SL3L370->SetBinContent(27,8.571428); h_SL3L370->SetBinContent(28,5.714286); h_SL3L370->SetBinContent(29,2.857143); h_SL3L370->SetBinContent(30,2.857143); h_SL3L370->SetBinContent(31,1.428571); h_SL3L370->SetBinContent(32,1.428571); h_SL3L370->SetBinContent(33,18.57143); h_SL3L370->SetBinContent(34,8.571428); h_SL3L370->SetBinContent(35,11.42857); h_SL3L370->SetBinContent(36,15.71429); h_SL3L370->SetBinContent(37,18.57143); h_SL3L370->SetBinContent(38,18.57143); h_SL3L370->SetBinContent(39,18.57143); h_SL3L370->SetBinContent(40,20); h_SL3L370->SetBinContent(41,12.85714); h_SL3L370->SetBinContent(42,5.714286); h_SL3L370->SetBinContent(43,2.857143); h_SL3L370->SetBinContent(44,8.571428); h_SL3L370->SetBinContent(51,1.428571); h_SL3L370->SetBinContent(53,14.28572); h_SL3L370->SetBinContent(54,8.571428); h_SL3L370->SetBinContent(55,7.142858); h_SL3L370->SetBinContent(56,14.28572); h_SL3L370->SetMaximum(27.92857); h_SL3L370->SetEntries(60); h_SL3L370->SetDirectory(0); h_SL3L370->SetStats(0); ci = TColor::GetColor("#009900"); h_SL3L370->SetLineColor(ci); h_SL3L370->SetLineWidth(2); h_SL3L370->GetXaxis()->SetTitle("Cell"); h_SL3L370->GetXaxis()->SetLabelFont(42); h_SL3L370->GetXaxis()->SetLabelSize(0.035); h_SL3L370->GetXaxis()->SetTitleSize(0.035); h_SL3L370->GetXaxis()->SetTitleFont(42); h_SL3L370->GetYaxis()->SetTitle("Hz"); h_SL3L370->GetYaxis()->SetLabelFont(42); h_SL3L370->GetYaxis()->SetLabelSize(0.035); h_SL3L370->GetYaxis()->SetTitleSize(0.035); h_SL3L370->GetYaxis()->SetTitleOffset(1.45); h_SL3L370->GetYaxis()->SetTitleFont(42); h_SL3L370->GetZaxis()->SetLabelFont(42); h_SL3L370->GetZaxis()->SetLabelSize(0.035); h_SL3L370->GetZaxis()->SetTitleSize(0.035); h_SL3L370->GetZaxis()->SetTitleFont(42); h_SL3L370->Draw("same"); TH1D *h_SL3L471 = new TH1D("h_SL3L471","",60,0,60); h_SL3L471->SetBinContent(5,2.857143); h_SL3L471->SetBinContent(7,1.428571); h_SL3L471->SetBinContent(8,4.285714); h_SL3L471->SetBinContent(17,5.714286); h_SL3L471->SetBinContent(18,4.285714); h_SL3L471->SetBinContent(19,5.714286); h_SL3L471->SetBinContent(20,7.142858); h_SL3L471->SetBinContent(25,7.142858); h_SL3L471->SetBinContent(26,5.714286); h_SL3L471->SetBinContent(27,4.285714); h_SL3L471->SetBinContent(28,8.571428); h_SL3L471->SetBinContent(38,1.428571); h_SL3L471->SetBinContent(49,5.714286); h_SL3L471->SetBinContent(50,4.285714); h_SL3L471->SetBinContent(51,4.285714); h_SL3L471->SetBinContent(52,5.714286); h_SL3L471->SetMaximum(27.92857); h_SL3L471->SetEntries(60); h_SL3L471->SetDirectory(0); h_SL3L471->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL3L471->SetLineColor(ci); h_SL3L471->SetLineWidth(2); h_SL3L471->GetXaxis()->SetTitle("Cell"); h_SL3L471->GetXaxis()->SetLabelFont(42); h_SL3L471->GetXaxis()->SetLabelSize(0.035); h_SL3L471->GetXaxis()->SetTitleSize(0.035); h_SL3L471->GetXaxis()->SetTitleFont(42); h_SL3L471->GetYaxis()->SetTitle("Hz"); h_SL3L471->GetYaxis()->SetLabelFont(42); h_SL3L471->GetYaxis()->SetLabelSize(0.035); h_SL3L471->GetYaxis()->SetTitleSize(0.035); h_SL3L471->GetYaxis()->SetTitleOffset(1.45); h_SL3L471->GetYaxis()->SetTitleFont(42); h_SL3L471->GetZaxis()->SetLabelFont(42); h_SL3L471->GetZaxis()->SetLabelSize(0.035); h_SL3L471->GetZaxis()->SetTitleSize(0.035); h_SL3L471->GetZaxis()->SetTitleFont(42); h_SL3L471->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_SL3L1","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_SL3L2","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_SL3L3","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_SL3L4","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("SL3, run 5548"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }