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

Comparing UserCode/VHbb/python/evaluateMVA.py (file contents):
Revision 1.11 by nmohr, Mon Sep 17 15:34:43 2012 UTC vs.
Revision 1.12 by nmohr, Thu Sep 20 13:08:07 2012 UTC

# Line 69 | Line 69 | namelist=namelistIN.split(',')
69   doinfo=bool(int(opts.update))
70  
71   MVAlist=arglist.split(',')
72 + MVAdir=config.get('Directories','vhbbpath')
73  
74   #CONFIG
75   #factory
# Line 82 | Line 83 | factoryname=config.get('factory','factor
83   #MVAinfofiles=[]
84   MVAinfos=[]
85   for MVAname in MVAlist:
86 <    MVAinfofile = open(Wdir+'/weights/'+factoryname+'_'+MVAname+'.info','r')
86 >    MVAinfofile = open(MVAdir+'/data/'+factoryname+'_'+MVAname+'.info','r')
87      MVAinfos.append(pickle.load(MVAinfofile))
88      MVAinfofile.close()
89      
# Line 121 | Line 122 | for i in range(len( MVA_Vars['Nominal'])
122   #        reader.AddSpectator(spectators[i],MVA_spectator_buffer[i])
123   #Load raeder
124   for i in range(0,len(readers)):
125 <    readers[i].BookMVA(MVAinfos[i].MVAname,MVAinfos[i].getweightfile())
125 >    readers[i].BookMVA(MVAinfos[i].MVAname,MVAdir+'/data/'+MVAinfos[i].getweightfile())
126   #--> Now the MVA is booked
127  
128   #Apply samples

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines