Code for generating MC samples and analyzing generator level outputs