nanoAOD producer customized for BParking analysis
Forked from: https://github.com/CMSBParking/BParkingNANO
The focus is on R($\Lambda_{c}^{(*)}$) analyses.
More info
https://codimd.web.cern.ch/mKQBQ3ErQ9uKMr4TdS1udA?both
Setup Env
export SCRAM_ARCH=slc7_amd64_gcc700
cmsrel CMSSW_10_2_27
cd CMSSW_10_2_27/src
cmsenv
source /cvmfs/cms.cern.ch/common/crab-setup.sh
git cms-init
pip install --user yapf
Add low-pT energy ID and regression
The ID model is 2020Sept15
(depth=15, ntrees=1000).
git cms-merge-topic -u CMSBParking:from-CMSSW_10_2_15_2020Sept15_v1
git clone --single-branch --branch from-CMSSW_10_2_15_2020Sept15 g[email protected]:CMSBParking/RecoEgamma-ElectronIdentification.git $CMSSW_BASE/external/$SCRAM_ARCH/data/RecoEgamma/ElectronIdentification/data
To run on CRAB, the following three lines must be executed:
git cms-addpkg RecoEgamma/ElectronIdentification
mkdir -p $CMSSW_BASE/src/RecoEgamma/ElectronIdentification/data/LowPtElectrons
cp $CMSSW_BASE/external/$SCRAM_ARCH/data/RecoEgamma/ElectronIdentification/data/LowPtElectrons/LowPtElectrons_ID_2020Sept15.root $CMSSW_BASE/src/RecoEgamma/ElectronIdentification/data/LowPtElectrons
Add support for GBRForest to parse ROOT files
git cms-merge-topic -u CMSBParking:convertXMLToGBRForestROOT
Add the modification needed to use post-fit quantities for electrons
git cms-merge-topic -u CMSBParking:GsfTransientTracks # unsafe checkout (no checkdeps), but suggested here
Add the modification needed to use the KinematicParticleVertexFitter
git cms-merge-topic -u CMSBParking:fixKinParticleVtxFitter # unsafe checkout (no checkdeps), but suggested here
Add the BParkingNano package and build everything
git clone [email protected]:CMSBParking/BParkingNANO.git ./PhysicsTools
git cms-addpkg PhysicsTools/NanoAOD
scram b
To run on a test file
cd PhysicsTools/BParkingNano/test/
cmsenv
cmsRun run_nano_cfg.py
Quick Start
source setup_env.sh
Important: Mass hypothesis
1st hypothesis | 2nd hypothesis | 3rd hypothesis | 4thhypothesis |
---|---|---|---|
PROTON | PROTON | PION | KAON |
KAON | PION | KAON | PROTON |
PION | KAON | PROTON | PION |
Contributing
We use the fork and pull model:
fork this repository https://github.com/CMSBParking/BParkingNANO (top right _Fork button)
If you haven't done so yet, clone this repository:
git clone [email protected]:CMSBParking/BParkingNANO.git ./PhysicsTools
Add your fork of the repository as remote:
git remote add mine [email protected]:`git config user.github`/BParkingNANO.git
git checkout -b ${USER}_feature_branch origin/master
Work on your feature, add
, commit
, etc. and push to your own fork
when adding a sequence or table producer, please include it in the python/nanoBPark_cff.py and make sure it runs properly checking the output result (test_BParkSequence_10215.py to give it a try)
git push mine feature_branch
Make a pull request on github