Fork me on GitHub

Changeset 501f858 in git


Ignore:
Timestamp:
Jul 9, 2013, 11:58:00 PM (11 years ago)
Author:
pavel <pavel@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
97510e6
Parents:
b645237
Message:

add comment to processing time plot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/ProcessingTime.C

    rb645237 r501f858  
    1010
    1111TGraphErrors gr;
     12TPaveText comment(0.20, 0.72, 0.50, 0.81, "brNDC");
    1213
    1314TCanvas *canvas;
     
    8081  currentDirectory->cd();
    8182
    82   for(i = 1; i < 8; ++i)
     83  for(i = 1; i < 9; ++i)
    8384  {
    8485    chain->Draw("Event.ProcTime >> time", TString::Format("Jet_size == %d", i+1));
     
    8788  }
    8889
    89   gr.GetXaxis()->SetLimits(1.0, 9.0);
     90  gr.GetXaxis()->SetLimits(1.0, 10.0);
    9091  gr.GetXaxis()->SetTitleOffset(1.5);
    9192  gr.GetYaxis()->SetTitleOffset(1.75);
    92   gr.GetXaxis()->SetTitle("number of jets");
     93  gr.GetXaxis()->SetTitle("jet multiplicity");
    9394  gr.GetYaxis()->SetTitle("processing time per event, ms");
    94   gr.SetMarkerStyle(kFullDotMedium);
     95  gr.SetMarkerStyle(kFullCircle);
     96  gr.SetMarkerSize(1);
     97  gr.SetLineWidth(2);
    9598  gr.Draw("AP");
     99
     100  comment.SetTextSize(kExRootFontSize);
     101  comment.SetTextFont(kExRootFont);
     102  comment.SetTextAlign(22);
     103  comment.SetFillColor(kExRootBackgroundColor);
     104  comment.SetBorderSize(0);
     105  comment.AddText("ttbar + jets events");
     106  comment.Draw();
    96107}
    97108
Note: See TracChangeset for help on using the changeset viewer.