Changeset 6ea86ce in git for examples/ProcessingTime.C
- Timestamp:
- Jul 10, 2013, 12:44:14 AM (11 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 3f4901e
- Parents:
- c1263ee
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/ProcessingTime.C
rc1263ee r6ea86ce 9 9 //------------------------------------------------------------------------------ 10 10 11 TGraphErrors gr; 11 TGraph gr; 12 TGraphErrors grerr; 12 13 TPaveText comment(0.20, 0.75, 0.50, 0.84, "brNDC"); 13 14 … … 81 82 currentDirectory->cd(); 82 83 83 for(i = 1; i < 10; ++i)84 for(i = 0; i < 9; ++i) 84 85 { 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); 88 90 } 89 91 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"); 95 97 gr.SetMarkerStyle(kFullCircle); 96 gr.SetMarkerColor(k Red);98 gr.SetMarkerColor(kBlack); 97 99 gr.SetMarkerSize(1); 98 gr.SetLineColor(k Red);100 gr.SetLineColor(kBlack); 99 101 gr.SetLineWidth(2); 100 gr.Draw("AP"); 102 grerr.SetFillStyle(1001); 103 grerr.SetFillColor(16); 104 grerr.Draw("A3"); 105 gr.Draw("P"); 101 106 102 107 comment.SetTextSize(kExRootFontSize);
Note:
See TracChangeset
for help on using the changeset viewer.