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

Comparing UserCode/cbrown/AnalysisFramework/DistributedModelCalculations/Limits/RunScanLimits.py (file contents):
Revision 1.9 by buchmann, Tue Aug 16 11:38:44 2011 UTC vs.
Revision 1.10 by buchmann, Fri Aug 19 20:58:46 2011 UTC

# Line 9 | Line 9 | import time
9  
10   jobnumbers=[]
11   totaljobnumber=0
12 + totjobs=0;
13  
14   def checklist(joblist,currlist):
15    jobfinished=[]
# Line 19 | Line 20 | def checklist(joblist,currlist):
20        jobfinished.append(int(i))
21    for job in jobfinished:
22      joblist.remove(int(job))
23 <  print "Jobs left:"+str(len(joblist))+" / "+str(len(jobnumbers))
23 >  print "Jobs left:"+str(len(joblist))+" / "+str(totjobs)
24  
25   def create_config():
26    command="../../Plotting/Create_All_Plots.exec 1" #this is the command to give us the configuration file :-)
# Line 31 | Line 32 | def lay_out_groundwork():
32    if os.path.isfile("../last_configuration.C"):
33      result="fff"
34      while(result!="" and result!="new"):
35 <      result=raw_input("Configuration file exists - would you like to use this one or create a new one? if you want to create a new one, please write new, if you want to use the existent one please either hit enter: \n")
35 >      result=raw_input("Configuration file exists - would you like to use this one or create a new one? if you want to create a new one, please write new, if you want to use the existing one please either hit enter\n new = generate a new file \n [ENTER] = use existing file: \n")
36      if result=="":
37        print "You've hit enter! Using the existing version ... ";
38      else:
# Line 65 | Line 66 | else:
66                    jobnumbers.append(thisjobnumber)
67                    fusecommand=fusecommand+" output/DistributedLimits_job"+str(ijob)+"_of_"+str(sys.argv[1])+".root"
68    counter=0
69 +  totjobs=sys.argv[1]
70    while(len(jobnumbers)>0 and counter<300) :
71            counter+=1
72            currlist=[]

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines