MCgetter class: function that prints a particle's genealogy