#$ endset #$ set #$ mz 250 #$ max_events 75000 #$ njobs 300 #$ endset #$ set #$ mz 150 #$ max_events 75000 #$ njobs 500 #$ endset import qondor, seutils, svjqondor, os.path as osp cmssw = qondor.init_cmssw() mz = int(qondor.get_var('mz')) max_events = int(qondor.get_var('max_events')) offset = 2000 # apply an offset to the part to generate new events part = qondor.get_proc_id( ) + 1 + offset # proc_id starts at 0, runSVJ expects starting at 1 physics = { 'year': 2018, 'mz': mz, 'mdark': 20., 'rinv': 0.3, 'boost': 1000., } svjqondor.download_mg_tarball(dst=osp.join(cmssw.cmssw_src,
#$ set #$ mz 650 #$ endset #$ set #$ mz 450 #$ endset #$ set #$ mz 250 #$ endset #$ set #$ mz 150 #$ endset import qondor, seutils, svjqondor, os.path as osp cmssw = qondor.init_cmssw() mz = int(qondor.get_var('mz')) # CMSSW files with ~18k events are hard to manage # Run in blocks of 400 max_events, ~200 evts net per output entries_per_file = 400 n_blocks = 40 physics = { 'year' : 2018, 'mz' : mz, 'mdark' : 20., 'rinv' : 0.3, 'boost' : 0., } svjqondor.download_mg_tarball(dst=osp.join(cmssw.cmssw_src, 'SVJ/Production/test'), **physics) ijob = qondor.get_proc_id() + 1000
parser = argparse.ArgumentParser() parser.add_argument('--dump', action='store_true') args = parser.parse_args() import qondor, seutils cmssw = qondor.init_cmssw() cmssw.run_commands([ 'cd TreeMaker/Production/test', 'cmsRun runMakeTreeFromMiniAOD_cfg.py' ' numevents=-1' ' outfile=outfile' ' scenario=Autumn18sig' ' lostlepton=0' ' doZinv=0' ' systematics=0' ' deepAK8=0' ' deepDoubleB=0' ' doPDFs=0' ' nestedVectors=False ' ' debugjets=1 ' + (' dump=1' if args.dump else '') + (' inputFiles=' + ','.join(qondor.get_item())) ]) expected_outfile = osp.join(cmssw.cmssw_src, 'TreeMaker/Production/test', 'outfile_RA2AnalysisTree.root') seutils.cp( expected_outfile, 'root://cmseos.fnal.gov//store/user/klijnsma/semivis/treemakerht1000_nonested/mz{0}_{1}.root' .format(qondor.get_var('mz'), qondor.get_proc_id()))
import qondor, seutils cmssw = qondor.init_cmssw() cmssw.run_commands([ 'cd TreeMaker/Production/test', 'cmsRun runMakeTreeFromMiniAOD_cfg.py' ' numevents=-1' ' outfile=outfile' ' scenario=Autumn18sig' ' lostlepton=0' ' doZinv=0' ' systematics=0' ' deepAK8=0' ' deepDoubleB=0' ' doPDFs=0' ' nestedVectors=False' ' debugjets=1' ' splitLevel=99' + (' dump=1' if args.dump else '') + (' inputFiles=' + ','.join(qondor.get_item())) ]) expected_outfile = osp.join(cmssw.cmssw_src, 'TreeMaker/Production/test', 'outfile_RA2AnalysisTree.root') seutils.cp( expected_outfile, 'root://cmseos.fnal.gov//store/user/lpcsusyhad/SVJ2017/boosted/treemaker/ht1000_nonested_{date}_mz{mz}/{part}.root' .format(date=qondor.get_submission_time().strftime('%b%d'), mz=qondor.get_var('mz'), part=qondor.get_proc_id()))
# # $ items b=20 ls(root://cmseos.fnal.gov//store/user/lpcsusyhad/SVJ2017/boosted/miniaod/nohtcutfromscratch_Aug25_mz650/5*.root) # #$ endset import qondor, seutils, os.path as osp cmssw = qondor.init_cmssw() cmssw.run_commands([ 'cd TreeMaker/Production/test', 'cmsRun runMakeTreeFromMiniAOD_cfg.py' ' numevents=-1' ' outfile=outfile' ' scenario=Autumn18sig' ' lostlepton=0' ' doZinv=0' ' systematics=0' ' deepAK8=0' ' deepDoubleB=0' ' doPDFs=0' ' nestedVectors=False' ' debugjets=1' ' splitLevel=99' + (' inputFiles=' + ','.join(qondor.get_item())) ]) expected_outfile = osp.join(cmssw.cmssw_src, 'TreeMaker/Production/test', 'outfile_RA2AnalysisTree.root') seutils.cp( expected_outfile, 'root://cmseos.fnal.gov//store/user/lpcsusyhad/SVJ2017/boosted/treemaker/nohtcutfromscratch_{date}_mz{mz}_epf640_series8000/{part}.root' .format(date=qondor.get_submission_time().strftime('%b%d'), mz=qondor.get_var('mz'), part=qondor.get_proc_id()), )