ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/OSUT3Analysis/Configuration/scripts/makeEfficiencyPlots.py
(Generate patch)

Comparing UserCode/OSUT3Analysis/Configuration/scripts/makeEfficiencyPlots.py (file contents):
Revision 1.1 by lantonel, Tue Jul 23 09:40:00 2013 UTC vs.
Revision 1.2 by lantonel, Fri Aug 2 11:27:46 2013 UTC

# Line 62 | Line 62 | if arguments.makeRatioPlots and argument
62  
63  
64  
65 < from ROOT import TFile, gROOT, gStyle, gDirectory, TStyle, THStack, TH1F, TCanvas, TString, TLegend, TLegendEntry, THStack, TIter, TKey, TPaveLabel, gPad
65 > from ROOT import TFile, gROOT, gStyle, gDirectory, TStyle, TH1F, TCanvas, TString, TLegend, TLegendEntry, TIter, TKey, TPaveLabel, gPad
66  
67  
68   ### setting ROOT options so our plots will look awesome and everyone will love us
# Line 283 | Line 283 | def MakeOneDHist(histogramName):
283          unitEndIndex = xAxisLabel.find("]")
284          
285          if unitBeginIndex is not -1 and unitEndIndex is not -1: #x axis has a unit
286 <            yAxisLabel = "Entries / " + str(Histogram.GetXaxis().GetBinWidth(1)) + " " + xAxisLabel[unitBeginIndex+1:unitEndIndex]
286 >            yAxisLabel = "#epsilon_{ " + cutName + "} (" + str(Histogram.GetXaxis().GetBinWidth(1)) + " " + xAxisLabel[unitBeginIndex+1:unitEndIndex] + " width)"
287          else:
288 <            yAxisLabel = "Entries per bin (" + str(Histogram.GetXaxis().GetBinWidth(1)) + " width)"
288 >            yAxisLabel = "#epsilon_{ " + cutName + "} (" + str(Histogram.GetXaxis().GetBinWidth(1)) + " width)"
289          if arguments.normalizeToUnitArea:
290              yAxisLabel = yAxisLabel + " (Unit Area Norm.)"
291  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines