Replaced json.read with json.loads for consistency with other scripts
Distinguish between PU_RD1 and PU_RD2 pileup scenarios