ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/VHbb/python/submitThem.py
(Generate patch)

Comparing UserCode/VHbb/python/submitThem.py (file contents):
Revision 1.17 by peller, Wed Oct 3 10:12:27 2012 UTC vs.
Revision 1.19 by nmohr, Mon Oct 8 15:11:44 2012 UTC

# Line 9 | Line 9 | parser = OptionParser()
9   parser.add_option("-T", "--tag", dest="tag", default="",
10                        help="Tag to run the analysis with, example '8TeV' uses config8TeV and pathConfig8TeV to run the analysis")
11   parser.add_option("-J", "--task", dest="task", default="",
12 <                      help="Task to be done, i.e. 'dc' for Datacards, 'prep' for preparation of Trees, 'plot' to produce plots or 'eval' to write the MVA output or 'sys' to write regression and systematics. ")
12 >                      help="Task to be done, i.e. 'dc' for Datacards, 'prep' for preparation of Trees, 'plot' to produce plots or 'eval' to write the MVA output or 'sys' to write regression and systematics (or 'syseval' for both). ")
13   parser.add_option("-M", "--mass", dest="mass", default="125",
14                        help="Mass for DC or Plots, 110...135")
15   parser.add_option("-S","--samples",dest="samples",default="",
# Line 58 | Line 58 | def submit(job,repDict):
58          subprocess.call([command], shell=True)
59  
60   if opts.task == 'dc':
61 <    DC_vars = config.items('Limit')
61 >    #DC_vars = config.items('Limit')
62 >    DC_vars= (config.get('LimitGeneral','List')).split(',')
63 >    print DC_vars
64 >
65   if opts.task == 'plot':
66      Plot_vars= (config.get('Plot_general','List')).split(',')
67  
# Line 77 | Line 80 | if opts.task == 'plot':
80   elif opts.task == 'dc':
81      repDict['queue'] = 'short.q'
82      for item in DC_vars:
83 <        if 'ZH%s'%opts.mass in item[0] and opts.tag in item[0]:
84 <            submit(item[0],repDict)
85 <        elif 'ZH' in item[0] and opts.tag in item[0] and opts.mass == '*':
86 <            submit(item[0],repDict)
83 >        if 'ZH%s'%opts.mass in item and opts.tag in item:
84 >            submit(item,repDict)
85 >        elif 'ZH' in item and opts.tag in item and opts.mass == '*':
86 >            submit(item,repDict)
87              
88   elif opts.task == 'prep':
89      submit('prepare',repDict)
90  
91 < elif opts.task == 'eval' or opts.task == 'sys':
91 > elif opts.task == 'eval' or opts.task == 'sys' or opts.task == 'syseval':
92      if ( opts.samples == ""):
93          for job in info:
94              submit(job.name,repDict)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines