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

Comparing UserCode/VHbb/python/gethistofromtree.py (file contents):
Revision 1.1 by peller, Fri May 25 13:07:06 2012 UTC vs.
Revision 1.2 by peller, Tue May 29 15:03:18 2012 UTC

# Line 102 | Line 102 | def orderandadd(histos,typs,setup):
102      num=[0]*len(setup)
103      for i in range(0,len(setup)):
104          for j in range(0,len(histos)):
105 <            if typs[j] == setup[i]:
105 >            if typs[j] in setup[i]:
106                  num[i]+=1
107                  ordnung.append(histos[j])
108                  ordnungtyp.append(typs[j])
# Line 119 | Line 119 | def orderandadd(histos,typs,setup):
119              
120                  #add
121                  histos[k].Add(histos[k+1],1)
122 <                #printc('red','','\t--> added %s to %s'%(typs[k],typs[k+1]))
122 >                printc('magenta','','\t--> added %s to %s'%(typs[k],typs[k+1]))
123                  del histos[k+1]
124                  del typs[k+1]
125  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines