25 |
|
help="Minimum of y axis") |
26 |
|
parser.add_option("--ymax", dest="setYMax", |
27 |
|
help="Maximum of y axis") |
28 |
+ |
parser.add_option("-E", "--ratioRelErrMax", dest="ratioRelErrMax", |
29 |
+ |
help="maximum error used in rebinning the ratio histogram") |
30 |
|
|
31 |
|
(arguments, args) = parser.parse_args() |
32 |
|
|
565 |
|
Canvas.cd(2) |
566 |
|
BgSum = Stack.GetStack().Last() |
567 |
|
if makeRatioPlots: |
568 |
< |
Comparison = ratioHistogram(DataHistograms[0],BgSum) |
568 |
> |
if arguments.ratioRelErrMax: |
569 |
> |
Comparison = ratioHistogram(DataHistograms[0],BgSum,arguments.ratioRelErrMax) |
570 |
> |
else: |
571 |
> |
Comparison = ratioHistogram(DataHistograms[0],BgSum) |
572 |
|
elif makeDiffPlots: |
573 |
|
Comparison = DataHistograms[0].Clone("diff") |
574 |
|
Comparison.Add(BgSum,-1) |