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.12 by lantonel, Thu Feb 21 13:20:26 2013 UTC vs.
Revision 1.13 by lantonel, Thu Feb 21 13:47:39 2013 UTC

# Line 20 | Line 20 | if options.localConfig:
20   condor_dir = set_condor_output_dir(options)
21  
22  
23 + if options.normalizeToData and options.normalizeToUnitArea:
24 +    print "Conflicting normalizations requsted, will normalize to unit area"
25 +    options.normalizeToData = False
26 +
27   from ROOT import TFile, gROOT, gStyle, gDirectory, TStyle, THStack, TH1F, TCanvas, TString, TLegend, TArrow, THStack, TIter, TKey, TPaveLabel
28  
29   gROOT.SetBatch()
# Line 242 | Line 246 | for channel in channels: # loop over fin
246                  NormLabel.SetBorderSize(0)
247                  NormLabel.SetFillColor(0)
248                  NormLabel.SetFillStyle(0)
249 +                NormLabel.Draw()
250 +            elif options.normalizeToUnitArea:
251 +                NormLabel = TPaveLabel(0.1,0.75,0.35,0.85,"Scaled to unit area","NDC")
252 +                NormLabel.SetBorderSize(0)
253 +                NormLabel.SetFillColor(0)
254 +                NormLabel.SetFillStyle(0)
255                  NormLabel.Draw()
256                  
257  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines