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.26 by lantonel, Wed Mar 27 14:01:36 2013 UTC vs.
Revision 1.27 by lantonel, Thu Mar 28 10:45:05 2013 UTC

# Line 147 | Line 147 | for channel in channels: # loop over fin
147                  inputFile = TFile(dataset_file)
148                  Histogram = inputFile.Get(rootDirectory+"/"+channel+"/"+histogramName).Clone()
149                  Histogram.SetDirectory(0)
150 <                RebinFactor = int(arguments.rebinFactor)
151 <                if arguments.rebinFactor and Histogram.GetNbinsX() >= RebinFactor*10:
152 <                     Histogram.Rebin(RebinFactor)
150 >                if arguments.rebinFactor:
151 >                    RebinFactor = int(arguments.rebinFactor)
152 >                    if Histogram.GetNbinsX() >= RebinFactor*10:
153 >                        Histogram.Rebin(RebinFactor)
154                  inputFile.Close()
155                  xAxisLabel = Histogram.GetXaxis().GetTitle()
156                  histoTitle = Histogram.GetTitle()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines