ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/VHbb/python/submitThem.py
Revision: 1.5
Committed: Thu Sep 20 12:52:44 2012 UTC (12 years, 7 months ago) by bortigno
Content type: text/x-python
Branch: MAIN
Changes since 1.4: +7 -7 lines
Log Message:
export environment in the working node

File Contents

# Content
1 #! /usr/bin/env python
2 import os,time,subprocess
3 #energy='8TeV'
4 energy='7TeV'
5
6 def submit(job,en):
7 command = 'qsub -V -cwd -q all.q -N %s_%s -o /shome/bortigno/VHbbAnalysis/VHbbTest/LOG/%s.out -e /shome/bortigno/VHbbAnalysis/VHbbTest/LOG/%s.err runAll.sh %s %s' %(job,en,job,job,job,en)
8 print command
9 subprocess.call([command], shell=True)
10
11 #theJobs = ['ZH110','ZH125','ZH120','DY','ZH115','ZH130','ZH135','ZZ','DY120','Zmm','ST_s','ST_t','TT','Zee','STbar_s','STbar_t','WZ','WW','STbar_tW','ST_tW']
12 #if energy=='8TeV':
13 # theJobs = ['ZH110','ZH125','ZH120','DY','DY5070','DY70100','DY100','ZH115','ZH130','ZH135','ZZ','DY120','Zmm','ST_s','ST_t','TT','Zee','STbar_s','STbar_t','WZ','WW','STbar_tW','ST_tW']
14 theJobs = ["ZH120"]
15
16 for job in theJobs:
17 submit(job,energy)
18 #time.sleep(10)