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.4 by nmohr, Thu Jun 21 13:45:14 2012 UTC vs.
Revision 1.5 by peller, Mon Jun 25 11:43:56 2012 UTC

# Line 37 | Line 37 | def getHistoFromTree(job,options,rescale
37  
38      if job.type != 'DATA':
39          cutcut=config.get('Cuts',options[7])
40 <        treeCut='%s & EventForTraining == 0'%cutcut
40 >        treeCut='%s & EventForTraining == 0'%(cutcut)
41  
42      elif job.type == 'DATA':
43 <        treeCut=config.get('Cuts',options[8])
43 >        cutcut=config.get('Cuts',options[8])
44 >        treeCut='%s & EventForTraining == 0'%(cutcut)
45 >
46  
47      input = TFile.Open(job.getpath(),'read')
48  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines