ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/VHbb/python/myutils/mvainfos.py
Revision: 1.1
Committed: Wed Jan 16 16:35:43 2013 UTC (12 years, 3 months ago) by peller
Content type: text/x-python
Branch: MAIN
CVS Tags: lhcp_UnblindFix, hcp_Unblind, lhcp_11April, LHCP_PreAppFixAfterFreeze, LHCP_PreAppFreeze, workingVersionAfterHCP, HEAD
Log Message:
reorganized the whole repository. Macros im myutils, config files in subdirectories. Config file split in parts. Path config file restructured. Moved all path options to the path config. Changed the code accordingly.

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