3 |
|
import sys |
4 |
|
import pickle |
5 |
|
import ROOT |
6 |
– |
from ROOT import TFile, TTree |
6 |
|
from array import array |
7 |
|
from myutils import BetterConfigParser, sample, printc, mvainfo, parse_info |
8 |
|
#ToDo: |
50 |
|
|
51 |
|
def getTree(job,cut,path,subsample=-1): |
52 |
|
#print path+'/'+job.getpath() |
53 |
< |
newinput = TFile.Open(path+'/'+job.getpath(),'read') |
53 |
> |
newinput = ROOT.TFile.Open(path+'/'+job.getpath(),'read') |
54 |
|
output.cd() |
55 |
|
Tree = newinput.Get(job.tree) |
56 |
|
#Tree.SetDirectory(0) |
88 |
|
MVAsettings=config.get(run,'MVAsettings') |
89 |
|
fnameOutput = MVAdir+factoryname+'_'+MVAname+'.root' |
90 |
|
#locations |
91 |
< |
path=config.get(run,'path') |
91 |
> |
path=config.get('Directories','SYSout') |
92 |
|
|
93 |
|
TCutname=config.get(run, 'treeCut') |
94 |
|
TCut=config.get('Cuts',TCutname) |