Fork me on GitHub

Changeset 6ea86ce in git for examples/ProcessingTime.C


Ignore:
Timestamp:
Jul 10, 2013, 12:44:14 AM (11 years ago)
Author:
pavel <pavel@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
3f4901e
Parents:
c1263ee
Message:

use filled area for processing time plot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/ProcessingTime.C

    rc1263ee r6ea86ce  
    99//------------------------------------------------------------------------------
    1010
    11 TGraphErrors gr;
     11TGraph gr;
     12TGraphErrors grerr;
    1213TPaveText comment(0.20, 0.75, 0.50, 0.84, "brNDC");
    1314
     
    8182  currentDirectory->cd();
    8283
    83   for(i = 1; i < 10; ++i)
     84  for(i = 0; i < 9; ++i)
    8485  {
    85     chain->Draw("Event.ProcTime >> time", TString::Format("Jet_size == %d", i+1));
    86     gr.SetPoint(i, i+1, hist.GetMean()*1000);
    87     gr.SetPointError(i, 0, hist.GetRMS()*1000);
     86    chain->Draw("Event.ProcTime >> time", TString::Format("Jet_size == %d", i+2));
     87    gr.SetPoint(i, i+2, hist.GetMean()*1000);
     88    grerr.SetPoint(i, i+2, hist.GetMean()*1000);
     89    grerr.SetPointError(i, 0, hist.GetRMS()*1000);
    8890  }
    8991
    90   gr.GetXaxis()->SetLimits(1.0, 11.0);
    91   gr.GetXaxis()->SetTitleOffset(1.5);
    92   gr.GetYaxis()->SetTitleOffset(1.75);
    93   gr.GetXaxis()->SetTitle("jet multiplicity");
    94   gr.GetYaxis()->SetTitle("processing time per event, ms");
     92  grerr.GetXaxis()->SetLimits(1.0, 11.0);
     93  grerr.GetXaxis()->SetTitleOffset(1.5);
     94  grerr.GetYaxis()->SetTitleOffset(1.75);
     95  grerr.GetXaxis()->SetTitle("jet multiplicity");
     96  grerr.GetYaxis()->SetTitle("processing time per event, ms");
    9597  gr.SetMarkerStyle(kFullCircle);
    96   gr.SetMarkerColor(kRed);
     98  gr.SetMarkerColor(kBlack);
    9799  gr.SetMarkerSize(1);
    98   gr.SetLineColor(kRed);
     100  gr.SetLineColor(kBlack);
    99101  gr.SetLineWidth(2);
    100   gr.Draw("AP");
     102  grerr.SetFillStyle(1001);
     103  grerr.SetFillColor(16);
     104  grerr.Draw("A3");
     105  gr.Draw("P");
    101106
    102107  comment.SetTextSize(kExRootFontSize);
Note: See TracChangeset for help on using the changeset viewer.