void TimeBoxPerLayer_Run7693_SL1() { //=========Macro generated from canvas: c/c //========= (Thu Dec 27 12:29:29 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); c->Range(0,0,1,1); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); TH1D *hTimeBox3_SL1L17 = new TH1D("hTimeBox3_SL1L17","",1,-1199,-399); hTimeBox3_SL1L17->SetMaximum(0); hTimeBox3_SL1L17->SetStats(0); hTimeBox3_SL1L17->SetLineWidth(2); hTimeBox3_SL1L17->GetXaxis()->SetTitle("Time (ns)"); hTimeBox3_SL1L17->GetXaxis()->SetLabelFont(42); hTimeBox3_SL1L17->GetXaxis()->SetLabelSize(0.035); hTimeBox3_SL1L17->GetXaxis()->SetTitleSize(0.035); hTimeBox3_SL1L17->GetXaxis()->SetTitleFont(42); hTimeBox3_SL1L17->GetYaxis()->SetTitle("Number of digis"); hTimeBox3_SL1L17->GetYaxis()->SetLabelFont(42); hTimeBox3_SL1L17->GetYaxis()->SetLabelSize(0.035); hTimeBox3_SL1L17->GetYaxis()->SetTitleSize(0.035); hTimeBox3_SL1L17->GetYaxis()->SetTitleOffset(1.45); hTimeBox3_SL1L17->GetYaxis()->SetTitleFont(42); hTimeBox3_SL1L17->GetZaxis()->SetLabelFont(42); hTimeBox3_SL1L17->GetZaxis()->SetLabelSize(0.035); hTimeBox3_SL1L17->GetZaxis()->SetTitleSize(0.035); hTimeBox3_SL1L17->GetZaxis()->SetTitleFont(42); hTimeBox3_SL1L17->Draw("l"); TH1D *hTimeBox3_SL1L28 = new TH1D("hTimeBox3_SL1L28","",1,-1199,-399); hTimeBox3_SL1L28->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); hTimeBox3_SL1L28->SetLineColor(ci); hTimeBox3_SL1L28->SetLineWidth(2); hTimeBox3_SL1L28->GetXaxis()->SetTitle("Time (ns)"); hTimeBox3_SL1L28->GetXaxis()->SetLabelFont(42); hTimeBox3_SL1L28->GetXaxis()->SetLabelSize(0.035); hTimeBox3_SL1L28->GetXaxis()->SetTitleSize(0.035); hTimeBox3_SL1L28->GetXaxis()->SetTitleFont(42); hTimeBox3_SL1L28->GetYaxis()->SetTitle("Number of digis"); hTimeBox3_SL1L28->GetYaxis()->SetLabelFont(42); hTimeBox3_SL1L28->GetYaxis()->SetLabelSize(0.035); hTimeBox3_SL1L28->GetYaxis()->SetTitleSize(0.035); hTimeBox3_SL1L28->GetYaxis()->SetTitleOffset(1.45); hTimeBox3_SL1L28->GetYaxis()->SetTitleFont(42); hTimeBox3_SL1L28->GetZaxis()->SetLabelFont(42); hTimeBox3_SL1L28->GetZaxis()->SetLabelSize(0.035); hTimeBox3_SL1L28->GetZaxis()->SetTitleSize(0.035); hTimeBox3_SL1L28->GetZaxis()->SetTitleFont(42); hTimeBox3_SL1L28->Draw("lsame"); TH1D *hTimeBox3_SL1L39 = new TH1D("hTimeBox3_SL1L39","",1,-1199,-399); hTimeBox3_SL1L39->SetStats(0); ci = TColor::GetColor("#009900"); hTimeBox3_SL1L39->SetLineColor(ci); hTimeBox3_SL1L39->SetLineWidth(2); hTimeBox3_SL1L39->GetXaxis()->SetTitle("Time (ns)"); hTimeBox3_SL1L39->GetXaxis()->SetLabelFont(42); hTimeBox3_SL1L39->GetXaxis()->SetLabelSize(0.035); hTimeBox3_SL1L39->GetXaxis()->SetTitleSize(0.035); hTimeBox3_SL1L39->GetXaxis()->SetTitleFont(42); hTimeBox3_SL1L39->GetYaxis()->SetTitle("Number of digis"); hTimeBox3_SL1L39->GetYaxis()->SetLabelFont(42); hTimeBox3_SL1L39->GetYaxis()->SetLabelSize(0.035); hTimeBox3_SL1L39->GetYaxis()->SetTitleSize(0.035); hTimeBox3_SL1L39->GetYaxis()->SetTitleOffset(1.45); hTimeBox3_SL1L39->GetYaxis()->SetTitleFont(42); hTimeBox3_SL1L39->GetZaxis()->SetLabelFont(42); hTimeBox3_SL1L39->GetZaxis()->SetLabelSize(0.035); hTimeBox3_SL1L39->GetZaxis()->SetTitleSize(0.035); hTimeBox3_SL1L39->GetZaxis()->SetTitleFont(42); hTimeBox3_SL1L39->Draw("lsame"); TH1D *hTimeBox3_SL1L410 = new TH1D("hTimeBox3_SL1L410","",1,-1199,-399); hTimeBox3_SL1L410->SetStats(0); ci = TColor::GetColor("#0000cc"); hTimeBox3_SL1L410->SetLineColor(ci); hTimeBox3_SL1L410->SetLineWidth(2); hTimeBox3_SL1L410->GetXaxis()->SetTitle("Time (ns)"); hTimeBox3_SL1L410->GetXaxis()->SetLabelFont(42); hTimeBox3_SL1L410->GetXaxis()->SetLabelSize(0.035); hTimeBox3_SL1L410->GetXaxis()->SetTitleSize(0.035); hTimeBox3_SL1L410->GetXaxis()->SetTitleFont(42); hTimeBox3_SL1L410->GetYaxis()->SetTitle("Number of digis"); hTimeBox3_SL1L410->GetYaxis()->SetLabelFont(42); hTimeBox3_SL1L410->GetYaxis()->SetLabelSize(0.035); hTimeBox3_SL1L410->GetYaxis()->SetTitleSize(0.035); hTimeBox3_SL1L410->GetYaxis()->SetTitleOffset(1.45); hTimeBox3_SL1L410->GetYaxis()->SetTitleFont(42); hTimeBox3_SL1L410->GetZaxis()->SetLabelFont(42); hTimeBox3_SL1L410->GetZaxis()->SetLabelSize(0.035); hTimeBox3_SL1L410->GetZaxis()->SetTitleSize(0.035); hTimeBox3_SL1L410->GetZaxis()->SetTitleFont(42); hTimeBox3_SL1L410->Draw("lsame"); TLatex * tex = new TLatex(0.12,0.93,"SL1"); tex->SetNDC(); tex->SetTextAlign(12); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.3,0.93,"Used ttrig: -999"); tex->SetNDC(); tex->SetTextAlign(12); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); TPaveText *pt = new TPaveText(-2.353437e-185,-2.353437e-185,-2.353437e-185,-2.353437e-185,"brNDC"); pt->SetFillColor(0); pt->SetTextAlign(12); pt->SetTextFont(42); pt->SetTextSize(0.05); AText = pt->AddText("Run 7693"); pt->Draw(); TLegend *leg = new TLegend(-2.353437e-185,-2.353437e-185,-2.353437e-185,-2.353437e-185,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextSize(0.05); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("hTimeBox3_SL1L1","L1","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry=leg->AddEntry("hTimeBox3_SL1L2","L2","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry=leg->AddEntry("hTimeBox3_SL1L3","L3","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry=leg->AddEntry("hTimeBox3_SL1L4","L4","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); leg->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }