Skip to content

WbWbX/ChargeReco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChargeReco

Production of extended nanoAOD ntuples for analysis and training of b jet charge classfier.

NANOX production

Tests are defined in test/runCMSSWTest.sh

Checkout instructions

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 [email protected]:WbWbX/ChargeReco.git -b UL ChargeReco
mkdir TopQuarkAnalysis
cd TopQuarkAnalysis
git clone [email protected]:WbWbX/BFragmentationAnalyzer.git
cd -
scram b

Produce extended nanoAOD files

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).

job submission

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

Brief package overview

  • DataFormats: Contains classes for all persistent information, input features (JetChargeTagFeatures) and labels (JetChargeLabel), to be saved inside edm::Event.
  • NANOProducer: Producers to create additional FlatTables to be stored inside flat nanoAOD format.
  • JetChargeInfoProducer: Producers to extract relevant jet features and labels.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •