Yet another CMS NanoAOD tools focusing on specific analyses.
- Management area: https://app.asana.com/0/1115311953973868/list
We'd like to cover:
- ttbar dilepton analysis
- inclusive cross section, differential cross section
- ttbar+bbbar cross section ratio to ttbar+jets
- ttbar rare decays
- t->qZ, ttbar and single top
See also
- https://twiki.cern.ch/twiki/bin/view/CMSPublic/WorkBookNanoAOD
- NanoAOD dataformat descriptions
cmsrel CMSSW_10_2_11
cd CMSSW_10_2_11/src
cmsenv
git-cms-init
git cms-merge-topic cms-nanoAOD:master-102X
git checkout -b nanoAOD cms-nanoAOD/master-102X
git clone https://github.com/cms-nanoAOD/nanoAOD-tools.git PhysicsTools/NanoAODTools
git clone https://github.com/cms-kr/TZWi
scram b -j
cd TZWi/NanoAODProduction/test
./generateConfig.sh ## This will produce 3 sets of 3 cfg files...
crab submit...
Update sample list, produce file lists
tzwi-updatedataset $CMSSW_BASE/src/TZWi/NanoAODProduction/data/datasets/NanoAOD/2016/*.yaml
tzwi-updatedataset $CMSSW_BASE/src/TZWi/NanoAODProduction/data/datasets/NanoAOD/2017/*.yaml
Assume we are working at KISTI Tier2/3 and cms-kr/hep-tools package is installed.
./01.1_submit.py
Wait for the jobs to be finished, check output files, resubmit failed jobs.
Tip to list up failed job and resubmit them:
./01.2_checkFailed.sh
You can process failed ones manually:
cat failed.txt | sed 's;nano_postproc.py;;g' | xargs -P$(nproc) -L1 nano_postproc.py
Tip to extract all ntuples:
find *NANOAOD*/ -name 'result_*.tgz' | awk '{print "xzf "$1" ./ntuple"}' | xargs -L1 -P$(nproc) tar
This step will draw all histograms including systematics variations using maximum 20 CPUs in parallel.
./02_make_histograms.py
Run the followings
./03_scalemerge.py
./04_drawPlots.py
Then you will have plots in "plots" directory.