forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
heppy_crab_config.py
62 lines (56 loc) · 2.74 KB
/
heppy_crab_config.py
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
from WMCore.Configuration import Configuration
config = Configuration()
config.section_("General")
config.General.requestName = 'VHBB_G25_009'
config.General.workArea = '/scratch/arizzi/crab_sub/crab_projects_G25_001'
config.General.transferLogs=True
config.section_("JobType")
config.JobType.pluginName = 'Analysis'
config.JobType.psetName = 'heppy_crab_fake_pset.py'
config.JobType.scriptExe = 'heppy_crab_script.sh'
import os
#os.system("tar czf python.tar.gz --dereference --directory $CMSSW_BASE python")
os.system("tar czf python.tar.gz --directory $CMSSW_BASE python `find $CMSSW_BASE/src -name python | perl -pe s#$CMSSW_BASE/## `")
#onfig.JobType.sendPythonFolder = True
config.JobType.maxMemoryMB = 2500
config.JobType.maxJobRuntimeMin = 2000
config.JobType.inputFiles = ['heppy_config.py',
'heppy_crab_script.py',
'python.tar.gz',
#'MVAJetTags_620SLHCX_Phase1And2Upgrade.db',
'combined_cmssw.py',
'../vhbb.py',
'../vhbb_combined.py',
'TMVAClassification_BDT.weights.xml',
'puData.root',
'puDataMinus.root',
'puDataPlus.root',
'../triggerEmulation.root',
'puMC.root',
'json.txt',
#"../Zll-spring15.weights.xml",
#"../Wln-spring15.weights.xml",
#"../Znn-spring15.weights.xml",
#"../VBF-spring15.weights.xml",
#"../ttbar-fall15_TargetGenOverPt_GenPtCut0.weights.xml",
#'../ttbar-spring16-80X.weights.xml',
# '../ttbar-pumoriond17--500k-13d-300t.weights.xml',
'../ttbar-G25-500k-13d-300t.weights.xml',
'../TMVA_blikelihood_vbf_cmssw76_h21trained.weights.xml'
]
#config.JobType.outputFiles = ['tree.root']
config.section_("Data")
config.Data.inputDataset = '/ZH_HToBB_ZToLL_M125_13TeV_amcatnloFXFX_madspin_pythia8/RunIISpring15DR74-Asympt25ns_MCRUN2_74_V9-v1/MINIAODSIM'
config.Data.inputDBS = 'global'
#config.Data.splitting = 'FileBased'
config.Data.splitting = 'EventAwareLumiBased'
config.Data.unitsPerJob = 10000
config.Data.totalUnits = 800000
config.Data.allowNonValidInputDataset = True # to run on datasets in PRODUCTION
config.Data.outLFNDirBase = '/store/user/arizzi/VHBBHeppyG25/'
config.Data.publication = True
config.Data.outputDatasetTag = 'VHBB_HEPPY_G25'
config.section_("Site")
config.Site.storageSite = "T2_IT_Pisa"
#config.Site.storageSite = "T3_CH_PSI"
#config.Data.ignoreLocality = True