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.11 by peller, Thu Sep 20 10:19:57 2012 UTC vs.
Revision 1.12 by peller, Thu Sep 20 13:10:53 2012 UTC

# Line 49 | Line 49 | def getHistoFromTree(job,path,config,opt
49      xMax=float(options[5])
50  
51      if job.type != 'DATA':
52 <        cutcut=config.get('Cuts',options[7])
52 >    
53 >        if type(options[7])==str:
54 >            cutcut=config.get('Cuts',options[7])
55 >        elif type(options[7])==list:
56 >            cutcut=config.get('Cuts',options[7][0])
57 >            cutcut=cutcut.replace(options[7][1],options[7][2])
58 >            print cutcut
59          if subsample>-1:
60              treeCut='%s & %s & EventForTraining == 0'%(cutcut,job.subcuts[subsample])        
61          else:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines