diff --git a/106X_MCRun2_UL16_Pre.py b/106X_MCRun2_UL16_Pre.py new file mode 100644 index 0000000000000000000000000000000000000000..d2b162ba80c3dbcc515b3ea9ae46789b973b6608 --- /dev/null +++ b/106X_MCRun2_UL16_Pre.py @@ -0,0 +1,11 @@ +import FWCore.ParameterSet.Config as cms +# Legacy re-reco 2016 with fixed high eta region of ECAL ICs +from CondCore.DBCommon.CondDBSetup_cfi import * + +RerecoGlobalTag = cms.ESSource("PoolDBESSource", + CondDBSetup, + connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS'), + globaltag = cms.string('106X_mcRun2_asymptotic_preVFP_v8'), + ) + + diff --git a/Jenkinsfile b/Jenkinsfile index fe42f1a91047906841ba37bc04379a531b61b80a..3b950597626c79f47b37a5242c75b1e687e74026 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,31 +2,53 @@ pipeline { agent none environment { CMSSW_RELEASE = 'CMSSW_10_6_8' - CAMPAIGN = '113X_dataRun2_v5_automation_test_v12' + TAG = '106X_MCRun2_UL16_Pre' + ERA = 'UL2016_testJenkins1' + CAMPAIGN = 'DYJets_M50-CP5-amcatnlo-Run2016UL-MC-PreVFP' DATASET = "/DYJetsToLL_M-50_TuneCP5_13TeV-amcatnloFXFX-pythia8/RunIISummer19UL16MiniAODAPV-106X_mcRun2_asymptotic_preVFP_v8-v1/MINIAODSIM" } stages { - stage('Create jobs') { + stage('Install ECALELF') { agent { label 'lxplus' } steps { sh """ - export X509_USER_PROXY=$HOME/grid_proxy.x509 scram project ${CMSSW_RELEASE} cd ${CMSSW_RELEASE}/src eval `scramv1 runtime -sh` - git clone -b EcalAutomation https://gitlab.cern.ch/fmonti/ECALELF.git Calibration + git clone -b EcalAutomation https://gitlab.cern.ch/fmonti/ECALELF.git Calibration git clone -b EcalAutomation https://github.com/fabio-mon/LSFsubmit.git Tools/LSFsubmit/scripts ################ # temp hack to not submit jobs but still comunicate with the database (if --EcalAutomation is set) sed -i "s/condor_submit/#condor_submit/g" \$CMSSW_BASE/src/Tools/LSFsubmit/scripts/submit ################ scram b -j - source \$CMSSW_BASE/src/Calibration/initCmsEnv.sh - cd \$CMSSW_BASE/src/Calibration/EcalAlCaRecoProducers/ - ./scripts/prodNtuples.sh --type=MINIAOD -t config/reRecoTags/106X_MCRun2_UL16_Pre.py -s noSkim --isMC --scheduler=caf --extraName=UL2016_testJenkins1 -r allRange -d /DYJetsToLL_M-50_TuneCP5_13TeV-amcatnloFXFX-pythia8/RunIISummer19UL16MiniAODAPV-106X_mcRun2_asymptotic_preVFP_v8-v1/MINIAODSIM -n DYJets_M50-CP5-amcatnlo-Run2016UL-MC-PreVFP --store caf --remote_dir database VALID Run2016UL_SS_PreVFP, --doEleIDTree --ntuple_remote_dir group/dpg_ecal/alca_ecalcalib/ecalelf/ntuples/fmonti/ # --EcalAutomation """ + stash name: 'CMSSW', includes: "${CMSSW_RELEASE}/" + } + } + stage('Create job') { + agent { + label 'lxplus' + } + steps { + unstash 'CMSSW' + sh """ + pwd + ls + export X509_USER_PROXY=$HOME/grid_proxy.x509 + cd ${CMSSW_RELEASE}/src + eval `scramv1 runtime -sh` + source \$CMSSW_BASE/src/Calibration/initCmsEnv.sh + cd \$CMSSW_BASE/src/Calibration/EcalAlCaRecoProducers/ + ./scripts/prodNtuples.sh --type=MINIAOD -t config/reRecoTags/106X_MCRun2_UL16_Pre.py -s noSkim --isMC --scheduler=caf --extraName=UL2016_testJenkins1 -r allRange -d /DYJetsToLL_M-50_TuneCP5_13TeV-amcatnloFXFX-pythia8/RunIISummer19UL16MiniAODAPV-106X_mcRun2_asymptotic_preVFP_v8-v1/MINIAODSIM -n DYJets_M50-CP5-amcatnlo-Run2016UL-MC-PreVFP --store caf --remote_dir database VALID Run2016UL_SS_PreVFP, --doEleIDTree --ntuple_remote_dir group/dpg_ecal/alca_ecalcalib/ecalelf/ntuples/ecalgit/ # --EcalAutomation + ################################## + # run only on 20 events to save memory on eos + sed -i "s/input = cms.untracked.int32(-1)/input = cms.untracked.int32(20)/g" \${CMSSW_BASE}/src/Calibration/EcalAlCaRecoProducers/prod_ntuples/MINIAODNTUPLE/106X_MCRun2_UL16_Pre/DYJets_M50-CP5-amcatnlo-Run2016UL-MC-PreVFP/allRange//UL2016_testJenkins1/share/pset.py + ################################## + """ + stash name: 'jobdir', includes: "${CMSSW_RELEASE}/src/Calibration/EcalAlCaRecoProducers/prod_ntuples/MINIAODNTUPLE/106X_MCRun2_UL16_Pre/DYJets_M50-CP5-amcatnlo-Run2016UL-MC-PreVFP/allRange//UL2016_testJenkins1/" } } stage('Test job') { @@ -34,10 +56,12 @@ pipeline { label 'lxplus' } steps { + unstash 'jobdir' sh """ pwd - cd ${CMSSW_RELEASE}/src/Calibration/EcalAlCaRecoProducers/ - ./prod_ntuples/MINIAODNTUPLE/106X_MCRun2_UL16_Pre/DYJets_M50-CP5-amcatnlo-Run2016UL-MC-PreVFP/allRange//UL2016_testJenkins1/share/run.sh 5 $X509_USER_PROXY + ls + export X509_USER_PROXY=$HOME/grid_proxy.x509 + ${CMSSW_RELEASE}/src/Calibration/EcalAlCaRecoProducers/prod_ntuples/MINIAODNTUPLE/106X_MCRun2_UL16_Pre/DYJets_M50-CP5-amcatnlo-Run2016UL-MC-PreVFP/allRange//UL2016_testJenkins1/share/run.sh 5 \$X509_USER_PROXY """ } }