ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/OSUT3Analysis/Configuration/scripts/makePlots.py
(Generate patch)

Comparing UserCode/OSUT3Analysis/Configuration/scripts/makePlots.py (file contents):
Revision 1.42 by wulsin, Tue Jun 18 12:19:38 2013 UTC vs.
Revision 1.43 by wulsin, Thu Jun 20 09:00:41 2013 UTC

# Line 115 | Line 115 | def ratioHistogram( dataHist, mcHist, re
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)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines