Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
robervalwalsh committed Apr 25, 2018
1 parent bbfc67d commit 5673022
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions test/submitCrab3Data.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
RUN_RANGE = ''
UNITS_PER_JOB = 500
TYPE = 'DATA'
CAMPAIGN = 'Run2016/80x_moriond17_reminiaod_03Feb2017_v1'
CAMPAIGN = 'Run2016/80x_moriond17_reminiaod_03Feb2017_deepflav_v1'

ARGS = sys.argv
PSET = ARGS[1]
Expand Down Expand Up @@ -108,7 +108,7 @@
outtext = "Submitting dataset " + dataset + "..."
print (O+str(outtext)+W)
#
# crabCommand('submit', config = config)
crabCommand('submit', config = config)
print (O+"--------------------------------"+W)
print

Expand Down
17 changes: 9 additions & 8 deletions test/submitCrab3MC.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

# ---
# Some parameter steering
UNITS_PER_JOB = 2
UNITS_PER_JOB = 200
TYPE = 'MC'
CAMPAIGN = 'Moriond17/80x_moriond17_data03Feb2017_v1'

Expand Down Expand Up @@ -77,14 +77,16 @@
config.Data.unitsPerJob = UNITS_PER_JOB
config.Data.totalUnits = -1
config.Data.outLFNDirBase = BASEOUTDIR + '/'
# config.Data.inputDBS = 'https://cmsweb.cern.ch/dbs/prod/phys03/DBSReader/'
config.Data.inputDBS = 'https://cmsweb.cern.ch/dbs/prod/phys03/DBSReader/'
# config.Data.allowNonValidInputDataset = True # If dataset not valid yet, will run over valid files only

# ====== JOBTYPE
# config.JobType.inputFiles = ['Fall15_25nsV2_MC_PtResolution_AK4PFPuppi.txt','Fall15_25nsV2_MC_PtResolution_AK4PFchs.txt','Fall15_25nsV2_MC_SF_AK4PFPuppi.txt','Fall15_25nsV2_MC_SF_AK4PFchs.txt']

for dataset in datasets:
dataset=dataset.replace(" ", "")
if dataset[0] == '#':
continue
cross_section = 1.
if len(dataset.split(',')) > 1:
cross_section = dataset.split(',')[1].split('\n')[0]
Expand All @@ -96,18 +98,17 @@
dataset_cond = dataset.split('/')[2]
dataset_tier = dataset.split('/')[3]



#
config.Data.inputDataset = dataset
config.Data.outputDatasetTag = dataset_cond
#
config.General.requestName = dataset_name
# use if needed in private productions (modify accordingly)
# processname = dataset_cond.split('_')
# config.General.requestName += '_'+processname[0]+'-'+processname[1]+'_oldGT'
# print config.General.requestName
#
processname = dataset_cond.split('_')
config.General.requestName += '_'+processname[0]+'-'+processname[1]
print config.General.requestName

process.MssmHbb.CrossSection = cms.double(cross_section)
psettmp = pset+'_tmp.py'
f = open(psettmp, 'w')
Expand All @@ -118,7 +119,7 @@
#
outtext = "Submitting dataset " + dataset + "..."
print (O+str(outtext)+W)
# crabCommand('submit', config = config)
crabCommand('submit', config = config)
print (O+"--------------------------------"+W)
print
#
Expand Down

0 comments on commit 5673022

Please sign in to comment.