115 |
|
return regroup(groups[:iLo] + [groups[iLo]+groups[iHi]] + groups[iHi+1:]) |
116 |
|
|
117 |
|
#don't rebin the histograms of the number of a given object (except for the pileup ones) |
118 |
< |
if (dataHist.GetName().find("num") is not -1 and dataHist.GetName().find("Primaryvertexs") is -1) or dataHist.GetName().find("CutFlow") is not -1: |
118 |
> |
if ((dataHist.GetName().find("num") is not -1 and dataHist.GetName().find("Primaryvertexs") is -1) or |
119 |
> |
dataHist.GetName().find("CutFlow") is not -1 or |
120 |
> |
dataHist.GetName().find("GenMatch") is not -1): |
121 |
|
ratio = dataHist.Clone() |
122 |
|
ratio.Add(mcHist,-1) |
123 |
|
ratio.Divide(mcHist) |