Skip to content

Instantly share code, notes, and snippets.

@tahuang1991
Created June 17, 2022 14:56
Show Gist options
  • Save tahuang1991/9dec4b8e56ca0abc39a173a6add65619 to your computer and use it in GitHub Desktop.
Save tahuang1991/9dec4b8e56ca0abc39a173a6add65619 to your computer and use it in GitHub Desktop.
from WMCore.Configuration import Configuration
config = Configuration()
config.section_("General")
config.General.requestName = 'GEMCSCanalyzer0616v1'
config.General.workArea = 'crab_projects'
config.General.transferLogs=False
config.section_("JobType")
config.JobType.pluginName = 'Analysis'
config.JobType.psetName = 'runGEMCSCAnalyzer_cfg.py'
#config.JobType.scriptExe = ''
config.JobType.inputFiles = [] #hadd nano will not be needed once nano tools are in cmssw
config.JobType.sendPythonFolder = True
config.JobType.allowUndistributedCMSSW = True
config.section_("Data")
config.Data.inputDataset = '/RelValSingleMuPt1000/CMSSW_12_4_0_pre3-123X_mcRun3_2021_realistic_v14-v1/GEN-SIM-DIGI-RAW'
config.Data.inputDBS = 'global'
config.Data.splitting = 'FileBased'
#config.Data.splitting = 'EventAwareLumiBased'
config.Data.unitsPerJob = 1
#config.Data.unitsPerJob = 100
#config.Data.totalUnits = 2000
#config.Data.inputDBS='phys03'
username = "tahuang"
config.Data.outLFNDirBase = '/store/user/%s/CSCEmulation/%s/'%(username, config.General.requestName)
config.Data.publication = False
config.section_("Site")
config.Site.storageSite = "T3_CH_CERNBOX" ## or T3_US_FNALLPC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment