void TimeBoxPerLayer_Run7693_SL2() { //=========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_SL2L111 = new TH1D("hTimeBox3_SL2L111","",1,-1199,-399); hTimeBox3_SL2L111->SetMaximum(0); hTimeBox3_SL2L111->SetStats(0); hTimeBox3_SL2L111->SetLineWidth(2); hTimeBox3_SL2L111->GetXaxis()->SetTitle("Time (ns)"); hTimeBox3_SL2L111->GetXaxis()->SetLabelFont(42); hTimeBox3_SL2L111->GetXaxis()->SetLabelSize(0.035); hTimeBox3_SL2L111->GetXaxis()->SetTitleSize(0.035); hTimeBox3_SL2L111->GetXaxis()->SetTitleFont(42); hTimeBox3_SL2L111->GetYaxis()->SetTitle("Number of digis"); hTimeBox3_SL2L111->GetYaxis()->SetLabelFont(42); hTimeBox3_SL2L111->GetYaxis()->SetLabelSize(0.035); hTimeBox3_SL2L111->GetYaxis()->SetTitleSize(0.035); hTimeBox3_SL2L111->GetYaxis()->SetTitleOffset(1.45); hTimeBox3_SL2L111->GetYaxis()->SetTitleFont(42); hTimeBox3_SL2L111->GetZaxis()->SetLabelFont(42); hTimeBox3_SL2L111->GetZaxis()->SetLabelSize(0.035); hTimeBox3_SL2L111->GetZaxis()->SetTitleSize(0.035); hTimeBox3_SL2L111->GetZaxis()->SetTitleFont(42); hTimeBox3_SL2L111->Draw("l"); TH1D *hTimeBox3_SL2L212 = new TH1D("hTimeBox3_SL2L212","",1,-1199,-399); hTimeBox3_SL2L212->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); hTimeBox3_SL2L212->SetLineColor(ci); hTimeBox3_SL2L212->SetLineWidth(2); hTimeBox3_SL2L212->GetXaxis()->SetTitle("Time (ns)"); hTimeBox3_SL2L212->GetXaxis()->SetLabelFont(42); hTimeBox3_SL2L212->GetXaxis()->SetLabelSize(0.035); hTimeBox3_SL2L212->GetXaxis()->SetTitleSize(0.035); hTimeBox3_SL2L212->GetXaxis()->SetTitleFont(42); hTimeBox3_SL2L212->GetYaxis()->SetTitle("Number of digis"); hTimeBox3_SL2L212->GetYaxis()->SetLabelFont(42); hTimeBox3_SL2L212->GetYaxis()->SetLabelSize(0.035); hTimeBox3_SL2L212->GetYaxis()->SetTitleSize(0.035); hTimeBox3_SL2L212->GetYaxis()->SetTitleOffset(1.45); hTimeBox3_SL2L212->GetYaxis()->SetTitleFont(42); hTimeBox3_SL2L212->GetZaxis()->SetLabelFont(42); hTimeBox3_SL2L212->GetZaxis()->SetLabelSize(0.035); hTimeBox3_SL2L212->GetZaxis()->SetTitleSize(0.035); hTimeBox3_SL2L212->GetZaxis()->SetTitleFont(42); hTimeBox3_SL2L212->Draw("lsame"); TH1D *hTimeBox3_SL2L313 = new TH1D("hTimeBox3_SL2L313","",1,-1199,-399); hTimeBox3_SL2L313->SetStats(0); ci = TColor::GetColor("#009900"); hTimeBox3_SL2L313->SetLineColor(ci); hTimeBox3_SL2L313->SetLineWidth(2); hTimeBox3_SL2L313->GetXaxis()->SetTitle("Time (ns)"); hTimeBox3_SL2L313->GetXaxis()->SetLabelFont(42); hTimeBox3_SL2L313->GetXaxis()->SetLabelSize(0.035); hTimeBox3_SL2L313->GetXaxis()->SetTitleSize(0.035); hTimeBox3_SL2L313->GetXaxis()->SetTitleFont(42); hTimeBox3_SL2L313->GetYaxis()->SetTitle("Number of digis"); hTimeBox3_SL2L313->GetYaxis()->SetLabelFont(42); hTimeBox3_SL2L313->GetYaxis()->SetLabelSize(0.035); hTimeBox3_SL2L313->GetYaxis()->SetTitleSize(0.035); hTimeBox3_SL2L313->GetYaxis()->SetTitleOffset(1.45); hTimeBox3_SL2L313->GetYaxis()->SetTitleFont(42); hTimeBox3_SL2L313->GetZaxis()->SetLabelFont(42); hTimeBox3_SL2L313->GetZaxis()->SetLabelSize(0.035); hTimeBox3_SL2L313->GetZaxis()->SetTitleSize(0.035); hTimeBox3_SL2L313->GetZaxis()->SetTitleFont(42); hTimeBox3_SL2L313->Draw("lsame"); TH1D *hTimeBox3_SL2L414 = new TH1D("hTimeBox3_SL2L414","",1,-1199,-399); hTimeBox3_SL2L414->SetStats(0); ci = TColor::GetColor("#0000cc"); hTimeBox3_SL2L414->SetLineColor(ci); hTimeBox3_SL2L414->SetLineWidth(2); hTimeBox3_SL2L414->GetXaxis()->SetTitle("Time (ns)"); hTimeBox3_SL2L414->GetXaxis()->SetLabelFont(42); hTimeBox3_SL2L414->GetXaxis()->SetLabelSize(0.035); hTimeBox3_SL2L414->GetXaxis()->SetTitleSize(0.035); hTimeBox3_SL2L414->GetXaxis()->SetTitleFont(42); hTimeBox3_SL2L414->GetYaxis()->SetTitle("Number of digis"); hTimeBox3_SL2L414->GetYaxis()->SetLabelFont(42); hTimeBox3_SL2L414->GetYaxis()->SetLabelSize(0.035); hTimeBox3_SL2L414->GetYaxis()->SetTitleSize(0.035); hTimeBox3_SL2L414->GetYaxis()->SetTitleOffset(1.45); hTimeBox3_SL2L414->GetYaxis()->SetTitleFont(42); hTimeBox3_SL2L414->GetZaxis()->SetLabelFont(42); hTimeBox3_SL2L414->GetZaxis()->SetLabelSize(0.035); hTimeBox3_SL2L414->GetZaxis()->SetTitleSize(0.035); hTimeBox3_SL2L414->GetZaxis()->SetTitleFont(42); hTimeBox3_SL2L414->Draw("lsame"); TLatex * tex = new TLatex(0.12,0.93,"SL2"); 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_SL2L1","L1","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry=leg->AddEntry("hTimeBox3_SL2L2","L2","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry=leg->AddEntry("hTimeBox3_SL2L3","L3","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry=leg->AddEntry("hTimeBox3_SL2L4","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); }