cmsrel CMSSW_10_2_18
cd CMSSW_10_2_18/src
cmsenvgit clone https://github.com/cms-nanoAOD/nanoAOD-tools.git PhysicsTools/NanoAODToolsgit 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/runpython runPostProcessing.py [-i /path/of/input] -o /path/to/output -d datasets.yaml --friend
-I PhysicsTools.NanoHRTTools.producers.hrtMCTreeProducer hrtMCTree -n 1To merge the trees, run the same command but add --post -w '' (i.e., set -w to an empty string ('') -- we do not add the cross sections, but simply reweight signals to match the QCD spectrum afterwards).
python runHRTTrees.py -i /eos/uscms/store/user/lpcjme/noreplica/NanoHRT/path/to/input -o /path/to/output
(--sample-dir custom_samples) --channel [muon|photon|qcd] --year [2016|2017|2018] -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 - can run data & MC for multiple years together w/ e.g.,
--year 2016,2017,2018. The--run-dataoption will be ignored in this case. Add also--run-systto make the systematic trees. - use
--sample-dirto specify the directory containing the sample lists. Currently we maintain two sets of sample lists: the default one is under samples which is used for running over official NanoAOD datasets remotely, and the other one is custom_samples which is used for running over privately produced NanoAOD datasets locally. To run over the private produced samples, ones needs to add--sample-dir custom_samplesto the command line. - the
--batchoption will submit jobs to condor automatically wihtout confirmation - remove
-ito run over remote files (e.g., official NanoAOD, or private NanoAOD published on DAS); consider adding--prefetchto copy files first before running
python runHeavyFlavTrees.py -i /eos/uscms/store/user/lpcjme/noreplica/NanoHRT/path/to/input -o /path/to/output
(--sample-dir custom_samples) --jet-type [ak8,ak15] --channel [photon|qcd] --year [2016|2017|2018] -n 20 --batch(Please see above for the command line options.)
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. The cross section file to use can be set with the-woption.