CMS 3D CMS Logo

crabTemplate.py
Go to the documentation of this file.
1 from WMCore.Configuration import Configuration
2 from CRABClient.UserUtilities import getUsername
3 
4 config = Configuration()
5 
6 inputList = 'inputFiles.txt'
7 jobTag = "exampleJobName"
8 username = getUsername()
9 
10 config.section_("General")
11 config.General.requestName = jobTag
12 config.General.workArea = config.General.requestName
13 config.General.transferOutputs = True
14 config.General.transferLogs = False
15 
16 config.section_("JobType")
17 config.JobType.pluginName = 'Analysis'
18 config.JobType.psetName = 'validation_cfg.py'
19 config.JobType.pyCfgParams = ['config=validation.json', 'runType=crab']
20 config.JobType.inputFiles = ['validation.json']
21 config.JobType.numCores = 1
22 config.JobType.maxMemoryMB = 1200
23 config.JobType.maxJobRuntimeMin = 900
24 
25 config.section_("Data")
26 config.Data.userInputFiles = open(inputList).readlines()
27 config.Data.totalUnits = len(config.Data.userInputFiles)
28 config.Data.splitting = 'FileBased'
29 config.Data.unitsPerJob = 1
30 config.Data.outputPrimaryDataset = 'AlignmentValidation'
31 config.Data.outLFNDirBase = '/store/group/alca_trackeralign/' + username + '/' + config.General.requestName
32 config.Data.publication = False
33 
34 config.section_("Site")
35 config.Site.whitelist = ['T2_CH_*','T2_DE_*','T2_FR_*','T2_IT_*']
36 config.Site.storageSite = 'T2_CH_CERN'