# | Line 55 | Line 55 | weightF=config.get('Weights','weightF') | |
---|---|---|
55 | ||
56 | ||
57 | def getTree(job,cut,path,subsample=-1): | |
58 | < | print path+'/'+job.getpath() |
58 | > | #print path+'/'+job.getpath() |
59 | newinput = TFile.Open(path+'/'+job.getpath(),'read') | |
60 | output.cd() | |
61 | Tree = newinput.Get(job.tree) | |
# | Line 263 | Line 263 | for var in MVA_Vars['Nominal']: | |
263 | ||
264 | #Execute TMVA | |
265 | factory.SetSignalWeightExpression(weightF) | |
266 | + | factory.SetBackgroundWeightExpression(weightF) |
267 | factory.Verbose() | |
268 | factory.BookMethod(MVAtype,MVAname,MVAsettings) | |
269 | factory.TrainAllMethods() |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |