ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/VHbb/python/mvainfos.py
Revision: 1.4
Committed: Thu Feb 14 13:12:42 2013 UTC (12 years, 3 months ago) by bortigno
Content type: text/x-python
Branch: MAIN
CVS Tags: lhcp_UnblindFix, hcp_Unblind, lhcp_11April, LHCP_PreAppFixAfterFreeze, LHCP_PreAppFreeze, HEAD
Changes since 1.3: +0 -0 lines
Log Message:
@BUG FIX: Needed also in this directory

File Contents

# Content
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.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)