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 |
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 |
|
|