nanoAOD skiming code for vv semi-leptonic VBS studies
Step: 1: Get CMSSW release
cmsrel CMSSW_10_2_22
cd CMSSW_10_2_22/src
cmsenv
Step: 2: Get official nanoAODTools
git clone git@github.com:cms-nanoAOD/nanoAOD-tools.git PhysicsTools/NanoAODTools
cd PhysicsTools/NanoAODTools
git checkout 079c9e18c14c9d71ffe6d0cc4b42f15d97c29efc
Step: 3: Get our analysis repository
git clone git@github.com:osWW-VBS/nanoAOD_vvVBS.git PhysicsTools/NanoAODTools/python/postprocessing/analysis/nanoAOD_vvVBS
cd PhysicsTools/NanoAODTools/python/postprocessing/analysis/nanoAOD_vvVBS
git submodule init
git submodule update
cd -
cmsenv
patch PhysicsTools/NanoAODTools/python/postprocessing/analysis/nanoAOD_vvVBS/nanoAOD_tools.patch
cp PhysicsTools/NanoAODTools/python/postprocessing/analysis/nanoAOD_vvVBS/data/btag/*.csv PhysicsTools/NanoAODTools/data/btagSF/.
scram b
voms-proxy-init -voms cms
(Optional: Fix git repo)
find PhysicsTools/NanoAODTools/python/postprocessing/analysis/nanoAOD_vvVBS/.git/ -name "*.py*" -delete
Step: 4: interactive running
cd PhysicsTools/NanoAODTools/python/postprocessing/analysis/nanoAOD_vvVBS
python post_proc.py
batch job submission.
Crab-job submission
cd crab/
voms-proxy-init -voms cms --valid 200:00
source /cvmfs/cms.cern.ch/crab3/crab.sh
crab submit -c crab_cfg.py
Step: 5 (b): Condor-job submission
In file condor_setup.py
, specify correct input text file from which you need to take input NanoAOD DAS names. Also, updated the output EOS path. Then do following:
cd $CMSSW_BASE/src/PhysicsTools/NanoAODTools/python/postprocessing/analysis/nanoAOD_vvVBS
# Edit condor_setup.py, then
python condor_setup.py
# Set proxy before submitting the condor jobs.
voms-proxy-init -voms cms --valid 200:00
condor_submit <Files-created-from-above-command>.jdl