added GetGenParticles function (needs new branches