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.2 by peller, Tue May 29 15:03:18 2012 UTC vs.
Revision 1.4 by nmohr, Thu Jun 21 13:45:14 2012 UTC

# Line 5 | Line 5 | import ROOT
5   from ROOT import TFile, TTree
6   import ROOT
7   from array import array
8 < from ConfigParser import SafeConfigParser
8 > from BetterConfigParser import BetterConfigParser
9   import sys
10  
11  
12   #load config
13 < config = SafeConfigParser()
13 > config = BetterConfigParser()
14   config.read('./config')
15  
16   #get locations:
# Line 24 | Line 24 | def getScale(job,rescale):
24      CountWithPU = input.Get("CountWithPU")
25      CountWithPU2011B = input.Get("CountWithPU2011B")
26      #print lumi*xsecs[i]/hist.GetBinContent(1)
27 <    return float(job.lumi)*float(job.xsec)*float(job.sf)/(0.46502*CountWithPU.GetBinContent(1)+0.53498*CountWithPU2011B.GetBinContent(1))*rescale/float(job.split)
27 >    return float(job.lumi)*float(job.xsec)*float(job.sf)/(CountWithPU.GetBinContent(1))*rescale/float(job.split)
28  
29  
30   def getHistoFromTree(job,options,rescale=1):

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines