File indexing completed on 2024-04-06 11:57:11
0001 from WMCore.Configuration import Configuration
0002 from CRABClient.UserUtilities import getUsername
0003
0004 config = Configuration()
0005
0006 inputList = 'inputFiles.txt'
0007 jobTag = "exampleJobName"
0008 username = getUsername()
0009
0010 config.section_("General")
0011 config.General.requestName = jobTag
0012 config.General.workArea = config.General.requestName
0013 config.General.transferOutputs = True
0014 config.General.transferLogs = False
0015
0016 config.section_("JobType")
0017 config.JobType.pluginName = 'Analysis'
0018 config.JobType.psetName = 'validation_cfg.py'
0019 config.JobType.pyCfgParams = ['config=validation.json', 'runType=crab']
0020 config.JobType.inputFiles = ['validation.json']
0021 config.JobType.numCores = 1
0022 config.JobType.maxMemoryMB = 1200
0023 config.JobType.maxJobRuntimeMin = 900
0024
0025 config.section_("Data")
0026 config.Data.userInputFiles = open(inputList).readlines()
0027 config.Data.totalUnits = len(config.Data.userInputFiles)
0028 config.Data.splitting = 'FileBased'
0029 config.Data.unitsPerJob = 1
0030 config.Data.outputPrimaryDataset = 'AlignmentValidation'
0031 config.Data.outLFNDirBase = '/store/group/alca_trackeralign/' + username + '/' + config.General.requestName
0032 config.Data.publication = False
0033
0034 config.section_("Site")
0035 config.Site.whitelist = ['T2_CH_*','T2_DE_*','T2_FR_*','T2_IT_*']
0036 config.Site.storageSite = 'T2_CH_CERN'