This repository contains code for the tutorial session JumpshotJME2019: MET scale and resolution
Make sure you have CMSSW_10_2_5 set up and obtained the grid certificate.
Run:
python met_analysis.py
to analyze DY miniAOD files and it will produce a flat root file called mets.root
Then run:
python plot_resolution.py
to make the MET scale plot and the resolution plots.