forked from cms-hcal-trigger/Validation
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathntuple_submit_template.py
More file actions
45 lines (36 loc) · 2.29 KB
/
ntuple_submit_template.py
File metadata and controls
45 lines (36 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# template for crab submission.
# submit_jobs.py will insert definitions above
conditionType = "def" # default
# if new L1TriggerObjects conditons have been specified with either
# a new tag or file
if NEWCONDITIONS:
conditionType = "new_cond"
from CRABClient.UserUtilities import config
config = config()
config.General.requestName = "hcal_" + "MCrun" + "_" + conditionType
config.General.transferLogs = True
config.General.transferOutputs = True
# Name of the CMSSW configuration file
config.JobType.psetName = 'ntuple_maker_' + conditionType + '.py'
config.JobType.allowUndistributedCMSSW = True
config.JobType.pluginName = 'Analysis'
#config.JobType.maxMemoryMB = 2500
config.JobType.outputFiles = ['L1Ntuple.root']
config.Data.inputDataset = DATASET
config.Data.ignoreLocality = False
config.Data.inputDBS = 'global'
#config.Data.splitting = 'LumiBased'
config.Data.splitting = 'Automatic'
config.Data.unitsPerJob = 5
config.Data.useParent = False
# This string is used to construct the output dataset name
config.Data.outputDatasetTag = 'Hcal' + "MCrun" + '_' + conditionType
# These values only make sense for processing data
# Select input data based on a lumi mask
#config.Data.lumiMask = LUMIMASK
# Select input data based on run-ranges
#config.Data.runRange = str(RUN)
# Where the output files will be transmitted to
config.Data.outLFNDirBase = '/store/group/dpg_hcal/comm_hcal/gillian/LLP_Run3/L1NtupleFramework/'
config.Site.storageSite = OUTPUTSITE
#config.Site.whitelist = ["T3_UK_London_QMUL", "T2_FR_CCIN2P3", "T3_BG_UNI_SOFIA", "T2_CN_Beijing", "T1_RU_JINR", "T2_CH_CSCS", "T2_DE_RWTH", "T3_IT_Bologna", "T1_IT_CNAF", "T3_FR_IPNL"]