Production of extended nanoAOD ntuples for analysis and training of b jet charge classfier.
Tests are defined in test/runCMSSWTest.sh
Using recent CMSSW release which corresponds to recommended NanoAODv9. See PPD.
export SCRAM_ARCH=slc7_amd64_gcc700
cmsrel CMSSW_10_6_27
cd CMSSW_10_6_27/src
cmsenv
git cms-addpkg PhysicsTools/NanoAOD
git cms-cherry-pick-pr 38002 # adding sum of PS weights
git cms-checkdeps -a -A
git clone git@github.com:WbWbX/ChargeReco.git -b UL ChargeReco
mkdir TopQuarkAnalysis
cd TopQuarkAnalysis
git clone git@github.com:WbWbX/BFragmentationAnalyzer.git
cd -
scram b
Configuration file for full Run 2 UL extended nanoAOD ntuple production.
cmsRun ChargeReco/NANOProducer/test/produceNANO.py
The cfg accepts the following options:
isData
specifies if NanoAOD for data or MC is produced. Besides others MC will contain extra truth-level information (default: 0
= MC).year
controls the global tags and eras. Possible values are: 2016
, 2016preVFP
, 2017
, 2018
(default: 2016
).addSignalLHE
extracts and stores weights from the generator that are used to reweight the signal sample to different top quark widths (default: False
).in crab
folder run e.g.:
python2 submit.py -i datasets/data_2017.txt -y 2017 -v 2022-03-01_v6 --data
use --dry
to skip job submission and only generate submit scripts