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.1 by buchmann, Mon Aug 15 09:35:05 2011 UTC vs.
Revision 1.2 by buchmann, Mon Aug 15 11:05:07 2011 UTC

# Line 22 | Line 22 | def checklist(joblist,currlist):
22    print "Jobs left:"+str(len(joblist))+" / "+str(len(jobnumbers))
23  
24   def printUsage():
25 <  print "Please provide the following two argument: total number of jobs"
25 >  print "Please provide the following argument: total number of jobs"
26    
27   if(len(sys.argv) != 2 or sys.argv[1] == "-h"):
28    printUsage()
# Line 32 | Line 32 | else:
32    fusecommand="hadd -f output/all_systematics.root"
33    path=str(os.path.abspath(os.curdir))
34    path=path.replace("/","\/");
35 <  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/calcLim.sh"
35 >  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"
36    commands.getoutput(confcommand)
37    for ijob in range(0,int(sys.argv[1])):
38 <    pipe=popen("qsub -e /tmp/ -o /tmp/ -N " + "LimCalc"+str(ijob)+ " " + os.curdir + "/output/calcLim.sh"+ " "+str(ijob))
38 >    pipe=popen("qsub -e /tmp/ -o /tmp/ -N " + "SysCalc"+str(ijob)+ " " + os.curdir + "/output/calcSys.sh"+ " "+str(ijob))
39      for l in pipe.readlines():
40            if l.find("Your job")>-1:
41                    thisjobnumber=int(l[l.index('job ')+4:l.index(' (')])

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines