ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/VHbb/python/showmvainfo.py
Revision: 1.2
Committed: Wed May 23 11:44:41 2012 UTC (12 years, 11 months ago) by peller
Content type: text/x-python
Branch: MAIN
CVS Tags: hcpApproval, HCP_unblinding, hcpPreApp, hcpPreAppFreeze, ICHEP8TeV, ichep8TeV, AN-12-181-7TeV_patch1, AN-12-181-7TeV
Changes since 1.1: +1 -1 lines
Log Message:
removed conflicts

File Contents

# User Rev Content
1 peller 1.1 #!/usr/bin/env python
2 peller 1.2 from samplesclass import sample
3 peller 1.1 import pickle
4     import sys
5     import init
6    
7     filename=sys.argv[1]
8    
9     infofile = open(init.Wdir+'/weights/'+filename,'r')
10     job = pickle.load(infofile)
11    
12     print '\n\n\t\033[1;34mLOADED INFO OF %s MVA\033[1;m\n'%job.MVAname
13    
14     print '\t\tfactory name: %s'%job.factoryname
15     print '\t\tfactorysettings: \033[1;31m%s\033[1;m'%job.factorysettings
16     print '\t\tMVAname: %s'%job.MVAname
17     print '\t\tMVAtype: %s'%job.MVAtype
18     print '\t\tMVAsettings: \033[1;31m%s\033[1;m'%job.MVAsettings
19     print '\t\ttrained on: %s'%job.Tpath
20     print '\t\tevaluated on: %s'%job.Epath
21     print '\t\tVariables: \033[1;32m%s\033[1;m'%job.vars
22     print '\t\tSpectators: \033[1;32m%s\033[1;m'%job.spectators
23     comments=str.split(job.comment,'\n')
24     print '\t\tsample info:'
25     for comment in comments:
26     print '\t\t\t'+ comment
27     print ''
28     infofile.close()