Skip to content

ram1123/nanoAOD_skim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

nanoAOD skiming code for vv senile-tonic VBS studies

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 80.9%
  • Shell 19.1%