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

Comparing UserCode/VHbb/python/train.py (file contents):
Revision 1.13 by nmohr, Thu Oct 11 16:53:25 2012 UTC vs.
Revision 1.14 by bortigno, Thu Jan 10 20:03:54 2013 UTC

# Line 1 | Line 1
1   #!/usr/bin/env python
2 from samplesclass import sample
3 from printcolor import printc
4 import pickle
5 import ROOT
6 from ROOT import TFile, TTree
7 import ROOT
8 from array import array
2   from optparse import OptionParser
3   from BetterConfigParser import BetterConfigParser
4   import sys
12 from mvainfos import mvainfo
13 from gethistofromtree import getScale
14
5  
6   #warnings.filterwarnings( action='ignore', category=RuntimeWarning, message='creating converter.*' )
17
18
7   #usage: ./train run gui
8  
9  
# Line 32 | Line 20 | parser.add_option("-C", "--config", dest
20   if opts.config =="":
21          opts.config = "config"
22  
23 +
24 + from samplesclass import sample
25 + from printcolor import printc
26 + import pickle
27 + import ROOT
28 + from ROOT import TFile, TTree
29 + import ROOT
30 + from array import array
31 + from mvainfos import mvainfo
32 + from gethistofromtree import getScale
33 +
34 +
35 +
36   #load config
37   config = BetterConfigParser()
38   config.read(opts.config)
# Line 52 | Line 53 | systematics=systematics.split(' ')
53  
54   weightF=config.get('Weights','weightF')
55  
56 <
57 <
56 > VHbbNameSpace=config.get('VHbbNameSpace','library')
57 > ROOT.gSystem.Load(VHbbNameSpace)
58  
59   def getTree(job,cut,path,subsample=-1):
60      #print path+'/'+job.getpath()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines