fixed gen particle code to use pruned and packed collections of miniAOD