Skip to content

Commit

Permalink
Merge pull request #95 from sebsiebert/smallBugPlotFactory
Browse files Browse the repository at this point in the history
Fixed PlotFactory bug with histo_total and divideByBinWidth
  • Loading branch information
lviliani authored Mar 27, 2020
2 parents ef92746 + 4b2e9d3 commit d0d12f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ShapeAnalysis/python/PlotFactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ def makePlot(self, inputFile, outputDirPlots, variables, cuts, samples, plot, nu
else:
histo_total = fileIn.Get(special_shapeName)

if variable['divideByBinWidth'] == 1:
if variable['divideByBinWidth'] == 1 and histo_total != None:
histo_total.Scale(1,"width")
print ' --> ', histo_total

Expand Down

0 comments on commit d0d12f1

Please sign in to comment.