As explained
here two inputs are necessary for reweighting MC events to match the data sample you are looking at. The first is the luminosity distribution in your data sample, as estimated using the pileup JSON file. The second is the distribution of the number of pileup events in the MC samples you are using.