Skip to content

Latest commit

 

History

History
71 lines (55 loc) · 2.1 KB

README.md

File metadata and controls

71 lines (55 loc) · 2.1 KB

nanoAOD_vvVBS

nanoAOD skiming code for vv semi-leptonic VBS studies

Code setup

  1. Step: 1: Get CMSSW release

    cmsrel CMSSW_10_2_22
    cd CMSSW_10_2_22/src
    cmsenv
  2. Step: 2: Get official nanoAODTools

    git clone [email protected]:cms-nanoAOD/nanoAOD-tools.git PhysicsTools/NanoAODTools
    cd PhysicsTools/NanoAODTools
    git checkout 079c9e18c14c9d71ffe6d0cc4b42f15d97c29efc
  3. Step: 3: Get our analysis repository

    git clone [email protected]: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
  4. Step: 4: interactive running

    cd PhysicsTools/NanoAODTools/python/postprocessing/analysis/nanoAOD_vvVBS
    python post_proc.py
  5. batch job submission.

    1. 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
    2. Step: 5 (b): Condor-job submission

      1. 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