62 |
|
print "Going to purge output directory to avoid overlap with previous runs!" |
63 |
|
purge_output() |
64 |
|
lay_out_groundwork(); |
65 |
+ |
print "Will now recompile to account for any possible changes in the configuration (or setup)" |
66 |
+ |
commands.getoutput("make") |
67 |
|
print "Going to submit "+str(sys.argv[1])+" jobs : " |
68 |
|
fusecommand="hadd -f output/all_systematics.root" |
69 |
|
path=str(os.path.abspath(os.curdir)) |
70 |
|
path=path.replace("/","\/"); |
71 |
|
confcommand="cat Source/calcSys.sh_template | sed 's/SETJZBCUT/"+str(sys.argv[1])+"/' | sed 's/SETNJOBS/"+str(sys.argv[1])+"/' | sed 's/THISDIR/"+str(path)+"/' > output/calcSys.sh" |
72 |
|
commands.getoutput(confcommand) |
73 |
+ |
|
74 |
+ |
sys.exit(-1) |
75 |
|
for ijob in range(0,int(sys.argv[1])): |
76 |
|
pipe=popen("qsub -e /tmp/ -o /tmp/ -N " + "SysCalc"+str(ijob)+ " " + os.curdir + "/output/calcSys.sh"+ " "+str(ijob)) |
77 |
|
for l in pipe.readlines(): |