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() |
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 |
|
|