Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sgnoohc committed Oct 13, 2023
1 parent 0042f68 commit 6671eaf
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions skimmer/condor/submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,20 @@ def split_func(dsname):
# else:
# return 2

def njobs_to_process(dsname):
if "TTTo2L2Nu" in dsname:
return 14
if "DYto2L" in dsname:
return 25
return -1

if __name__ == "__main__":

# Samples
samples = samples.samples_to_submit

# submission tag
tag = "skim_v1"
tag = "skim_v2"

# Task summary for printing out msummary
task_summary = {}
Expand Down Expand Up @@ -65,13 +72,13 @@ def split_func(dsname):
["metis_extraargs", "-d ./"]
]
},
max_jobs = njobs_to_process(ds.get_datasetname()),
cmssw_version = "CMSSW_10_2_13",
scram_arch = "slc7_amd64_gcc700",
input_executable = "{}/condor_executable_metis.sh".format(condorpath), # your condor executable here
tarfile = "{}/package.tar.xz".format(condorpath), # your tarfile with assorted goodies here
special_dir = "skim/{}".format(tag), # output files into /hadoop/cms/store/<user>/<special_dir>
min_completion_fraction = 0.50 if skip_tail else 1.0,
# max_jobs = 1,
)
# Straightforward logic
if not task.complete():
Expand Down

0 comments on commit 6671eaf

Please sign in to comment.