void RatesPerCell_Removing_noisy_cells_run_5145_SL3() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 14:40:21 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-0.125,67.5,1.125); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL3L167 = new TH1D("h_SL3L167","SL3, run 5145",60,0,60); h_SL3L167->SetMaximum(0); h_SL3L167->SetEntries(60); h_SL3L167->SetDirectory(0); h_SL3L167->SetStats(0); h_SL3L167->SetLineWidth(2); h_SL3L167->GetXaxis()->SetTitle("Cell"); h_SL3L167->GetXaxis()->SetLabelFont(42); h_SL3L167->GetXaxis()->SetLabelSize(0.035); h_SL3L167->GetXaxis()->SetTitleSize(0.035); h_SL3L167->GetXaxis()->SetTitleFont(42); h_SL3L167->GetYaxis()->SetTitle("Hz"); h_SL3L167->GetYaxis()->SetLabelFont(42); h_SL3L167->GetYaxis()->SetLabelSize(0.035); h_SL3L167->GetYaxis()->SetTitleSize(0.035); h_SL3L167->GetYaxis()->SetTitleOffset(1.45); h_SL3L167->GetYaxis()->SetTitleFont(42); h_SL3L167->GetZaxis()->SetLabelFont(42); h_SL3L167->GetZaxis()->SetLabelSize(0.035); h_SL3L167->GetZaxis()->SetTitleSize(0.035); h_SL3L167->GetZaxis()->SetTitleFont(42); h_SL3L167->Draw(""); TH1D *h_SL3L268 = new TH1D("h_SL3L268","",60,0,60); h_SL3L268->SetMaximum(0); h_SL3L268->SetEntries(60); h_SL3L268->SetDirectory(0); h_SL3L268->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL3L268->SetLineColor(ci); h_SL3L268->SetLineWidth(2); h_SL3L268->GetXaxis()->SetTitle("Cell"); h_SL3L268->GetXaxis()->SetLabelFont(42); h_SL3L268->GetXaxis()->SetLabelSize(0.035); h_SL3L268->GetXaxis()->SetTitleSize(0.035); h_SL3L268->GetXaxis()->SetTitleFont(42); h_SL3L268->GetYaxis()->SetTitle("Hz"); h_SL3L268->GetYaxis()->SetLabelFont(42); h_SL3L268->GetYaxis()->SetLabelSize(0.035); h_SL3L268->GetYaxis()->SetTitleSize(0.035); h_SL3L268->GetYaxis()->SetTitleOffset(1.45); h_SL3L268->GetYaxis()->SetTitleFont(42); h_SL3L268->GetZaxis()->SetLabelFont(42); h_SL3L268->GetZaxis()->SetLabelSize(0.035); h_SL3L268->GetZaxis()->SetTitleSize(0.035); h_SL3L268->GetZaxis()->SetTitleFont(42); h_SL3L268->Draw("same"); TH1D *h_SL3L369 = new TH1D("h_SL3L369","",60,0,60); h_SL3L369->SetMaximum(0); h_SL3L369->SetEntries(60); h_SL3L369->SetDirectory(0); h_SL3L369->SetStats(0); ci = TColor::GetColor("#009900"); h_SL3L369->SetLineColor(ci); h_SL3L369->SetLineWidth(2); h_SL3L369->GetXaxis()->SetTitle("Cell"); h_SL3L369->GetXaxis()->SetLabelFont(42); h_SL3L369->GetXaxis()->SetLabelSize(0.035); h_SL3L369->GetXaxis()->SetTitleSize(0.035); h_SL3L369->GetXaxis()->SetTitleFont(42); h_SL3L369->GetYaxis()->SetTitle("Hz"); h_SL3L369->GetYaxis()->SetLabelFont(42); h_SL3L369->GetYaxis()->SetLabelSize(0.035); h_SL3L369->GetYaxis()->SetTitleSize(0.035); h_SL3L369->GetYaxis()->SetTitleOffset(1.45); h_SL3L369->GetYaxis()->SetTitleFont(42); h_SL3L369->GetZaxis()->SetLabelFont(42); h_SL3L369->GetZaxis()->SetLabelSize(0.035); h_SL3L369->GetZaxis()->SetTitleSize(0.035); h_SL3L369->GetZaxis()->SetTitleFont(42); h_SL3L369->Draw("same"); TH1D *h_SL3L470 = new TH1D("h_SL3L470","",60,0,60); h_SL3L470->SetMaximum(0); h_SL3L470->SetEntries(60); h_SL3L470->SetDirectory(0); h_SL3L470->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL3L470->SetLineColor(ci); h_SL3L470->SetLineWidth(2); h_SL3L470->GetXaxis()->SetTitle("Cell"); h_SL3L470->GetXaxis()->SetLabelFont(42); h_SL3L470->GetXaxis()->SetLabelSize(0.035); h_SL3L470->GetXaxis()->SetTitleSize(0.035); h_SL3L470->GetXaxis()->SetTitleFont(42); h_SL3L470->GetYaxis()->SetTitle("Hz"); h_SL3L470->GetYaxis()->SetLabelFont(42); h_SL3L470->GetYaxis()->SetLabelSize(0.035); h_SL3L470->GetYaxis()->SetTitleSize(0.035); h_SL3L470->GetYaxis()->SetTitleOffset(1.45); h_SL3L470->GetYaxis()->SetTitleFont(42); h_SL3L470->GetZaxis()->SetLabelFont(42); h_SL3L470->GetZaxis()->SetLabelSize(0.035); h_SL3L470->GetZaxis()->SetTitleSize(0.035); h_SL3L470->GetZaxis()->SetTitleFont(42); h_SL3L470->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 5145"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }