ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/cbrown/AnalysisFramework/DistributedModelCalculations/Systematics/RunScanSystematics.py
(Generate patch)

Comparing UserCode/cbrown/AnalysisFramework/DistributedModelCalculations/Systematics/RunScanSystematics.py (file contents):
Revision 1.4 by buchmann, Tue Aug 16 11:34:41 2011 UTC vs.
Revision 1.5 by buchmann, Tue Aug 16 11:38:44 2011 UTC

# Line 62 | Line 62 | else:
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():

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines