147 |
|
inputFile = TFile(dataset_file) |
148 |
|
Histogram = inputFile.Get(rootDirectory+"/"+channel+"/"+histogramName).Clone() |
149 |
|
Histogram.SetDirectory(0) |
150 |
< |
RebinFactor = int(arguments.rebinFactor) |
151 |
< |
if arguments.rebinFactor and Histogram.GetNbinsX() >= RebinFactor*10: |
152 |
< |
Histogram.Rebin(RebinFactor) |
150 |
> |
if arguments.rebinFactor: |
151 |
> |
RebinFactor = int(arguments.rebinFactor) |
152 |
> |
if Histogram.GetNbinsX() >= RebinFactor*10: |
153 |
> |
Histogram.Rebin(RebinFactor) |
154 |
|
inputFile.Close() |
155 |
|
xAxisLabel = Histogram.GetXaxis().GetTitle() |
156 |
|
histoTitle = Histogram.GetTitle() |