Skip to content

yhaddad/NanoHRT-tools

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NanoHRT-tools

Set up CMSSW

cmsrel CMSSW_9_4_12
cd CMSSW_9_4_12/src
cmsenv

Set up official NanoAOD-tools

git clone https://github.com/cms-nanoAOD/nanoAOD-tools.git PhysicsTools/NanoAODTools

Enable LZ4 compression algo by adding the following line after L47 of $CMSSW_BASE/src/PhysicsTools/NanoAODTools/python/postprocessing/framework/postprocessor.py:

elif algo == "LZ4":  compressionAlgo  = ROOT.ROOT.kLZ4

Get customized NanoAOD tools for HeavyResTagging (NanoHRT-tools)

git clone https://github.com/hqucms/NanoHRT-tools.git PhysicsTools/NanoHRTTools

Compile

scram b -j8

Test

Instructions to run the nanoAOD postprocessor can be found at nanoAOD-tools.

Production

cd PhysicsTools/NanoHRTTools/run
  • To make trees for MC performance study:
python runPostProcessing.py /path/of/input /path/to/output --friend -I PhysicsTools.NanoHRTTools.producers.hrtMCTreeProducer hrtMCTree
  • To make trees for data/MC comparison and scale factor measurement:
python runHRTTrees.py /eos/uscms/store/user/lpcjme/noreplica/NanoHRT/path/to/input /path/to/output --channel 
[muon|photon|qcd] -n 20 --batch
  • the preselection for each channel is coded in runHRTTrees.py
  • add --run-data to make data trees
  • add --run-syst to make the systematic trees
  • the --batch option will submit jobs to condor automatically wihtout confirmation

More options of runPostProcessing.py or runHRTTrees.py (a wrapper of runPostProcessing.py) can be found with python runPostProcessing.py -h or python runHRTTrees.py -h, e.g.,

  • To resubmit failed jobs, run the same command but add --resubmit.

  • To add cross section weights and merge output trees according to the config file, run the same command but add --post.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 84.2%
  • C 10.6%
  • C++ 4.0%
  • Shell 1.2%