1 |
#!/usr/bin/env python
|
2 |
from samplesclass import sample
|
3 |
import pickle
|
4 |
import sys
|
5 |
|
6 |
samplepath=sys.argv[1]
|
7 |
|
8 |
infofile = open(samplepath+'/samples.info','r')
|
9 |
info = pickle.load(infofile)
|
10 |
|
11 |
print '\tLOADED INFO OF %s SAMPLES:'%len(info)
|
12 |
print '\n\n\t\033[1;34mLOADED INFO OF %s SAMPLES\033[1;m\n'%len(info)
|
13 |
|
14 |
for job in info:
|
15 |
print '\t\033[1;31m-->%s: %s\033[1;m'%(job.name,job.group)
|
16 |
print '\t\tstored in file %s'%job.getpath()
|
17 |
print '\t\twith luminosity = %s and xsec = %s'%(job.lumi,job.xsec)
|
18 |
print '\t\tdefined as type %s'%job.type
|
19 |
print '\t\tcuts applied: %s'%job.treecut
|
20 |
print '\t\tsplitiing factor: %s'%job.split
|
21 |
print '\t\tSystematics available:'
|
22 |
for sys in job.SYS: print '\t\t\t\033[1;32m- %s\033[1;m'%sys
|
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()
|