void TimeBoxPerLayer_Run6310_SL3() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:24:00 2019) 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_SL3L115 = new TH1D("hTimeBox3_SL3L115","",80,830,1630); hTimeBox3_SL3L115->SetMaximum(0); hTimeBox3_SL3L115->SetEntries(80); hTimeBox3_SL3L115->SetStats(0); hTimeBox3_SL3L115->SetLineWidth(2); hTimeBox3_SL3L115->GetXaxis()->SetTitle("Time (ns)"); hTimeBox3_SL3L115->GetXaxis()->SetLabelFont(42); hTimeBox3_SL3L115->GetXaxis()->SetLabelSize(0.035); hTimeBox3_SL3L115->GetXaxis()->SetTitleSize(0.035); hTimeBox3_SL3L115->GetXaxis()->SetTitleFont(42); hTimeBox3_SL3L115->GetYaxis()->SetTitle("Number of digis"); hTimeBox3_SL3L115->GetYaxis()->SetLabelFont(42); hTimeBox3_SL3L115->GetYaxis()->SetLabelSize(0.035); hTimeBox3_SL3L115->GetYaxis()->SetTitleSize(0.035); hTimeBox3_SL3L115->GetYaxis()->SetTitleOffset(1.45); hTimeBox3_SL3L115->GetYaxis()->SetTitleFont(42); hTimeBox3_SL3L115->GetZaxis()->SetLabelFont(42); hTimeBox3_SL3L115->GetZaxis()->SetLabelSize(0.035); hTimeBox3_SL3L115->GetZaxis()->SetTitleSize(0.035); hTimeBox3_SL3L115->GetZaxis()->SetTitleFont(42); hTimeBox3_SL3L115->Draw("l"); TH1D *hTimeBox3_SL3L216 = new TH1D("hTimeBox3_SL3L216","",80,830,1630); hTimeBox3_SL3L216->SetEntries(80); hTimeBox3_SL3L216->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); hTimeBox3_SL3L216->SetLineColor(ci); hTimeBox3_SL3L216->SetLineWidth(2); hTimeBox3_SL3L216->GetXaxis()->SetTitle("Time (ns)"); hTimeBox3_SL3L216->GetXaxis()->SetLabelFont(42); hTimeBox3_SL3L216->GetXaxis()->SetLabelSize(0.035); hTimeBox3_SL3L216->GetXaxis()->SetTitleSize(0.035); hTimeBox3_SL3L216->GetXaxis()->SetTitleFont(42); hTimeBox3_SL3L216->GetYaxis()->SetTitle("Number of digis"); hTimeBox3_SL3L216->GetYaxis()->SetLabelFont(42); hTimeBox3_SL3L216->GetYaxis()->SetLabelSize(0.035); hTimeBox3_SL3L216->GetYaxis()->SetTitleSize(0.035); hTimeBox3_SL3L216->GetYaxis()->SetTitleOffset(1.45); hTimeBox3_SL3L216->GetYaxis()->SetTitleFont(42); hTimeBox3_SL3L216->GetZaxis()->SetLabelFont(42); hTimeBox3_SL3L216->GetZaxis()->SetLabelSize(0.035); hTimeBox3_SL3L216->GetZaxis()->SetTitleSize(0.035); hTimeBox3_SL3L216->GetZaxis()->SetTitleFont(42); hTimeBox3_SL3L216->Draw("lsame"); TH1D *hTimeBox3_SL3L317 = new TH1D("hTimeBox3_SL3L317","",80,830,1630); hTimeBox3_SL3L317->SetEntries(80); hTimeBox3_SL3L317->SetStats(0); ci = TColor::GetColor("#009900"); hTimeBox3_SL3L317->SetLineColor(ci); hTimeBox3_SL3L317->SetLineWidth(2); hTimeBox3_SL3L317->GetXaxis()->SetTitle("Time (ns)"); hTimeBox3_SL3L317->GetXaxis()->SetLabelFont(42); hTimeBox3_SL3L317->GetXaxis()->SetLabelSize(0.035); hTimeBox3_SL3L317->GetXaxis()->SetTitleSize(0.035); hTimeBox3_SL3L317->GetXaxis()->SetTitleFont(42); hTimeBox3_SL3L317->GetYaxis()->SetTitle("Number of digis"); hTimeBox3_SL3L317->GetYaxis()->SetLabelFont(42); hTimeBox3_SL3L317->GetYaxis()->SetLabelSize(0.035); hTimeBox3_SL3L317->GetYaxis()->SetTitleSize(0.035); hTimeBox3_SL3L317->GetYaxis()->SetTitleOffset(1.45); hTimeBox3_SL3L317->GetYaxis()->SetTitleFont(42); hTimeBox3_SL3L317->GetZaxis()->SetLabelFont(42); hTimeBox3_SL3L317->GetZaxis()->SetLabelSize(0.035); hTimeBox3_SL3L317->GetZaxis()->SetTitleSize(0.035); hTimeBox3_SL3L317->GetZaxis()->SetTitleFont(42); hTimeBox3_SL3L317->Draw("lsame"); TH1D *hTimeBox3_SL3L418 = new TH1D("hTimeBox3_SL3L418","",80,830,1630); hTimeBox3_SL3L418->SetEntries(80); hTimeBox3_SL3L418->SetStats(0); ci = TColor::GetColor("#0000cc"); hTimeBox3_SL3L418->SetLineColor(ci); hTimeBox3_SL3L418->SetLineWidth(2); hTimeBox3_SL3L418->GetXaxis()->SetTitle("Time (ns)"); hTimeBox3_SL3L418->GetXaxis()->SetLabelFont(42); hTimeBox3_SL3L418->GetXaxis()->SetLabelSize(0.035); hTimeBox3_SL3L418->GetXaxis()->SetTitleSize(0.035); hTimeBox3_SL3L418->GetXaxis()->SetTitleFont(42); hTimeBox3_SL3L418->GetYaxis()->SetTitle("Number of digis"); hTimeBox3_SL3L418->GetYaxis()->SetLabelFont(42); hTimeBox3_SL3L418->GetYaxis()->SetLabelSize(0.035); hTimeBox3_SL3L418->GetYaxis()->SetTitleSize(0.035); hTimeBox3_SL3L418->GetYaxis()->SetTitleOffset(1.45); hTimeBox3_SL3L418->GetYaxis()->SetTitleFont(42); hTimeBox3_SL3L418->GetZaxis()->SetLabelFont(42); hTimeBox3_SL3L418->GetZaxis()->SetLabelSize(0.035); hTimeBox3_SL3L418->GetZaxis()->SetTitleSize(0.035); hTimeBox3_SL3L418->GetZaxis()->SetTitleFont(42); hTimeBox3_SL3L418->Draw("lsame"); TLatex * tex = new TLatex(0.12,0.93,"SL3"); tex->SetNDC(); tex->SetTextAlign(12); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.3,0.93,"Used ttrig: 1030"); 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 6310"); 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_SL3L1","L1","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry=leg->AddEntry("hTimeBox3_SL3L2","L2","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry=leg->AddEntry("hTimeBox3_SL3L3","L3","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry=leg->AddEntry("hTimeBox3_SL3L4","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); }