ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/VHbb/python/mvainfos.py
Revision: 1.2
Committed: Thu Sep 20 13:08:07 2012 UTC (12 years, 7 months ago) by nmohr
Content type: text/x-python
Branch: MAIN
CVS Tags: workingVersionAfterHCP, hcpApproval, HCP_unblinding, hcpPreApp, hcpPreAppFreeze
Changes since 1.1: +2 -2 lines
Log Message:
Relative path for MVA evaluation

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)