Skip to content

Commit d0d12f1

Browse files
authored
Merge pull request #95 from sebsiebert/smallBugPlotFactory
Fixed PlotFactory bug with histo_total and divideByBinWidth
2 parents ef92746 + 4b2e9d3 commit d0d12f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ShapeAnalysis/python/PlotFactory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ def makePlot(self, inputFile, outputDirPlots, variables, cuts, samples, plot, nu
651651
else:
652652
histo_total = fileIn.Get(special_shapeName)
653653

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

0 commit comments

Comments
 (0)