ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/VHbb/python/tree_stack.py
(Generate patch)

Comparing UserCode/VHbb/python/tree_stack.py (file contents):
Revision 1.32 by peller, Fri Oct 19 15:44:07 2012 UTC vs.
Revision 1.33 by peller, Mon Oct 22 14:33:42 2012 UTC

# Line 52 | Line 52 | if 'vhbb_TH_BDT' in region:
52      if 'LowPt' in region:
53          var='BDT8_RMed'
54          newregion='LowPt_%s'%d
55    elif 'HighPt' in region:
56        var='BDT8_RTight'
57        newregion='HighPt_%s'%d
55      elif 'HighPtLooseBTag' in region:
56          var='BDT8_RTightLooseBTag'
57          newregion='HighPtLooseBTag_%s'%d
58 +    elif 'HighPt' in region:
59 +        var='BDT8_RTight'
60 +        newregion='HighPt_%s'%d
61      Stack=StackMaker(config,var,newregion,True)
62  
63      log = eval(config.get('Plot:%s'%newregion,'log'))
# Line 88 | Line 88 | if 'vhbb_TH_BDT' in region:
88  
89      #systs=[]
90  
91 <    shapesUp = [[] for _ in range(0,len(setup))]
92 <    shapesDown = [[] for _ in range(0,len(setup))]
91 >    setup2=copy(setup)
92 >    setup2.remove('ZH')
93 >
94 >    shapesUp = [[] for _ in range(0,len(setup2))]
95 >    shapesDown = [[] for _ in range(0,len(setup2))]
96      for s in setup:
97 <        if 'ZH' in s:
97 >        if 'ZH' == s:
98              Overlay=copy(input.Get(Dict[s]))
99 <        histos.append(input.Get(Dict[s]))
100 <        typs.append(s)
101 <        for syst in systs:
102 <            shapesUp[setup.index(s)].append(input.Get(Dict[s]+syst+'Up'))
103 <            shapesDown[setup.index(s)].append(input.Get(Dict[s]+syst+'Down'))
99 >        else:
100 >            histos.append(input.Get(Dict[s]))
101 >            typs.append(s)
102 >            print s
103 >            for syst in systs:
104 >                shapesUp[setup2.index(s)].append(input.Get(Dict[s]+syst+'Up'))
105 >                shapesDown[setup2.index(s)].append(input.Get(Dict[s]+syst+'Down'))
106  
107      #print shapesUp
108  
# Line 144 | Line 149 | if 'vhbb_TH_BDT' in region:
149      datatyps = [None]
150      datanames=[d]
151  
152 +
153 +    histos.append(copy(Overlay))
154 +    typs.append('ZH')
155      #histos.append(copy(Overlay))
156      #typs.append('ZH')
157  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines