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.9 by nmohr, Mon Sep 17 18:23:58 2012 UTC vs.
Revision 1.10 by nmohr, Thu Sep 20 13:11:30 2012 UTC

# Line 43 | Line 43 | gui=opts.verbose
43   global_rescale=2.
44  
45   #get locations:
46 < Wdir=config.get('Directories','Wdir')
46 > MVAdir=config.get('Directories','vhbbpath')+'/data/'
47  
48   #systematics
49   systematics=config.get('systematics','systematics')
# Line 92 | Line 92 | factorysettings=config.get('factory','fa
92   MVAtype=config.get(run,'MVAtype')
93   MVAname=run
94   MVAsettings=config.get(run,'MVAsettings')
95 < fnameOutput = Wdir +'/weights/'+factoryname+'_'+MVAname+'.root'
95 > fnameOutput = MVAdir+factoryname+'_'+MVAname+'.root'
96   #locations
97   path=config.get(run,'path')
98  
# Line 271 | Line 271 | factory.EvaluateAllMethods()
271   output.Write()
272  
273   #WRITE INFOFILE
274 < infofile = open(Wdir+'/weights/'+factoryname+'_'+MVAname+'.info','w')
274 > infofile = open(MVAdir+factoryname+'_'+MVAname+'.info','w')
275   info=mvainfo(MVAname)
276   info.factoryname=factoryname
277   info.factorysettings=factorysettings
278   info.MVAtype=MVAtype
279   info.MVAsettings=MVAsettings
280 < info.weightfilepath=Wdir+'/weights'
280 > info.weightfilepath=MVAdir
281   info.path=path
282   info.varset=treeVarSet
283   info.vars=MVA_Vars['Nominal']

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines