DennRoy / cmssw

CMS Offline Software

Home Page:http://cms-sw.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to make NanoAOD samples from embedded Z -> tautau MiniAOD

This setup allows to make NanoAODv4 samples from the embedded MiniAOD samples. For more infomation on the embedded samples, see:

https://twiki.cern.ch/twiki/bin/viewauth/CMS/TauTauEmbeddingSamples2016
https://twiki.cern.ch/twiki/bin/viewauth/CMS/TauTauEmbeddingSamples2017
https://twiki.cern.ch/twiki/bin/viewauth/CMS/TauTauEmbeddingSamples2018

First set up a repository:

export SCRAM_ARCH=slc7_amd64_gcc700
cmsrel CMSSW_10_4_0
cd CMSSW_10_4_0/src/
cmsenv
git cms-init
git cms-merge-topic DennRoy:NanoEmbedding2017_CMSSW1040

I used CMSSW_10_4_0 for this. It may also work with a 10_2_X setup. If you want to use your own setup, just make sure to apply all changes from these two commits:

https://github.com/DennRoy/cmssw/commit/f247ec0b57294191ff1e44d8903fb4f96e2cd8a6
https://github.com/DennRoy/cmssw/commit/76d41cbc2a315ad9412e5d2448480f2fda112e4b

Next, here is a template configuration to be used with cmsRun:

https://github.com/DennRoy/cmssw/blob/NanoEmbedding2017_CMSSW1040/TEMPLATE_Embed_NANO.py

The commented section in the beginning of that file contains instructions on the 5 placeholders in the config that need to be replaced. Once this is done, simply run cmsRun with the python configuration as argument.

NOTE: In the template I wrote to use eras.Run2_2017,eras.run2_nanoAOD_94XMiniAODv2 for the condition when processing 2017 files. It turns out that the MiniAOD files were actually made with "94XMiniAODv1". However, a short test has shown that using "v1" instead of "v2" (or vice versa) only affects the three variables Tau_rawMVAoldDM2017v1, Tau_rawMVAoldDM and Tau_idMVAoldDM2017v1, which are all obsolete variables anyway.

About

CMS Offline Software

http://cms-sw.github.io/

License:Apache License 2.0


Languages

Language:C++ 57.7%Language:Python 30.7%Language:Fortran 5.3%Language:C 3.6%Language:Shell 0.9%Language:Perl 0.5%Language:HTML 0.4%Language:JavaScript 0.3%Language:Objective-C 0.2%Language:PLSQL 0.2%Language:Jupyter Notebook 0.0%Language:Java 0.0%Language:Rebol 0.0%Language:PHP 0.0%Language:R 0.0%Language:CSS 0.0%Language:VHDL 0.0%Language:Makefile 0.0%Language:Tcl 0.0%Language:TeX 0.0%Language:Smarty 0.0%Language:Cuda 0.0%Language:PLpgSQL 0.0%Language:Roff 0.0%Language:SQLPL 0.0%Language:XSLT 0.0%Language:Gnuplot 0.0%Language:Perl 6 0.0%Language:sed 0.0%Language:Rascal 0.0%Language:CMake 0.0%Language:Assembly 0.0%Language:Awk 0.0%Language:xBase 0.0%Language:Pascal 0.0%Language:PureBasic 0.0%Language:Forth 0.0%