ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/VHbb/python/mvainfos.py
Revision: 1.1
Committed: Wed May 9 09:49:31 2012 UTC (13 years ago) by peller
Content type: text/x-python
Branch: MAIN
CVS Tags: ICHEP8TeV, ichep8TeV, AN-12-181-7TeV_patch1, AN-12-181-7TeV
Log Message:
update

File Contents

# User Rev Content
1 peller 1.1 class mvainfo:
2    
3     def __init__(self,MVAname):
4     self.factoryname=''
5     self.factorysettings=''
6     self.MVAname=MVAname
7     self.MVAtype='' #e.g. BDT
8     self.MVAsettings=''
9     self.weightfilepath=''
10     self.weightfiles='' #?
11     self.sigs=[]
12     self.bkgs=[]
13     self.path=''
14     self.varset=''
15     self.vars=[]
16     self.spectators=[]
17     self.comment=''
18    
19     def getweightfile(self):
20     return self.weightfilepath+'/'+self.factoryname+'_'+self.MVAname+'.weights.xml'
21    
22     def addtreecut(self, cut):
23     if self.treecut == '':
24     self.treecut = cut
25     else:
26     self.treecut = '(%s) && (%s)'%(self.treecut,cut)
27    
28     def addcomment(self, comment):
29     if self.comment == '':
30     self.comment = '- %s'%comment
31     else:
32     self.comment = '%s\n- %s'%(self.comment,comment)