cmsrel CMSSW_9_4_12
cd CMSSW_9_4_12/src
cmsenvgit clone https://github.com/cms-nanoAOD/nanoAOD-tools.git PhysicsTools/NanoAODToolsEnable 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.kLZ4git clone https://github.com/hqucms/NanoHRT-tools.git PhysicsTools/NanoHRTToolsscram b -j8Instructions to run the nanoAOD postprocessor can be found at nanoAOD-tools.
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-datato make data trees - add
--run-systto make the systematic trees - the
--batchoption 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.