CMS 3D CMS Logo

crab_cfg.py
Go to the documentation of this file.
1 from WMCore.Configuration import Configuration
2 from CRABClient.UserUtilities import config, getUsernameFromSiteDB
3 
4 config = Configuration()
5 
6 config.section_("General")
7 config.General.requestName = 'NanoPost1'
8 config.General.transferLogs = True
9 config.section_("JobType")
10 config.JobType.pluginName = 'Analysis'
11 config.JobType.psetName = 'PSet.py'
12 config.JobType.scriptExe = 'crab_script.sh'
13 config.JobType.inputFiles = ['crab_script.py']
14 config.JobType.sendPythonFolder = True
15 config.section_("Data")
16 config.Data.inputDataset = '/DYJetsToLL_1J_TuneCP5_13TeV-amcatnloFXFX-pythia8/RunIIFall17NanoAOD-PU2017_12Apr2018_94X_mc2017_realistic_v14-v1/NANOAODSIM'
17 #config.Data.inputDBS = 'phys03'
18 config.Data.inputDBS = 'global'
19 config.Data.splitting = 'FileBased'
20 #config.Data.splitting = 'EventAwareLumiBased'
21 config.Data.unitsPerJob = 2
22 config.Data.totalUnits = 10
23 
24 config.Data.outLFNDirBase = '/store/user/%s/NanoPost' % (
25  getUsernameFromSiteDB())
26 config.Data.publication = False
27 config.Data.outputDatasetTag = 'NanoTestPost'
28 config.section_("Site")
29 config.Site.storageSite = "T2_DE_DESY"
30 
31 #config.Site.storageSite = "T2_CH_CERN"
32 # config.section_("User")
33 #config.User.voGroup = 'dcms'