def submit_batch_job(opts, dt_type, stage, label, mode, sign): script = create_python_script(opts, dt_type, stage, label, mode, sign) bash_file = create_bash_file(opts, label, dt_type, script, 'fit-crossfeeds-%s.sh' %stage, subdir='csf') logfile = tools.set_file(extbase=attr.logpath, prefix='dir_'+label+'/crossfeeds', comname='stage_%s_%s_%s.txt' %(stage, mode, sign)) qjobname = '%s%s%s' % (stage, mode, sign) tools.qsub_jobs(logfile, qjobname, bash_file, opts.test)
def submit_batch_job_allinone(datatype, modes, label, test): script = create_python_script_allinone(datatype, modes, label, test) dt = datatype.replace('/', '-') bash_file_name = 'fit-backgrounds-%s-allinone.sh' % dt bash_file = create_bash_file(script, bash_file_name, 'setpyroot l') logname = '%s_allinone.txt' % datatype.replace('/', '_') logfile = tools.set_file(extbase=attr.logpath, prefix='dir_'+label+'/backgrounds', comname=logname) qn = datatype.split('/')[-1] qjobname = 'bkg%s' % qn tools.qsub_jobs(logfile, qjobname, bash_file, test)
def submit_batch_job_allinone(datatype, modes, label, test): script = create_python_script_allinone(datatype, modes, label, test) dt = datatype.replace('/', '-') bash_file_name = 'fit-backgrounds-%s-allinone.sh' % dt bash_file = create_bash_file(script, bash_file_name, 'setpyroot l') logname = '%s_allinone.txt' % datatype.replace('/', '_') logfile = tools.set_file(extbase=attr.logpath, prefix='dir_' + label + '/backgrounds', comname=logname) qn = datatype.split('/')[-1] qjobname = 'bkg%s' % qn tools.qsub_jobs(logfile, qjobname, bash_file, test)
def submit_batch_job_nondiag(opts, dt_type, stage, label, x, y): script = create_python_script_nondiag(opts, dt_type, stage, label, x, y) bash_file = create_bash_file(opts, label, dt_type, script, 'fit-crossfeeds-%s.sh' %stage, subdir='csf') xstr = pair_to_str(x) ystr = pair_to_str(y) logfile = tools.set_file(extbase=attr.logpath, prefix='dir_'+label+'/crossfeeds', comname='stage_%s_%s_%s.txt' %(stage, xstr, ystr)) qjobname = 'x%s%s' % (xstr, ystr) tools.qsub_jobs(logfile, qjobname, bash_file, opts.test)
def submit_batch_job(datatype, mode, label, lowmass, highmass, opts): script = create_python_script(opts, datatype, mode, label, lowmass, highmass) mode_sign = tools.get_modekey_sign(mode) ms = tools.pair_to_str(mode_sign) bash_file_name = 'fit-%s.sh' % ms bash_file = create_bash_file(opts, label, datatype, script, bash_file_name, subdir='kkmass2/%s_%s' % (lowmass, highmass)) logname = '%s_%s.txt' %(datatype.replace('/', '_'), mode) prefix='dir_%s/kkmass2/%s_%s' % (label, lowmass, highmass) logfile = tools.set_file(extbase=attr.logpath, prefix=prefix, comname=logname) qjobname = 'kkm%s' % ms tools.qsub_jobs(logfile, qjobname, bash_file, opts.test)
def submit_batch_job(datatype, mode, label, opts): mode_sign = tools.get_modekey_sign(mode) ms = tools.pair_to_str(mode_sign) script_name = 'kkmass-%s.py' % ms script = create_python_script(opts, script_name, datatype, mode, label) bash_file_name = 'kkmass-%s.sh' % ms bash_file = create_bash_file(opts, label, datatype, script, bash_file_name, subdir='sel') logname = '%s_%s.txt' %(datatype.replace('/', '_'), mode) logpath = os.path.join(attr.logpath, label, 'sel', 'kkmass') logfile = tools.set_file(extbase=logpath, comname=logname) qjobname = 'sel%s' % ms tools.qsub_jobs(logfile, qjobname, bash_file, opts.test)
def submit_batch_job(datatype, mode, label, opts): script = create_python_script(opts, datatype, mode, label) dt = datatype.replace('/', '-') mode_sign = tools.get_modekey_sign(mode) ms = tools.pair_to_str(mode_sign) bash_file_name = 'fit-sidebands-%s-%s.sh' % (dt, ms) #bash_file = create_bash_file(script, bash_file_name, 'setpyroot l') bash_file = create_bash_file(opts, label, datatype, script, bash_file_name) logname = '%s_%s.txt' %(datatype.replace('/', '_'), mode) logfile = tools.set_file(extbase=attr.logpath, prefix='dir_'+label, comname=logname) qjobname = 'sdb%s' % ms tools.qsub_jobs(logfile, qjobname, bash_file, opts.test)
def submit_batch_job(datatype, mode, label, opts): script = create_python_script(opts, datatype, mode, label) dt = datatype.replace('/', '-') mode_sign = tools.get_modekey_sign(mode) ms = tools.pair_to_str(mode_sign) bash_file_name = 'fit-sidebands-%s-%s.sh' % (dt, ms) #bash_file = create_bash_file(script, bash_file_name, 'setpyroot l') bash_file = create_bash_file(opts, label, datatype, script, bash_file_name) logname = '%s_%s.txt' % (datatype.replace('/', '_'), mode) logfile = tools.set_file(extbase=attr.logpath, prefix='dir_' + label, comname=logname) qjobname = 'sdb%s' % ms tools.qsub_jobs(logfile, qjobname, bash_file, opts.test)
def submit_batch_job(datatype, mode, label, opts): mode_sign = tools.get_modekey_sign(mode) ms = tools.pair_to_str(mode_sign) script_name = 'kkmass-%s.py' % ms script = create_python_script(opts, script_name, datatype, mode, label) bash_file_name = 'kkmass-%s.sh' % ms bash_file = create_bash_file(opts, label, datatype, script, bash_file_name, subdir='sel') logname = '%s_%s.txt' % (datatype.replace('/', '_'), mode) logpath = os.path.join(attr.logpath, label, 'sel', 'kkmass') logfile = tools.set_file(extbase=logpath, comname=logname) qjobname = 'sel%s' % ms tools.qsub_jobs(logfile, qjobname, bash_file, opts.test)
def submit_batch_job(datatype, mode, label, lowmass, highmass, opts): script = create_python_script(opts, datatype, mode, label, lowmass, highmass) mode_sign = tools.get_modekey_sign(mode) ms = tools.pair_to_str(mode_sign) bash_file_name = 'fit-%s.sh' % ms bash_file = create_bash_file(opts, label, datatype, script, bash_file_name, subdir='kkmass2/%s_%s' % (lowmass, highmass)) logname = '%s_%s.txt' % (datatype.replace('/', '_'), mode) prefix = 'dir_%s/kkmass2/%s_%s' % (label, lowmass, highmass) logfile = tools.set_file(extbase=attr.logpath, prefix=prefix, comname=logname) qjobname = 'kkm%s' % ms tools.qsub_jobs(logfile, qjobname, bash_file, opts.test)