adding helper functions for packedGenParticle