Skip to content
 
 

Latest commit

 

History

445 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

NanoAOD producer customized for BParking analyses

The focus is on RK/K*/phi analyses.

Recipe

This recipe is for 12_4_X. The original recipe for 10_2_X can be found here.

Getting started

scram list CMSSW
cmsrel CMSSW_12_4_8
cd CMSSW_12_4_8/src
cmsenv

Add modifications needed to use post-fit quantities for electrons

git cms-merge-topic -u DiElectronX:GsfTransientTracks_124X # unsafe checkout (no checkdeps), but suggested here

Add modifications to KinematicParticleVertexFitter

git cms-merge-topic -u DiElectronX:fixKinParticleVtxFitter_124X # unsafe checkout (no checkdeps), but suggested here

Add the BParkingNano package

git clone git@github.com:DiElectronX/BParkingNANO.git ./PhysicsTools
git cms-merge-topic -u DiElectronX:NanoAOD_131X

Build and run on a test file

cd $CMSSW_BASE/src/
scram b -j 8
cd PhysicsTools/BParkingNano/test
cmsRun run_nano_cfg.py        # by default, runs over Run 3 data
cmsRun run_nano_cfg.py isMC=1 # runs over MC for 2022

Submit CRAB jobs to process Run 3 data and 2022 MC

cd $CMSSW_BASE/src/PhysicsTools/BParkingNano/production
python3 submit_on_crab.py

Provenance and branches

Default branches:

The default branch has been renamed for two reasons:

  1. To promote more inclusive terminology, as per the GitHub guidelines
  2. To clearly differentiate between the different development thread of the two repositories, namely:
    • CMSBParking/BParkingNANO:master targets the CMSSW development cycle CMSSW_10_2_X
    • DiElectronX/BParkingNANO:main targets the CMSSW development cycle CMSSW_12_4_X

Further, two additional branches have been produced based on the revision above:

  • CMSBParking/BParkingNANO:CMSSW_10_2_X and CMSBParking/BParkingNANO:CMSSW_12_4_X
  • DiElectronX/BParkingNANO:CMSSW_10_2_X and DiElectronX/BParkingNANO:CMSSW_12_4_X

which may be of use. For example:

  • CMSSW_10_2_X developments in CMSBParking/BParkingNANO should be merged into the master (and CMSSW_10_2_X) branch
  • CMSSW_12_4_X developments in CMSBParking/BParkingNANO should be merged into the CMSSW_12_4_X branch
  • CMSSW_10_2_X developments in DiElectronX/BParkingNANO should be merged into the CMSSW_10_2_X branch
  • CMSSW_12_4_X developments in DiElectronX/BParkingNANO should be merged into the main (and CMSSW_12_4_X) branch

Contributing

We use the fork and pull model:

git clone git@github.com:DiElectronX/BParkingNANO.git  ./PhysicsTools
  • Add your fork of the repository as remote:
git remote add mine git@github.com:`git config user.github`/BParkingNANO.git
git checkout -b ${USER}_feature_branch origin/main
  • Work on your feature, add, commit, etc. and push to your own fork
git push mine feature_branch
  • Make a pull request on GitHub

About

Code to make BParking NanoAOD

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages